struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Lukasz Lenart <lukasz.len...@googlemail.com>
Subject Re: excute method will not work without the form's button
Date Fri, 11 Dec 2009 07:06:01 GMT
2009/12/11 Nguyen Xuan Son <yamacom@gmail.com>:
> can you tell me more in detail?
> thank you very much

You're probably accessing your application like that
http://localhost:8080/myapp/index.jsp

And in such case, action isn't executed. Try to create action that
will have execute() method and will return SUCCESS and the result will
the index.jsp, then you access your application in that way
http://localhost:8080/myapp/index.action

It's a good practice in Struts not to access jsp (or other) pages
directly, all the time define actions and the forward to jsp


Regards
-- 
Lukasz
http://www.lenart.org.pl/

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org


Mime
View raw message