Re: tomcat & url rewrite

2009-09-28 Thread WILLIAMer
to Christopher Schultz-2: I try to rewrite some relative path to absolute path for CSS and image. And it work!!! So i think i find the solution for this. The "/" char will not let me get error, just check the relative path. Thanks for your help! -- View this message in context: http://www.nab

Re: tomcat & url rewrite

2009-09-18 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 William, On 9/17/2009 10:30 PM, WILLIAMer wrote: >> If you always start your URLs with a '/', then you shouldn't have a problem. > > Could you explain this Sentence to me? Uh... you should make sure all your URLs are absolute, not relative. IF you h

Re: tomcat & url rewrite

2009-09-17 Thread WILLIAMer
Hi, Christopher Schultz-2 If you always start your URLs with a '/', then you shouldn't have a problem. Could you explain this Sentence to me? In my jsp, i write a href="./item_.html" . Now, i need to change this link path to absolute path, right? Thanks for your help. -- View this message in

Re: tomcat & url rewrite

2009-09-17 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 William, On 9/16/2009 10:04 PM, WILLIAMer wrote: > Let me say sorry for i didnt description the error. > The error like the path is mapping incorrectly. So, what error message do you get? > So the image or css are not display because of the path not

RE: tomcat & url rewrite

2009-09-16 Thread Caldarale, Charles R
> From: WILLIAMer [mailto:william.tz...@echannelopen.com.tw] > Subject: Re: tomcat & url rewrite > > The error like the path is mapping incorrectly. What do you have in WEB-INF/web.xml for your webapp? > I set my application to be ROOT. How? > Why i say http://myDomain

Re: tomcat & url rewrite

2009-09-16 Thread WILLIAMer
Hi, Christopher Schultz-2 Let me say sorry for i didnt description the error. The error like the path is mapping incorrectly. So the image or css are not display because of the path not find. A part of my application structure like under /tomcat/webapps/myApp/images

Re: tomcat & url rewrite

2009-09-16 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 William, On 9/15/2009 9:45 PM, WILLIAMer wrote: > There is no error with url rewrite. > For item "pd1234", > The url would be http://myDomain/item_pd1234.html and its fine. Ok. > For item "pd12/34" > The url would be http://myDomain/item_pd12/34.htm

Re: tomcat & url rewrite

2009-09-15 Thread WILLIAMer
Hi, Christopher Schultz-2 There is no error with url rewrite. For item "pd1234", The url would be http://myDomain/item_pd1234.html and its fine. For item "pd12/34" The url would be http://myDomain/item_pd12/34.html and got error. Because tomcat seems there is a directory named item_pd12under my a

Re: tomcat & url rewrite

2009-09-15 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 William, On 9/14/2009 9:43 PM, WILLIAMer wrote: > I got the problem if the item name(from database) have "/" char, > the full url path http://myDomain//item_1/23.html would be error. Where does the error occur? Does the URL re-writer fail to re-writ

Re: tomcat & url rewrite

2009-09-14 Thread WILLIAMer
To Christopher Schultz-2, See my previous post, i have used urlrewrite( http://tuckey.org/urlrewrite/ http://tuckey.org/urlrewrite/ ) I already write the rule in rewrite.xml for /item_123.html to /getItemPage?itemname=123 I got the problem if the item name(from database) have "/" char, the full

Re: tomcat & url rewrite

2009-09-14 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 William, On 9/13/2009 10:05 PM, WILLIAMer wrote: > I think look up the url in database is not a Immediately way to me. > Because most of item not have the "/" char in name. > > My original url would like http://myDomain/getItemPage?itemName=xxx > Aft

Re: tomcat & url rewrite

2009-09-14 Thread WILLIAMer
I use http://tuckey.org/urlrewrite/ url rewriter filter for doing url rewrite. And i write the rule in urlrewrite.xml. My rule like under /item_(.*).html /getItemPage?itemName=$1 If there is a url like /item_xxx.html, the url rewriter filter will redirect to /getItemPage.action?itemNa

Re: tomcat & url rewrite

2009-09-14 Thread Pid
On 14/09/2009 03:05, WILLIAMer wrote: I think look up the url in database is not a Immediately way to me. Because most of item not have the "/" char in name. My original url would like http://myDomain/getItemPage?itemName=xxx After the url rewrite rule, url become http://myDomain/item_xxx.html

Re: tomcat & url rewrite

2009-09-13 Thread WILLIAMer
I think look up the url in database is not a Immediately way to me. Because most of item not have the "/" char in name. My original url would like http://myDomain/getItemPage?itemName=xxx After the url rewrite rule, url become http://myDomain/item_xxx.html If the item name like "abc/def", http

Re: tomcat & url rewrite

2009-09-11 Thread Hassan Schroeder
On Fri, Sep 11, 2009 at 4:01 AM, Pid wrote: > Why not just make the URLs in such a way that you can look them up in the > database?  A servlet Filter could perform the same task in one go that your > rewrite & db lookup is doing. Exactly -- your URL is only a problem if you're passing the reques

Re: tomcat & url rewrite

2009-09-11 Thread Pid
On 11/09/2009 11:18, WILLIAMer wrote: Thanks for replies. To awarnier: Change the item name will lost the SEO for this item. To Pid-6: It is dynamic page and item data are from database. I use url rewrite for looking like static page. Why not just make the URLs in such a way that you can loo

Re: tomcat & url rewrite

2009-09-11 Thread WILLIAMer
Thanks for replies. To awarnier: Change the item name will lost the SEO for this item. To Pid-6: It is dynamic page and item data are from database. I use url rewrite for looking like static page. So the tomcat is right. I must think another way. Thanks all. -- View this message in context:

Re: tomcat & url rewrite

2009-09-11 Thread Pid
On 11/09/2009 08:07, André Warnier wrote: WILLIAMer wrote: I get a problem with the URL. My application has url rewrite for SEO. I use this format http://mydomain/item.html for display. There is an error that if the item name like LF/123, then the url become http://mydomain/LF/123.html. Because

Re: tomcat & url rewrite

2009-09-11 Thread André Warnier
WILLIAMer wrote: I get a problem with the URL. My application has url rewrite for SEO. I use this format http://mydomain/item.html for display. There is an error that if the item name like LF/123, then the url become http://mydomain/LF/123.html. Because of the name include "/" character. I got t

RE: Tomcat URL Rewrite. Help with configuration.

2009-03-18 Thread Rodro
om] >> Subject: Re: Tomcat URL Rewrite. Help with configuration. >> >> Though redirection didn't work, but furthermore when I try to see >> http://localhost:8080/rewrite-status, I get the below error: >> Estado HTTP 404 - /rewrite-status > > That would be expect

Re: Tomcat URL Rewrite. Help with configuration.

2009-03-11 Thread Rodro
According to the documentation, such "context" should give you a "wellcome page" to the urlrewriting service, but yes I don't need it indeed. The error message in English is: HTTP Status 404 - /rewrite-status type S

RE: Tomcat URL Rewrite. Help with configuration.

2009-03-11 Thread Caldarale, Charles R
> From: Rodro [mailto:rodrigo_alle...@ibi.com] > Subject: Re: Tomcat URL Rewrite. Help with configuration. > > Though redirection didn't work, but furthermore when I try to see > http://localhost:8080/rewrite-status, I get the below error: > Estado HTTP 404 - /rewrit

Re: Tomcat URL Rewrite. Help with configuration.

2009-03-11 Thread Ben Hu
Rodrigo, What is the error message in English? And i think this one is just an example config file coming with urlrewriter. If you do not need it, you can just delete it. The rule means that requests to /test/status/ will be redirected to /rewrite-status the url wi

Re: Tomcat URL Rewrite. Help with configuration.

2009-03-11 Thread Rodro
Dear awarnier. Ok, Now I found such WEB-INF directory (in my app it's C:\ibi\WebFOCUS76\webapps\webfocus76\WEB-INF), and followed the installation and configuration steps. 1) copied urlrewrite.xml into such WEB-INF 2) edited web.xml with the below lines: UrlRewriteFilter org.tuckey.w

Re: Tomcat URL Rewrite. Help with configuration.

2009-03-10 Thread André Warnier
Rodro wrote: Dear Tomcat Users. I'm trying to do a URL masking on Tomcat 5.5.25. What I specifically want to do is: I execute (call) an app with the following URL: http://localhost:8080/ibi_apps/WFServlet?IBIF_ex=carinst Now, I need to mask the URL to get the same result calling the app as: