Win a copy of Murach's Python Programming this week in the Jython/Python forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Javascript Validation Taglibs  RSS feed

 
Gregg Bolinger
Ranch Hand
Posts: 15304
6
Chrome IntelliJ IDE Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
While looking through jakarta's taglibs, I noticed they have a Utility Taglib that has validation for forms by creating Javascript for you. However, it also says that this Taglib is deprecated.
Does anyone know if they have included this in the 1.1 JSTL specification or if they have abandonded it all together? If it is abandonded, does anyone know of another taglib for this purpose?
 
Pradeep bhatt
Ranch Hand
Posts: 8933
Firefox Browser Java Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Does anyone know if they have included this in the 1.1 JSTL specification or if they have abandonded it all together? If it is abandonded, does anyone know of another taglib for this purpose?

I dont know any JSTL tag which supports javascript. I think the apache validator tag supports js.
 
Lasse Koskela
author
Sheriff
Posts: 11962
5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Struts has a taglib for javascript validation. The ColdBeans suite also has a similar utility. I haven't used them so don't ask me whether they're any good.
 
Gregg Bolinger
Ranch Hand
Posts: 15304
6
Chrome IntelliJ IDE Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Is there any problem with JUST using the Taglibs from STRUTS and nothing else about STRUTS?
 
Sue Spielman
Author
Ranch Hand
Posts: 56
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
While you can use Struts without the Struts taglibs, using the Struts taglibs (for some of the actions) might require some coding on your part. The Struts framework is setup to take advantage (under the covers) of objects that might be created from the taglibs, so the information is pulled out in the framework. You'd probably need to look at the actions you're thinking of using and see if there are any further action needed on your part in your application. Some of them will probably work fine though.
Sue
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!