Hi all,
I am trying to pass a paramter form a
jsp file to an action.
In the jsp I specify the parameter as following.
<html:link action="/viewPerson" paramId="pId" paramName="person" paramProperty="id">Link Text</html:link>
The action is specified in the struts-config file as follows.
<action path="/viewPerson" type="a.b.c.PersonAction"
scope="request" input="input.page">
<forward name="success" path="/anotherPage.do"/>
</action>
In the execute method of the actions a.b.c.PersonAction action class is the following.
String personId = (String)request.getAttribute("pId");
The problem is that the jobId here is null.
Also when i hover over the link text i can see that the paramter is set in explorer i.e.
http://localhost:8080/viewPerson.do?pId=34 Does anyone know what i am doing wrong?
Thanks a lot for the help in advance.