You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by Michael Jouravlev <jm...@gmail.com> on 2006/03/16 19:41:26 UTC

Tomcat 5-5-16, welcome page behaves strangely

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: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org


Re: Tomcat 5-5-16, welcome page behaves strangely

Posted by Xiangzhou Wang <xi...@yahoo.com>.
I would suggest you to compile your project with the
tomcat you are using, such as server-api.jar etc.

There could be some API not matching as tomcat 4 and 5
supports different version of servlet/jsp spec.

William


--- Michael Jouravlev <jm...@gmail.com> wrote:

> 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:
> users-unsubscribe@tomcat.apache.org
> For additional commands, e-mail:
> users-help@tomcat.apache.org
> 
> 


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org