Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsWhite Papers
Discussion GroupsFirst AidDatabasesJavaBeansGUIJava 3DVirtual MachineCORBASecurityToolsGeneral
Java DirectoryOpen Source ProjectsSample Book ChaptersUser GroupsWeb Resources
Related Topics
Databases.NETMore Topics ...

Java Forum / General / June 2005

Tip: Looking for answers? Try searching our database.

non-Struts JSP input validation framework?

Thread view: 
bb - 16 Jun 2005 15:29 GMT
I'm working on an old Java application that is being converted to JSP
with Hibernate. The conversion is taking place piece by piece and using
Struts or Spring is not an option. Can someone recommend an existing
set of classes that allows you validate user input on the server side,
display error messages on JSP pages, etc. - something that emulates
Struts in this regard but is more lightweight and not so invasive?
Wendy Smoak - 16 Jun 2005 16:08 GMT
> I'm working on an old Java application that is being converted to JSP
> with Hibernate. The conversion is taking place piece by piece and using
> Struts or Spring is not an option. Can someone recommend an existing
> set of classes that allows you validate user input on the server side,
> display error messages on JSP pages, etc. - something that emulates
> Struts in this regard but is more lightweight and not so invasive?

Struts doesn't do validation, it uses Jakarta Commons Validator behind the
scenes:
   http://jakarta.apache.org/commons/validator/

I've never tried to use it outside of Struts, but it's certainly possible.
Then displaying error messages could be nothing more than iterating over
some collection of errors with <c:forEach> and <c:out>.  (That's most of
what <html:errors> does, anyway, along with some bells and whistles for
styles and a header/footer.)

Signature

Wendy



Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.