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.
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
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
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
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
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
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
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
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.
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
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
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:
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,
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
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
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
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
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.
--
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:
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
20 matches
Mail list logo