hi all, i am using MyEclipse for developing struts2 based example everything is working fine but in my execute method when i am trying to return the SUCCESS it is giving the error that it can not resolved error. below is the code i have written
* package* aum.struts.tester; * import* java.sql.Date; * import* com.opensymphony.xwork2.Action; * import* com.opensymphony.xwork2.ActionSupport; *class* StrutsExample { //private static final String SUCCESS = null; *private* String name="null"; Date date; *public* Date getDate() { *return* date; } *public* *void* setDate(Date date) { *this*.date = date; } *public* String getName() { *return* name; } *public* *void* setName(String name) { *this*.name=name; } *public* String execute() *throws* Exception{ *return* SUCCESS;---->*here it is showing that it is not able to resolve the error.* } } Please help me find out the problem with this. Thanks in advance --aum