struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Zheng, Xiahong" <Xiahong.Zh...@FMR.COM>
Subject Strut2: How to determine if a request is a form submission?
Date Wed, 12 Dec 2007 19:06:44 GMT
 
Hi, 

I am trying to write an action to support a simple form submission work
flow. The "execute" and "prepare" methods will differ depending on
whether it's form submission or initial rendering of the form. On the
initial rendering, the "prepare" method will load the model from DB. On
form submission, the model object will be created empty and be populated
from the request. Is there a easy way to know if a request is a result
of form submission or not?

Thanks,
XZ

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


Mime
View raw message