This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
The moose likes JSP and the fly likes JSP Session Problem Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Java » JSP
Bookmark "JSP Session Problem" Watch "JSP Session Problem" New topic
Author

JSP Session Problem

bhimi reddy
Greenhorn

Joined: Jun 03, 2004
Posts: 6
Current situation:
- 1 Webserver
- Many applications (e.g. X, Y, ...)
- Many users (e.g. A, ...)

Workflow:
- User A log on the system using application X
- After he logged on, the session contains data regarding to which usergroups he belongs to
- User A is now changing into appplication Y
- Application Y must check, whether user A is allowed to use this application

Problem:
- even both applications use following code...

<jsp:useBean id="anmeldung" scope="session" class="usermanager.beans.Login" />

application Y can not access to the session variables, that has been set by application X.


Question:
- How to solve this problem?
- How can appl. X pass over variables to application Y (regarding the same user)?
William Brogden
Author and all-around good cowpoke
Rancher

Joined: Mar 22, 2000
Posts: 12761
    
    5
The intent of the servlet / JSP API is to keep "web applications" completely separate for security. Therefore an extra effort is required to communicate between applications - for example by means of a common database.
Bill
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: JSP Session Problem
 
Similar Threads
Recursive number problem
Database Connection and Session
SQL injection?
HttpSession
switching from one application to another