I want to ask about using of ajax/jquery in struts. I have project that build using three j2ee framework (spring, struts, hibernate). I want to use jquery 'anchor' and 'load div' in my project, so it can look like gmail. When i click Inbox, the action only refresh body.
Before ask this question, i've try to using this example. But, this source can't resolve my problem, because there no back action if using this resource. The other problem is :
i want to display a form using jquery. The form has displaying, but not for dropdown that get data from action class. For example, the action class 'functionAction
' has variable private List<Function> functionList;
and on the form:
<s:iterator value="functionList" status="s"> <tr>
<td><s:property value="functionName" /></td> <td><s:property value="functionDesc /></td>
<td><input type="checkbox" class="checkbox" name="function" value='<s:property value="functionId" />'></td>
</tr> </s:iterator>
The dropdown is not displaying anything. First active url is "http://localhost:1616/proyek/home". This url accessing HomeAction
. Than, i click an anchor tag (remote link to other action), the body is changed with a form that return by url/remote action, but the dropdown (on the form) has no element. This maybe caused by active link. The active link is home/HomeAction
, whereas the form need data from other action (FormAction
).
Please tell me, how to resolve this., thank's Sory for my bad english.,