I have a web app that runs perfectly under Tomcat4, but behaves a
little strange under Tomcat5. Originally welcome page was defined as
follows in web.xml:

 <welcome-file-list>
   <welcome-file>myStartPage.jsp</welcome-file>
 </welcome-file-list>

Works as it supposed to in Tomcat4, the URL in address bar shows
"<mycontext>/myStartPage.jsp" Same application in Tomcat5 shows
portion of the page, and the address bar shows the following:
"<mycontext>/?" That is, page name is not there, and URL is appended
with question mark.

The content of myStartPage.jsp is evaluated partially, I have not got
yet how exactly, but there is init sequence that is kicked off from
this page. It works in Tomcat4, but does not work in Tomcat5.

I made a strainhtforward change to web.xml.

web.xml:
--------

 <welcome-file-list>
   <welcome-file>index.jsp</welcome-file>
 </welcome-file-list>

index.jsp:
----------

<% response.sendRedirect("myStartPage.jsp"); %>

The above works on Tomcat5.

Is this a known issue or should I do more testing and file a bug?

Thanks,
   Michael.

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to