you can modify you pojo object with xdolet label.
and find the file "validate.xml",then hand modify the file accord the jsp
form element.or see the article
http://www.pben.cn/main.bbscs?action=read&bid=33&postID=8a8a8a8f16e1d3270116e87fe7811ebd
how to use appfuse2.0 with struts2
tibi wrote:
>
>
> hi,
>
> can someone enlight me on struts validator.
>
> when i have a struts validator on a form and i call a method the
> validator cicks in before i submit the form. that is not what i want.
> when i move the code to the execute method the validator does not cick
> in and my app works fine.
>
> example:
> this works:
> <action name="convertSubscribtion" class="subscriberAction"
> method="execute">
>
> public String autoSelect() {
> //do some stuff here
> return SUCCESS
> }
>
> @Override
> public String execute() throws Exception {
> log.debug("execute");
> return autoSelect();
> }
> ============================================
> this not because the validoter is in the way:
>
> <action name="convertSubscribtion" class="subscriberAction"
> method="autoSelect">
>
> public String autoSelect() {
> //do some stuff here
> return SUCCESS
> }
>
>
> thanks,
>
> tibi
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>
>
--
View this message in context:
http://www.nabble.com/struts2-validator-tp14342693s2369p14395910.html
Sent from the AppFuse - User mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]