Java Mailing List Archive

http://www.junlu.com/

Home » Home (12/2007) » Tomcat Users »

RE: ServletRequest's path elements not updated by calls to getRequestDispatcher()

Shapira, Yoav

2004-01-21



Howdy,

>All I want to do is do what apple does if you go to
>www.apple.com/ipodmini or www.apple.com/ipodmini/ you get the same
page.
>This shouldn't be that hard, but whats the best way to do it?

Going to apple.com/ipodmini leaves the URL as-is, I just tried it, so
I'm not sure what you mean.

You can have a tiny webapps installed at /target with one filter that
forwards all requests to the application installed at /. For more
flexibility, you can look at the balancer webapp that ships with tomcat
and allows for rules-based forwarding, much like mod_rewrite.

>Should I just start using Apache's mod_rewrite?

You could.

Yoav Shapira



This e-mail, including any attachments, is a confidential business communication, and may contain information that is confidential, proprietary and/or privileged. This e-mail is intended only for the individual(s) to whom it is addressed, and may not be saved, copied, printed, disclosed or used by anyone else. If you are not the(an) intended recipient, please immediately delete this e-mail from your computer system and notify the sender. Thank you.


---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@(protected)
For additional commands, e-mail: tomcat-user-help@(protected)



©2008 junlu.com - Jax Systems, LLC, U.S.A.