I m working struts2 in
jboss and Using three type of Tag in my
Jsp
1- <s:textfield key="username" /> its working fine
2- <s:textfield key="global.username" name="username"/> its also working fine
3- but in this tag <s:textfield key="global.username" />
in the 3rd have defined the global.username=User Name in my global.properties file and make getter setter of userName in my LoginAction.java
but still its giving error
16:14:39,092 WARN [com.opensymphony.xwork2.ognl.OgnlValueStack] (default task-4) Error setting value: ognl.OgnlException: target is null for setProperty(null, "username", [Ljava.lang.String;@4718fae3)
at ognl.OgnlRuntime.setProperty(OgnlRuntime.java:1651)
at ognl.ASTProperty.setValueBody(ASTProperty.java:101)
at ognl.SimpleNode.evaluateSetValueBody(SimpleNode.java:177)
at ognl.SimpleNode.setValue(SimpleNode.java:246)
can you please tell me when should i use the 3rd number type of tag and how can i use?? and make getter and setter in action.