View Single Post
Join Date: Nov 2008
Posts: 3
Reputation: 0sinner is an unknown quantity at this point 
Solved Threads: 0
0sinner 0sinner is offline Offline
Newbie Poster

Re: JSP/Java Servlet Apache+Tomcat Sessions

 
0
  #2
Nov 18th, 2008
Sorry.. In my first post where I wrote:

  1. ...
  2. <%
  3. out.print(session.getAttribute("enick"));
  4. %>
  5. ...

It's actually cast to a string before it's printed:

  1. ...
  2. <%
  3. out.print((String)session.getAttribute("enick"));
  4. %>
  5. ...
Last edited by peter_budo; Nov 18th, 2008 at 5:04 am. Reason: Code tag correction, use [code] or [code=java]
Reply With Quote