Latest Tutorials| Questions and Answers|Ask Questions?|Site Map




Have Programming Question? Ask it here!
 
 
 


Dinesh Pise
Admin Page
0 Answer(s)      2 years ago
Posted in : Java Beginners


Hi All,

I have to develop Java Web Application using Struts. Can someone please tell me how to code for administration login .i.e when admin login he should have full access whereas others login they should have limited access.

How to do code for the same in proper manner? My main concern is that every time I have to use if(role= admin) {} else {} but I think this is not the proper way because the same code will be repeated again and again for eg if(admin){code ... 1 to 10} else {1 to 5}. Here code 1 to 5 is repeating.

I am newbie. Request you people to provide some assistance.


Advertisement
View Answers

Related Tutorials/Questions & Answers:
Admin Page
Admin Page  Hi All, I have to develop Java Web Application using... admin login he should have full access whereas others login they should have... is that every time I have to use if(role= admin) {} else {} but I think
admin login control page - JSP-Servlet
admin login control page  how to encrypted password by using jsp... Password Example CodeadminPage.jsp<html> <title>Admin login...>Admin login Page</H1> <form method="POST" action
Advertisements
Admin Module
Admin Module The admin have the privilege  to add the question, delete the question. He is responsible for maintaining the site. He can also search the question paper by question Id and by title. The Admin does the following
Admin and User Login JSP - JSP-Servlet
page with username and password fields.. When the username and password is "admin... Link when clicked must log out the particular user.. The admin page must also...Admin and User Login JSP  Respected Sir, I am R.Ragavendran.. i
identify admin from user when logging in - Java Beginners
identify admin from user when logging in  hi everyone... and password were requested for a user to log-in, but there are 2 kinds of user types(admin and user).and the usertype are also saved in the database. my question is,how
Uploading a software and displaying it on the jsp page
Uploading a software and displaying it on the jsp page  I have a Downloads page in my website, I want it to display the name of softwares as soon as it is uploaded in the backend by the administrator. And the admin may be a non
log in page
log in page  hi all i want to create a login page in jsp which should be validated using ajax. please help me dong that with code...   Here...=request.getParameter("password"); if(username=="admin" && password=="admin
Preload Page
Preload Page  How do I make a page that loads my other html page and then goes to the html page once it's done loading? I need the page to say Please Wait
login page
login page  code for login page
Rendering of page
Rendering of page  What does it mean by rendering of page in JSF
home page
home page  Develop home page using applets and swings
home page
home page  Develop home page using swings and awt components
Login page
Login page  how to create Login page in java
web page
web page  1.Create a web page with the following using HTML i) To embed an image map in a web page ii) To fix the hot spots iii) Show all the related information when the hot spots are clicked
WEB PAGE
WEB PAGE  How To Create A Simple web Page Of a gmail using applet
page downloading
page downloading  down loading code for file existed in webbrowser like one text document placed in web browser please help me friend
Login Page
Login Page  Can anyone tell me the steps to create a login page in myeclipse 7.0 and validating it with login database in db2 9.7 ??? Please tell me
divide a page
divide a page   how to divide a page using jsp in three different column and in which , in first column , there is a phone number box,whenever a phone numhber is given immediately it will shown in below of the phone box
divide a page
divide a page   how to divide a page using jsp in three different column and in which , in first column , there is a phone number box,whenever a phone numhber is given immediately it will shown in below of the phone box
The Page Directive in JSP Page
The Page Directive in JSP Page       This section illustrates you about the page directive of the JSP page which works for the entire JSP page. These directives apply different
html login page with ajax
html login page with ajax  hi all... i want to create a login page using html and ajax for validation is must. please help me doing that with code...=="admin" && password=="admin"){ out.println("yes"); }else{ out.println
login page
login page  pls say how to create a login page in jsp and mysql using netbaens   Hi Friend, Please visit the following links: http://roseindia.net/jsf/netbeans/index.shtml http://roseindia.net/jsp/loginbean.shtml
SEARCH PAGE
SEARCH PAGE  search page:option for search criteria like name and DOB will be asked.on entering the detail,data matching search criteria will be displayed..criteria can be both or any one of them.. can you send code
profile page
profile page  sir, i am beginer in php i am creating simple web site.i am creating login form.the user login he can any status,photo update.he can display in home pages in all user login.but problem in user goto profile page
jsp page
jsp page  <%@page contentType="text/html" pageEncoding="UTF-8"%>...;%@page import="java.sql.Statement"%> <%@page import="java.sql.DriverManager"%> <%@page import="java.sql.Connection"%> <%@page import
login page
login page  hi i'm trying to create login page using jsp. i get... the program. Following are my programs... 1.index.jsp <%@page contentType="text/html" pageEncoding="UTF-8"%> JSP Page
Web Page
Web Page    Use any programming language or package to create a Project 2 .The Main menu should only be displayed, if the user is valid and uses the correct password. If the user is not in the database, then the user should
Redirect page
Redirect page  In this code redirect tag is not work, so please help me ,how to redirect page in Tiles With JSTL . <%@ taglib prefix="tiles"uri.../jsp/jstl/sql" prefix="sql" %> <%@page contentType="text/html" pageEncoding
jsp page
jsp page  <%@ page language="java" contentType="text/html; charset=ISO-8859-1" pageEncoding="ISO-8859-1"%> <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
force a page to go to another page using JavaScript
force a page to go to another page using JavaScript  How to force a page to go to another page using JavaScript
Call the parent page(uses master page) from the child page
Call the parent page(uses master page) from the child page  how to call the parent page from child without refreshing the parent and my parent window uses the master page
Call the parent page(uses master page) from the child page
Call the parent page(uses master page) from the child page  how to call the parent page from child without refreshing the parent and my parent window uses the master page
JSP Tutorials - Page 3
JSP Tutorials - Page 3
how to create a login page and registration page?
how to create a login page and registration page?  hellow, pls tell me the code for how we can create a login page and registration page and how we can store the info in database.only in advance java as jsp
php page caching
php page caching  Page caching in PHP script required
connect a web page to a database
connect a web page to a database  how to connect a web page to a database
How to reload the current page?
How to reload the current page?  How to reload the current page
login page in php
login page in php  How to create a login page in php
JSP Error Page
JSP Error Page          JSP Error Page is used to specify the custom error page and runtime error occurs with an exception being thrown, the custom
Forward a Jsp Page
Forward a Jsp Page In this example program we will show you how to use the <... is not logged in you can forward the user on the login page. Here is the use of <jsp:forward tag: <jsp:forward page="
coding for login page
coding for login page  coding for login page
Home page coding
Home page coding  coding fot html
Web Page Transaction
Web Page Transaction  Hello sir, i want to add an Effective page transaction when i go to my home page to other page in js...plllzzz help me...rppy soon
page breaks in HTML
page breaks in HTML  How do I specify page breaks in HTML
Language Attribute In Page Directive
Language Attribute In Page Directive  How use language attribute in page directive
divide html page
divide html page   how to divide html page into 3 parts without using frames
static page and dynamic pages?
static page and dynamic pages?  what is the static page and dynamic pages
jsp page submitting
jsp page submitting  whenever i am submitting the jsp page it downloads some unknown file on tomcat server
php web page capture
php web page capture  How to capture the history of a web page using PHP
 

 

 

DMCA.com