Hi,
I have a problem invoking actions from my jsp pages with tag in struts2. I have the login.jsp file:
<s:action name="headerMenu" executeResult="true" namespace="/menu"</s:action>
<s:form action="executeLogin">
<s:textfield name="username" label="Username"></s:textfield>
<s:password name="password" label="Password"></s:password>
<s:submit></s:submit>
</s:form>
The headerMenu action renders the result in header.jsp:
<div id="menu">
<s:iterator value="menus">
<s:property escape="false" value="'<a href=\"'+path+'\" title=\"'+description+'\">'+title+'</a>'"/>
</s:iterator>
</div>
This jsp file renders a menu that comes from a LinkedList (named menus) in the Action class of headerMenu action.
When accessing the "login.action", the menu is rendered fine, but if I enter data in the form, the submit the form, and submission has validation errors, I return to the page, the form is rendered ok, but the menu is missing. I still have "..." in the page, but no menu... It is like the action that gives the menu is invoked but the execute() method does not execute...
Can somebody please help me with this?
Vasi.