Marco Leal wrote:
> I don't know if this message got through the first time I sent it. If
> you're seeing it again, I'm sorry.
>
Two questions:
* What version of Tomcat? If it's less than 3.2 you should upgrade.
* Are you running Tomcat stand-alone or behind a web server
like Apache. If it is the latter, you have to add some Apache
configuration stuff (using mod_rewrite) to make Apache deal
with jsessionid correctly. There is a FAQ entry on this at
<http://jakarta.apache.org/faq> - do a search for "URL rewriting"
to find it.
Craig McClanahan
>
> --
>
> Hi guys!
>
> I'm having some problems with servlet mapping in a servlet application.
> My 'web.xml' file looks like this:
>
> [...]
> <servlet>
> <servlet-name>room</servlet-name>
> <servlet-class>myapp.presentation.Room</servlet-class>
> </servlet>
> <servlet-mapping>
> <servlet-name>room</servlet-name>
> <url-pattern>/room</url-pattern>
> </servlet-mapping>
> [...]
>
> I'm using session management through URL encoding. The problem is this:
> if, for instance, I access the above servlet like this:
>
> http://localhost:9000/room?type=a
>
> I have no problem and everything is fine but if the sessionid goes into
> the URL like this:
>
> http://localhost:9000/room;jsessionid=xebW6G9aFVCb96y6yNTVSMxN?type=a
>
> I get:
>
> <h1>Error: 404</h1>
> File Not Found: /room;jsessionid=xebW6G9aFVCb96y6yNTVSMxN
>
> I'm guessing the problem is in the servlet-mapping section of the
> 'web.xml' file but I've tried lots of variations but nothing worked.
> Could anyone shed some light on this, please?
>
> --
> Marco Leal
> MobiComp - Mobile Computing & Wireless Solutions
> http://www.mobicomp.com/
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, email: [EMAIL PROTECTED]
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, email: [EMAIL PROTECTED]