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.

[844 byte] By [Siva_Tammanaa] at [2007-11-26 15:14:51]
# 1
Did the complete page display and vanishes? Try putting <%= System.out.println%> in your jsp and debug. Did you include any files and that causes issue? Any meta tag, refreshes the page?
skp71a at 2007-7-8 9:06:23 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...
# 2
Does you get the default page ? (admin-page)Does version does not support ? What is the version you use ?
renga_muralia at 2007-7-8 9:06:23 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...
# 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?

Siva_Tammanaa at 2007-7-8 9:06:23 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...
# 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

Siva_Tammanaa at 2007-7-8 9:06:23 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...
# 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.

Siva_Tammanaa at 2007-7-8 9:06:23 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...
# 6
the best solution is to use the jsp directive isErrorPage"true or false", thus it will be redirected to that error page if there is an exception, you can also format that page
jgalacambraa at 2007-7-8 9:06:23 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...
# 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".

sivaprasada at 2007-7-8 9:06:23 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...
# 8
Tamanna, can u plz send the sample code to be written in this error jsp.Also, plz tell if this also needs to be configured or just adding this jsp in web.xml wud wrk...rgdsmohit
mohit.garga at 2007-7-8 9:06:23 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...