Hi all
I am migrating my code to
struts 2 .I am getting problem with bean:define tag
in struts 2 i have use the the <s:set> teg for that but i am unable to get the value in my action class
the code snippet is a s follows
In struts 1
<bean:define id="itemId" name="groupAdminEditForm" property="itemId" type="java.lang.Integer"/>
In struts 2
<s:set name="itemId" value="%{itemId}" />
In action class
public void setItemId(int itemId){ this.itemId = itemId; }
public int getItemId(){ return itemId; }
if i say <s:property name="itemId"/> I am getting the value in
jsp but I am not able to get that value in action class
am I doing some thing wrong