Set application default

2008-11-02 Thread WILLIAMer
Hi all! I wanna make my application as default(ROOT). My application name is Com under the webapps directory. The application url is http://MyDomain/Com . I want to change the url to http://MyDomain/ . I add Context path= docBase=Com reloadable=true crossContext=true debug=0/ in server.xml.

tomcat with jcaptcha

2008-07-06 Thread WILLIAMer
Hi! all, I have an application named eCom unnder the tomcat/webapps and using jcatpcha with the login page. I set the eCom becomes the root dir(path) with the server.xml. So, http://myDomain/ will equal http://myDomain/eCom/. And its seems ok and work with every page. But there is an error when

RE: tomcat with jcaptcha

2008-07-06 Thread WILLIAMer
Sorry i forget to write down the environment. The application used by tomcat version 5.5 and LINUX. Caldarale, Charles R wrote: From: WILLIAMer [mailto:[EMAIL PROTECTED] Subject: tomcat with jcaptcha I have an application named eCom unnder the tomcat/webapps and using jcatpcha

RE: tomcat with jcaptcha

2008-07-07 Thread WILLIAMer
I trace the jcaptcha code. Jcaptcha set a parameter name captchaId in session when this servlet use(when link to login.page). And when user submit the form.Its will get captchaId from session. Then compare the two captchaId. So i system out the captchaId, and see whats wrong. when i link

Re: tomcat with jcaptcha

2008-07-07 Thread WILLIAMer
Sorry my english is poor. I use the version 5.5.20. and i add one line like under let the eCom becomes root in tomcat/conf/server.xml Context path= docBase=eCom debug=0/ before tag /Host markt-2 wrote: WILLIAMer wrote: Sorry i forget to write down the environment. The application used

Re: tomcat with jcaptcha

2008-07-07 Thread WILLIAMer
I think i find why the sessions are different. The Login.jsp i put in eCom/Admin/. for example: link http://myDomain/;, the session is A, link http://myDomain/Admin/;, the session is B, link http://myDomain/eCom/Admin/, ths session is B, link http://myDomain/eCom/;, the session is B, why i set

Re: tomcat with jcaptcha

2008-07-07 Thread WILLIAMer
Thanks for replies :) Sorry, my english is hard to read! I google for how to set the apps to default(ROOT) though chinese keywords, there are kinds of lists. However, i read different version have different approach. I try some and get useful with add one line code that i wrote that post

RE: tomcat with jcaptcha

2008-07-07 Thread WILLIAMer
MY webapps tree: eCom-Admin -Login.jsp -Account - some .jsp -Other directory I think Admin and eCom are not two webapps And Admin is not a webapps deployed inside eCom, right? Caldarale, Charles R wrote: From: WILLIAMer

RE: tomcat with jcaptcha

2008-07-08 Thread WILLIAMer
Thanks for reply ,Sameer :) for me, webapps | - eCom - Admin - Login.jsp - Account - *.jsp eCom is a webapps and Admin is a directory under eCom , right? I just strange why i set the eCom default apps(it means root dir/path), the sessions are different between eCom and Admin.

Re: tomcat with jcaptcha

2008-07-08 Thread WILLIAMer
Thanks Johnny, and Sammer reply me by e-mail :) I think move the data under eCom to ROOT directory and delete the eCom directory is a way to help me work out this. Likes Johnny says, if i set the eCom default, there are two directories - eCom and ROOT. I think i understand why the session

tomcat url rewrite

2009-09-11 Thread WILLIAMer
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 the error like

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-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,

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 rule from/item_(.*).html/from to type=forward/getItemPage?itemName=$1/to /rule If there is a url like /item_xxx.html, the url rewriter filter will

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-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

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-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_s:property value=item /.html . Now, i need to change this link path to absolute path, right? Thanks for your help. --

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:

connect tomcat and apache by mod_jk2

2010-01-06 Thread WILLIAMer
Hi, ALL. I have connect tomcat and apache by mod_jk2 at the same machine(solaris). I can see the application page with http://localhost:4080/ or http://localhost/ by apache. Now, i need to move tomcat to another machine in LAN. So i change the workers2.properties setting like under