You don't need to generate an s:url to construct the action of the form. The s:form tag has its own action and namespace attributes. If you need to send extra parameters, like id=java, you could instead use a s:hidden tag inside the form.
2008/8/5 Kibo <[EMAIL PROTECTED]>: > > Hi konference > > when I use this: > ------------------------------------------------------------ > <s:url id="url" action="HelloWorld" namespace="/example" > > <s:param name="id" value="%{'java'}" /> > </s:url> > > <s:a href="%{url}" >link</s:a> > > <s:form action="%{url}" method="post"> > <s:textfield></s:textfield> > <s:submit></s:submit> > </s:form> > --------------------------------------------------------------- > After render link is good: > <a href="/struts2-blank-2.0.11.2/example/HelloWorld.action?id=java" > > > but in form is failure: > <form id="HelloWorld" onsubmit="return true;" > action="/struts2-blank-2.0.11.2/struts2-blank-2.0.11.2/example/HelloWorld.action?id=java" > method="post"> > > I get two context patch. Is it bug or do I something no good? > > Thanks > > ----- > Tomas Jurman > Czech Republic > -- > View this message in context: > http://www.nabble.com/Tags-url-and-form-tp18825612p18825612.html > Sent from the Struts - User mailing list archive at Nabble.com. > > > --------------------------------------------------------------------- > 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]