my dog learned polymorphism
The moose likes JSP and the fly likes Doubt in JSP working with Netscape4.76? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » JSP
Bookmark "Doubt in JSP working with Netscape4.76?" Watch "Doubt in JSP working with Netscape4.76?" New topic

Doubt in JSP working with Netscape4.76?

Kumaran Sowrirajan
Ranch Hand

Joined: Oct 15, 2001
Posts: 36
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
Chris Lamey

Joined: Nov 14, 2001
Posts: 3
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.
I agree. Here's the link:
subject: Doubt in JSP working with Netscape4.76?
It's not a secret anymore!