Re: How to get my entered value back when data convertion fails?

smartr <[email protected]> Sat, 16 Dec 2006 04:41:20 CST
Newsgroups gmane.comp.java.open-symphony.webwork
Message-ID <3542216.1166265711203.JavaMail.os-j2ee@opensymphony01.managed.contegix.com>
I'm not sure why you would want to return invalid input for a user, and it'd probably be wiser to do it on the front end, but you could just make a null user date string in the action, and create a getter for it. You assign it the value passed in before converting it. In the result page I'd use a ww:if, check for null, and a ww:property in the value of the field.
---------------------------------------------------------------------
Posted via Jive Forums
http://forums.opensymphony.com/thread.jspa?threadID=53759&messageID=108142#108142

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]