Well, thank you all for your help!
Apparently I am an idiot.  Jeremy was right, I had to remove the "/" from
the front of my
actions in the jsp's!! So instead of "/doSomething.do" it's just
"doSomething.do"
I guess because I saw them in the struts-config file, I just assumed they
should be there in the jsp's....silly me.
But thanks to everyone for their good advice.  At least I won't make the
same mistake again!

James Gagan



-----Original Message-----
From: Jeremy Lott [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, October 01, 2002 8:26 AM
To: 'James Gagan'
Cc: '[EMAIL PROTECTED]'
Subject: RE: mapping ".do" actions under oc4j


James,

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.

Jeremy

-----Original Message-----
From: James Gagan [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, October 01, 2002 12:33 AM
To: [EMAIL PROTECTED]
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
server.

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

"http://some.server:8888/apps/myApp/";

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/doSomething.do"

whereas before, I just had the "/doSomething.do"

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:

oc4j/j2ee/home/apps/myApp/myApp-web/

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

Thanks,

James Gagan



---

Outgoing mail is certified Virus Free.

Checked by AVG anti-virus system (http://www.grisoft.com).

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

reply to: [EMAIL PROTECTED]



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:
<mailto:[EMAIL PROTECTED]>
For additional commands, e-mail:
<mailto:[EMAIL PROTECTED]>

---
Incoming mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.391 / Virus Database: 222 - Release Date: 9/19/2002

---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.391 / Virus Database: 222 - Release Date: 9/19/2002


--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

Reply via email to