You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by aum strut <au...@gmail.com> on 2008/03/04 16:40:16 UTC
Problem with returning SUCCESS from execute
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
Re: Problem with returning SUCCESS from execute
Posted by aum strut <au...@gmail.com>.
thks for the rply..
really silly i m even knowing this i did this mistake.
:)
On 3/4/08, Lukasz Lenart <lu...@googlemail.com> wrote:
>
> > *class* StrutsExample {
>
> Your class should extend ActionSupport or return Action.SUCCESS (not
> SUCCESS)
>
>
> Regards
> --
> Lukasz
>
> http://www.linkedin.com/in/lukaszlenart
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
> For additional commands, e-mail: user-help@struts.apache.org
>
>
Re: Problem with returning SUCCESS from execute
Posted by Lukasz Lenart <lu...@googlemail.com>.
> *class* StrutsExample {
Your class should extend ActionSupport or return Action.SUCCESS (not SUCCESS)
Regards
--
Lukasz
http://www.linkedin.com/in/lukaszlenart
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org