This week's book giveaways are in the Java EE and JavaScript forums.
We're giving away four copies each of The Java EE 7 Tutorial Volume 1 or Volume 2(winners choice) and jQuery UI in Action and have the authors on-line!
See this thread and this one 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 The Java EE 7 Tutorial Volume 1 or Volume 2 this week in the Java EE forum
or jQuery UI in Action in the JavaScript 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: 12769
    
    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