• Post Reply Bookmark Topic Watch Topic
  • New Topic

Session variables not displaying in Mozilla or Opera, only IE  RSS feed

 
mad eqx
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I have a jsp page called step3.jsp in which users enter card details into a form. When they submit they go to step4.jsp where information from all the previous pages are displayed and users are asked to check if the details are correct. All of this information is stored in a session. The problem is that on step5.jsp (receipt) the carddetails are not displayed in Mozilla or Opera (null), only in IE. The wierd thing is that this information is from the session, so why only IE?? I mean, how can session info only be displayed in only IE and not Mozilla or Opera?
 
Chris Baron
Ranch Hand
Posts: 1061
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi.
check the sett´┐Żngs for cookie handling in moz and opera.
cb
 
mad eqx
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Both mozilla and opera accept cookies, its not that.
There are about 15-20 other variables in the session, but only the card details fail to remain in the session.

For instance, if do

<%=(String)session.getAttribute("name")%>
<%=(String)session.getAttribute("cardtype")%>

on step4.jsp, they will both display a value (meaning they both have been set!).
But then on step5.jsp, if i do the same, ONLY the first one will have a value (ie "name"), "cardtype" will be null. But, again, this only happens with Mozilla and Opera, in IE, it works fine.
 
Bear Bibeault
Author and ninkuma
Marshal
Posts: 66207
151
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
"mad eqx",

We're pleased to have you here with us in the JSP forum, but there are a few rules that need to be followed, and one is that proper names are required. Please take a look at the JavaRanch Naming Policy and adjust your display name to match it.

In particular, your display name must be a first and a last name separated by a space character, and must not be obviously fictitious.

Thanks!
bear
Forum Bartender
 
Don't get me started about those stupid light bulbs.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!