I had a problem, and solved it while writing this but I'll send it anyway.

I'm using Tomcat 5.0.19 and Struts 1.1 on W2K.

My problems started when I moved my web application from a context, to the
container root.

Struts generated urls with double leading slash such as //Login.do which
caused all sorts of problems.

My <html:form action="/myAction">

generated <form action="//myAction.do">

or if the page was in a module called test it generated

<form action="//test/myAction.do">

The problem?  I had incorrectly deployed the application into the root by
specifying the context path as / instead of null.

Tomcat took it so I thought all was well, (a few <html:img> problems which I
worked around by using <c:url...> ) but of course
javax.servlet.ServletContext.getServletContextName returns what I typed (
"/" ) and thus the double slashes.

My incorrect <context> read:
<Context path="/" docBase="D:/Website/" ... >

and the correct one:

<Context path="" docBase="D:/Website/" ... >

Although it's pretty hard to search the archives (even google) for // double
slashes maybe this will help someone else out.

._. Brian



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

Reply via email to