Log in:
Register Now! It's FREE!
Members click here to Sign In!

News
RECENT ANNOUNCEMENTS
Post new topic

Tomcat config question

RealPoor.com » RealPoor General Talk » General Badass
 
 
Author
 
 
Message
 
Posted: 03/31/06 - 19:48
Report abuse 
RealPoor Guru
motherface
Joined: 12 Mar 2003
Posts: 3444
 
Long shot posting here, but...

I have a webapp that's accessed via http://localhost:8080/webappname/?stuff=whatever . I want to change it so this thing works by using http://localhost:8080/webappname?stuff=whatever . The difference between the two URLs is the trailing slash after "webappname". If you make the 2nd request, Tomcat will give you a 302 to the first one. I want it not to do this, I just want the app to be served without the /. I know this seems like a stupidly anal problem, but it's for backward compatibility reasons. Anybody got a clue? I'm a nub when it comes to Tomcat.


Reply with quote
Posted: 03/31/06 - 21:10
Report abuse 
Toomuchtimeonhands
Zimzulu
Joined: 02 Dec 2005
Posts: 890
 


Reply with quote
Posted: 03/31/06 - 22:16
Report abuse 
RealPoor Jedi
Occulis
Joined: 11 Oct 2002
Posts: 13299
 
Isn't Tomcat just apache? Sorry, I don't know much about it at all. I disabled it on my VPS. Razz


Reply with quote
Posted: 03/31/06 - 23:06
Report abuse 
RealPoor Jedi
Occulis
Joined: 11 Oct 2002
Posts: 13299
 
Update:

Maybe you're screwed.

http://marc.theaimsgroup.com/?l=tomcat-user&m=110303539917011&w=2


Reply with quote
Posted: 04/01/06 - 12:12
Report abuse 
RealPoor Guru
motherface
Joined: 12 Mar 2003
Posts: 3444
 
Occulis wrote:


Damn... that sucks c***s in hell. Wish the guy had elaborated more.

Thank you sir.


Reply with quote
Posted: 04/03/06 - 09:47
Report abuse 
RealPoor Guru
motherface
Joined: 12 Mar 2003
Posts: 3444
 
That guy was a tard.

Code:
    <servlet-mapping>
        <servlet-name>WhatEver</servlet-name>
        <url-pattern>/*</url-pattern>
    </servlet-mapping>


Reply with quote

Post new topic
 
MY NAVIGATOR
 
 
Newsletter
 

Subscribe to FREE monthly RealPoor.com newsletter.

RealPoor.com » RealPoor General Talk » General Badass
 
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum