Perhaps I'm misunderstanding you, but I think you can do:

<html:form action="<%= request.getRequestURI() %>">

Hope it helps
Patrice

----- Original Message -----
From: "Pablo Casado" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Wednesday, December 04, 2002 4:42 PM
Subject: html:form relative action howto?


hello,

how do I do the following,

--struts config--
<action path="/x/y/myaction" ...>
 <forward name="success" path="myjsp.jsp">
</action>
<action path="/a/b/myaction" ...>
 <forward name="success" path="myjsp.jsp">
</action>

--myjsp.jsp --
<html:form action="whichever action that forwarded to me">

so the possible values in the html:form action can be /x/y/myaction or
/a/b/myaction

Thanks.
- Pablo.








---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.423 / Virus Database: 238 - Release Date: 11/25/2002


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

Reply via email to