I know you can map the 'default' context ( '/' ) to a particular context in Tomcat, as we did that on an app I worked on. Hence, we could access the app as:
http://www.somecompany.com/
and
http://www.somecompany.com/OrderEntry
-jeff
On Tuesday, August 19, 2003, at 09:08 AM, java-dude wrote:
The business requires to put their own URL on the application such as :-
www.somecompany.com/example
NOT as is currently happening :-
www.somecompany.com/app/example
where the app part of the URL is coming from app.war used to deploy the app.
If I can tweak the config of the application so the form action path becomes "/example" instead of "/app/example", as currently, then it should be possible for the system administrator to remap the application to www.someapp.com/example
This must be already being done in numerous companies but I don't know how we can achieve this at the moment.
--- In [EMAIL PROTECTED], "Alex Shneyderman" <[EMAIL PROTECTED]> wrote:content.
The way container works is to deploy an application to its ownThe way your container knows which application a user requestrefers tois by looking at the prefix of the request. So unless you mountyourapplication onto the ROOT content (prefix "/") I can not imaginewhatyou are asking for is possible. But then again if some dude willcomealong and remount your app to some /app content ... Suppose youdevelopserveran app called app1 and have example.do action there. How would you differentiate between /app/example.do and /app1/example.do?
HTH, Alex.
-----Original Message----- From: java-dude [mailto:[EMAIL PROTECTED] Sent: Tuesday, August 19, 2003 7:23 AM To: [EMAIL PROTECTED] Subject: Changing application path
Hi,
I need to change the base path of my struts application so that there is no prefix on the form actions.
For example if my application is deployed in the applicationactionas app.war and I view the source for a jsp with a form on it, say example.jsp, in internet explorer, I see that the form has anactiontag as follows :-
action="/app/example.do"
This is happening even though the jsp is actually coded with----tag as follows :-
action="example"
Basically I would like the generated source for this page to be without the base of the path as follows :-
action="/example.do"
I am guessing it may require manipulation of the web.xml and/or struts-config.xml files but I am not sure, and if so how ?
Suhel Rizvi
-------------------------------------------------------------------To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
-------------------------------------------------------------------To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]