Re: struts2.0 action question

2006-12-13 Thread Don Brown
You need to create static field variables for those constants in your Action class: public static final String READ = "read"; public static final String WRITE = "write"; Don On 12/13/06, red phoenix <[EMAIL PROTECTED]> wrote: I am puzzled with struts2.0 action file,my files are follows: confi

struts2.0 action question

2006-12-13 Thread red phoenix
I am puzzled with struts2.0 action file,my files are follows: configure file is follows /chat/read.jsp /chat/write.jsp action file is follows: public String execute() throws Exception { String flag=request.getParameter("flag"); if("1".equals(flag)) return SUCCESS; else if("2".equ