tags:

views:

16

answers:

1

i have an input in struts 2 form like this

<s:form action="Action">
       <input type="text" value="v01" name="name01"/>
 </s:form>

the problem is:

when i tried to getParameter("name01") i got **null**? how to access this parameter in my action? Note: i implemented **ServletRequestAware,ServletResponseAware**

A: 

You need to add getters/setters in your Action class for the form inputs.

Nate