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 Servlets and the fly likes Server Name issue 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 » Servlets
Bookmark "Server Name issue" Watch "Server Name issue" New topic
Author

Server Name issue

Tom Henricksen
Ranch Hand

Joined: Mar 23, 2004
Posts: 136

I have a servlet that puts some things in session and calls a jsp. That JSP pulls the objects out and displays them.
The server that host this webapp has an alias used to access it. If I call the app from the server alias when it gets to
the JSP the session objects are not there. If I call the application through the actual server name the session information
is there.

Servlet Code


JSP Code


If I call request.getServerName() it prints out the actual server name not the alias server name. The server is running EAServer 5.1. The JSTL is version 1.0. Is this something with the server config or maybe the way I put things into Session scope?
Thanks in advance,
Tom
[ December 20, 2005: Message edited by: Tom Henricksen ]
Tom Henricksen
Ranch Hand

Joined: Mar 23, 2004
Posts: 136

Is this being avoided because of EAServer?
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 60785
    
  65

Originally posted by Tom Henricksen:
Is this being avoided because of EAServer?


Perhaps. It's certainly not a server I've ever had any experience with. You might want to try the same setup on something more widely used like Tomcat.

The alias issue makes me wonder if it's a problem with the cookie that is maintaining the session id.


[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Server Name issue
 
Similar Threads
JSTL and collections
Dynamic attribute in Tag File
Keep HTML tag in String
Scriptlet vs JSTL
Trouble with retrieving dates after I create a column alias