I donīt understand a lot of things about Struts, for example, I have a jsp:
I know that when I submit will go to the listRequirementsAction, after that I receive in listRequirementsForm the parameters.
<shtml:form method="post" action="/listRequirements.do?format=jsp">
I see in jsp this:
that is a link and I understand that call this link and it execute loadRequirementAction , the doubt is:
<a class="common_link" title="<bean:message key='listRequirements.update'/>" href="/item/loadRequirement.do;jsessionid=<%= session.getId()%>?target=work_on_requirement&id=<bean:write name="data" property="id"/>" ><bean:write name="data" property="id"/></a>
If I donīt submit is there another way to assign the parameters to the form???
.... if you use queryString, you pass like this, so you can obtain the parameters, in other case you have to do a submit.
Use a hidden field in the jsp form.
make sure that variable hiddenfield is in your ActionForm.
<html:hidden property="hiddenfield" value="whatever"/>
Then submit the form with a submit button. In the struts.config you have the
forward go to the /loadRequirement action.