A friendly place for programming greenhorns!
Big Moose Saloon
Search
|
Java FAQ
|
Recent Topics
Register / Login
JavaRanch
»
Java Forums
»
Frameworks
»
Struts
Author
Form validation: how can khow in jsp that my action validation failed?
Boris Romashov
Ranch Hand
Joined: Feb 23, 2009
Posts: 38
posted
Feb 27, 2009 10:29:59
0
I need output special info in
JSP
if validation failed. How can I do it? ActionSupport has method hasActionErrors. I need smth like that for JSP.
David Newton
Author
Rancher
Joined: Sep 29, 2008
Posts: 12617
I like...
posted
Feb 27, 2009 11:29:01
0
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:
http://ej-technologies/jprofiler
- if it wasn't for jprofiler, we would need to run our stuff on 16 servers instead of 3.
subject: Form validation: how can khow in jsp that my action validation failed?
Similar Threads
boolean need_ of_ vbscript_in_jsp()
Struts2: bypass the prepare method?
XSD validation
front-end validation in struts jsp page
Displaying error on an Applet
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter