struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jeremy Lott <>
Subject RE: mapping ".do" actions under oc4j
Date Tue, 01 Oct 2002 15:26:28 GMT

Have you tried using relative paths instead of absolute paths?  Your
absolute ones begin with a slash "/" whereas a relative one begins with a
dot slash "./" (or nothing).  I had the exact same problem and that's what
worked for me.


-----Original Message-----
From: James Gagan []
Sent: Tuesday, October 01, 2002 12:33 AM
Subject: mapping ".do" actions under oc4j

Hi all,

I suspect this is a newbie type problem, so please have some patience.

I just delivered my first struts web-app to my organization's OC4j delivery

When i test it on the server, it's running under a directory structure like


and there's a welcome file so my index.jsp page comes up without having to
enter anything more.

so far so good.

But, I had to change a number of the paths in my links to various actions
within the application.

For example, I had to rename some links to "/apps/myApp/"

whereas before, I just had the "/"

This cannot be a *good thing*, since obviously it makes the application a
lot less portable.

If it moves to another server that doesn't follow the same directory
structure, it's all gonna fall apart....

I have deployed the application under the exact same directory structure on
my own OC4j server, and I have the same problem.

Also I should note that though you don't see it in the address bar, the
directory is really:


and everything else (WEB-INF, jsp etc) is under that.

So, I'd really like to know how to keep this code portable,

and not have to add on to all my ".do" links to get them to work!

Any help would be really appreciated.

(I tried adding <%request.getContextPath()%> but that didn't work either,
though I may have done it wrong.)


James Gagan


Outgoing mail is certified Virus Free.

Checked by AVG anti-virus system (

Version: 6.0.391 / Virus Database: 222 - Release Date: 9/19/2002

reply to:

This e-mail, including attachments, may include confidential and/or
proprietary information, and may be used only by the person or entity to
which it is addressed. If the reader of this e-mail is not the intended
recipient or his or her authorized agent, the reader is hereby notified that
any dissemination, distribution or copying of this e-mail is prohibited. If
you have received this e-mail in error, please notify the sender by replying
to this message and delete this e-mail immediately.

To unsubscribe, e-mail:   <>
For additional commands, e-mail: <>

View raw message