File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
A friendly place for programming greenhorns!
Big Moose Saloon
Register / Login
Form validation: how can khow in jsp that my action validation failed?
Joined: Feb 23, 2009
Feb 27, 2009 10:29:59
I need output special info in
if validation failed. How can I do it? ActionSupport has method hasActionErrors. I need smth like that for JSP.
Joined: Sep 29, 2008
Feb 27, 2009 11:29:01
If you're not using the framework's error tags just use an <s:if test="hasActionErrors()"> (or whatever). You can call arbitrary functions via OGNL.
I agree. Here's the link:
subject: Form validation: how can khow in jsp that my action validation failed?
front-end validation in struts jsp page
boolean need_ of_ vbscript_in_jsp()
Struts2: bypass the prepare method?
Displaying error on an Applet
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2015