You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by Leonardo Almeida <le...@gmail.com> on 2012/01/09 13:18:58 UTC
Best way to use ajax loading on s:submit
Hi,
i would like to know what's the best way to load a page, when a user clicks
on the menu (ajax loading).
Im currently using struts-jquery plugin: <sj:a href="editUser"
targets="content"></a> where content is a div id.
editUser.jsp result page have a <s:form> with a submit button. Using
<s:submit targets="content"> doesnt loads the page on the div,
but <sj:submit targets="content"> works But the html generated by sj:submit
is different, and the button is not aligned to the right like s:submit.
is there a way to solve this ? Should i go with sitemesh or tiles Instead
of sticking with AJAX and CSS for laying out ?
Thanks for any help in advance,
Leonardo