struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Ivan Fontanals" <ivan.fontan...@gmail.com>
Subject Help posting a form with an anchor and targets
Date Wed, 29 Aug 2007 07:38:34 GMT
Hi,

I'm trying to send a form from an anchor tag, but I've only archieved to
send the form without the "targets" attribute.

When I put the target ID, the form is not sended but the page redirects
correctly.
Otherwise it works well but the page is not redirected.

My code is:

<s:form id="myForm" theme="simple" method="POST" >
    <s:textfield name="name" value="NAME"/>
    <s:textfield name="desc" value="DESC"/>
    <s:textfield name="ref" value="REF"/>
</s:form>

<%-- BUTTONS --%>
 <ul>
     <li>
        <s:url id="actionButton" action="save"/>
        <s:a theme="ajax" id="buttons" href="${actionButton}"
formId="myForm" targets="div0" >SAVE</s:a>
     </li>
</ul>

Please, could you give me any ida about what is happening?

Thank you very much for your time!


Ivan Fontanals

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message