Win a copy of Think Java: How to Think Like a Computer Scientist this week in the Java in General forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Server Name issue

 
Tom Henricksen
Author
Ranch Hand
Posts: 144
5
Eclipse IDE jQuery Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Author
Ranch Hand
Posts: 144
5
Eclipse IDE jQuery Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Is this being avoided because of EAServer?
 
Bear Bibeault
Author and ninkuma
Marshal
Pie
Posts: 64827
86
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic