• 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

Doubt in JSP working with Netscape4.76?

 
Ranch Hand
Posts: 36
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi Friends
Can anybody me the solution for my doubt i am facing in my application?
Doubt is....
In a jsp file under certain condition if that condition met i am redirecting to one jsp otherwise i am redirecting to another jsp?
I am using response.sendRedirect(String url); method to redirect from one page to another page.I used both the relative url as well as the absolute url as a parameter to that method.
This is working fine in IE 5.0 and above.Also in Netscape 6.0 and above.
But only in Netscape 4.76 browser,the session values are lost [turned to null value] if i am using sendRedirect method.I know that session values are persist between pages until the user session is expired.But in this case only in Netscape 4.76 my session gets expired with sendRedirect method.
Also i noted that if i am specifying the port number in the browser url to invoke the page then the session value will be lost.If i invoke the jsp page without giving port number then the session value is there it will take to me to exact destination page.
Also if i am using <jsp:forward> tag to forward to the destination page when that condition met then the session value is there.This will working in all the browsers.
Friends Can you tell me what i am doing wrong???
Thanks & Regards
Kumaran.S
 
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Well, the JSP v1.1 spec says that jsp:foward only takes relative URLs, so I'm surprised a full URL works for you using jsp:forward (doesn't in my servlet container).
But anyway, check out the generated .java file from your .jsp that does the forward. See how your jsp:forwards are rewritten as a servlet.
BTW, this code:

Works for my Netscape 4.77 Win32.
 
reply
    Bookmark Topic Watch Topic
  • New Topic