• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Session variables not displaying in Mozilla or Opera, only IE

 
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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?
 
Ranch Hand
Posts: 1061
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
Sheriff
Posts: 67746
173
Mac Mac OS X IntelliJ IDE jQuery TypeScript Java iOS
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
reply
    Bookmark Topic Watch Topic
  • New Topic