I'm using struts 2 to create a form whose action links outside of struts 2. The problem is when I set the action parameter in the <s:form tag, the framework is putting the Struts2 context in the URL. For instance: say I have a struts 2 project called struts2.war, and another project called myProject.war.

<s:form action="/myProject/processForm">
...
</s:form>

will create a <form action="/struts2/myProject/processForm">
instead of
<form action="/myProject/processForm"> like I want.

I've tried to use a literal like: <s:form action="'/myProject/processForm'", and even the "recommended" syntax of %{'/myProject/processForm'}.

"'/myProject/processForm'" results in action="'myProject/processForm'"

while
%{'/myProject/processForm'}

results in
action="/struts2/myProject/processForm"

One way around this is of course to just use the raw <form> tag of html. It seems like it should be possible to use the Struts 2 tag here and be able to gain it's benefits (though obviously not server side validations)

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

Reply via email to