| | |
JSP Pages - How to design Pages inorder to restrict data based on user who signed in
Please support our JSP advertiser: PostgreSQL or MySQL? Compare and contrast the two most popular open source databases
![]() |
•
•
Join Date: Sep 2005
Posts: 1
Reputation:
Solved Threads: 0
JSP Pages - How to design Pages inorder to restrict data based on user who signed in
0
#1 Sep 26th, 2005
I am trying to built an application using JSP and MYSQL.
The problem is as follows.
"signup" table - Schema as
CompanyID: Username: Password
int varchar :Varchar
1 :A: :xxx
1 :B: :xxxx
2 :c: :xxxx
3 :d: :xxxx
"Participants" Table - schema as
Companyid :Empname : EmpLastName
int : Varchar : varchar
1 :ABC1 : XYZ1
1 :ABC2
YZ2
2 :ABD1 : XYY1
2 :ABD2
YY2
... ... ...
The signup page should accept username and password and validate against Signup table, upon validation the user should be taken to a page where they can List Participants only from his own company.
(The user should only see employees from his own company)
For example - User A,or Use B companyID = 1 when signs in , he should only see employees ABC1, ABC2
Like wise when Use A , CompanyID = 1 enters a participant, they should automaticaly enter companyID as 1 in the particiant table along with Empname and EmplastName
Any idea on how this is achieved will be appreciated. Sessions ?
I am helping a Charity Orgnaization to develop this and above is a simplified example of their problem.
Options to use only MYSQL and tomcat and JSP.
Any info will be truely appreciated.
Thanks,
The problem is as follows.
"signup" table - Schema as
CompanyID: Username: Password
int varchar :Varchar
1 :A: :xxx
1 :B: :xxxx
2 :c: :xxxx
3 :d: :xxxx
"Participants" Table - schema as
Companyid :Empname : EmpLastName
int : Varchar : varchar
1 :ABC1 : XYZ1
1 :ABC2
YZ22 :ABD1 : XYY1
2 :ABD2
YY2... ... ...
The signup page should accept username and password and validate against Signup table, upon validation the user should be taken to a page where they can List Participants only from his own company.
(The user should only see employees from his own company)
For example - User A,or Use B companyID = 1 when signs in , he should only see employees ABC1, ABC2
Like wise when Use A , CompanyID = 1 enters a participant, they should automaticaly enter companyID as 1 in the particiant table along with Empname and EmplastName
Any idea on how this is achieved will be appreciated. Sessions ?
I am helping a Charity Orgnaization to develop this and above is a simplified example of their problem.
Options to use only MYSQL and tomcat and JSP.
Any info will be truely appreciated.
Thanks,
Last edited by forashish; Sep 26th, 2005 at 4:22 am. Reason: adding more info
![]() |
Similar Threads
- difference between session and application scope at jsp (JSP)
- dynamically update pages (HTML and CSS)
- JSP tutorial (JSP)
- can't display the output! can somebody help me?!! PLS.. (C)
- Login and retrieve user data from database (ASP.NET)
- JSP pages not showing up (JSP)
- Buying & Selling Google PageRank (Website Reviews)
Other Threads in the JSP Forum
- Previous Thread: Cross-browser script... Not working for Opera...
- Next Thread: javascript variable in jsp session
| Thread Tools | Search this Thread |
apache array backbutton combobox comma connection csv database development directorystructure dropdownlist dynamicpagetitles eclipse frames glassfish ie8 imagetodatabse imageupload integer internet java javaee javascript jsf jsp jsppagetitles levels mvc2 mvcmodel2 mysql netbeans network parameters passing ping printinserverinsteadofclient read redirect request.getparameter response seperated servlet servletdopost()readxml sessions software sql ssl state_saving_method stocks sun tomcat tutorial update values video web write





