Hi,
In struts 2 provide better facility than older version.
You can get variable using more than one style.
you can also use request for get it by just implement ServletRequestAware and Add unimplemented method.
Or you can directly use or define one
String variable which name is match to your jsp page firstname tag like
<s:textfield cssClass="textfield" theme="simple" name="firsttName" />
then declare
private String firsttName;
and use getter and setter method for firsttName in Action you can directly get the value of firsttName.
so no need to take request object.
because Struts 2 place all the Action variable at OGNL value statck So, you can get it directly.