jsp page not opening on IE
hi, I am facing a problem opening a jsp page.
The problem here is, I am able to open the same jsp page in Opera and Mozilla after deploying it in websphere 6.0.
As soon as I open the jsp page the page displays for a fraction of a second and then vanishes, Page not found is displayed on the IE.
The same thing is working fine when I open the page using mozilla or opera as expected.
I am using struts and Tiles 1.1 in my web application and websphere 6.0. There are no errors displayed in the log file. For the first time it is saying the page is initialised successfully.
I am not able to come to a conclusion whether the problem is with tiles or struts or jsp page or the dtd's i am using in my .xml files.......etc.
Can any one help me in resolving the issue.
Thanks in advance.
Siva.
# 3
hi I am getting the login page and the welcome page after logging.
When I click on any report in the menu on the welcome page I am facing this problem.
The page completely vanishes after it is displayed for a fraction of a second.
Do I have to change any internet explorer settings?
# 4
when I add the following code in web.xml it is working as expected.
<error-page>
<error-code>404</error-code>
<location>/web/pages/tiles/errorPage.jsp</location>
</error-page>
Is handling an error page is mandatory in jsp? I dont understand how it is working after adding the above code.
Please reply.
Thanks,
Siva.
Message was edited by:
Siva_Tammana
# 5
I found out the reason for my issue. I might be helpful for others.
The JSP Error handling mechanism works just fine as excepted for other web browsers like Opera, Netscape and Mozilla, except IE 6.0.
The JSP Error handling fails for Internet Explorer 6.0, because of the default setting “Show friendly HTTP error-messages” enabled on IE 6.0 that overrides the error handling JSP/HTML pages.
There are two solutions for fix the issue with IE 6.0
Solution 1: The first solution is to simply disable the default IE settings try this-
Open IE—click “tools” –“Internet Options”—“Advanced” and uncheck “Show friendly HTTP error-messages” under “Browsing”.
Drawback: This solution is not at all acceptable, as we cannot suggest our users to disable this option before using our application.
Solution 2: The best solution to prevent IE from overriding the Error Pages is to invoke a JSP page (for error/exception handling), that does some processing at the server side and displays only relevant information on the client side. For example “error500.jsp” is build on this logic and prevents the IE from overriding it because of the processing logic contained in it.
This code has been tested using Weblogic 8.1 and IE 6.0, here is the sample code:
Thanks,
Siva.
# 7
Hi Tamanna
I also had the same problem with IE & Your solution is very good, you did fantastic research.
Please provide me with the code that you mentioned in your second solution that is " to invoke a JSP page (for error/exception handling), that does some processing at the server side and displays only relevant information on the client side".