File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

How come JSTL doesn't have a form tag library

 
Tarun Ramakrishna Elankath
Greenhorn
Posts: 27
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I find it really suprising (I hope I am not wrong here) that the JSTL doesn't give any tag-library for handling forms.
Custom tags for forms are the _major_ importance and I don't see why this was omitted. Any web-application will need to deal with forms.
Can someone comment ?
Thanks,
Tarun
 
matt hooker
Ranch Hand
Posts: 46
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I think you're right. I have had a quick look over the spec and do not see any form specific entries in there. Of course, you could just scoot over to jakarta.apache.org and grab an implementation from their library.
 
Lasse Koskela
author
Sheriff
Posts: 11962
5
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
What about JavaServer Faces? Should some JSF elements be used as replacements for the "missing" form processing taglib?
 
Tarun Ramakrishna Elankath
Greenhorn
Posts: 27
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Originally posted by matt hooker:
I think you're right. I have had a quick look over the spec and do not see any form specific entries in there. Of course, you could just scoot over to jakarta.apache.org and grab an implementation from their library.

I know I could, but I really wish that Sun really had come out with a complete specification. Without form-handling, it somehow seems only quarter-baked.
At any rate, the tag-libs that are present in JSTL are pretty good and easier to use than their corresponding Struts counterparts.
 
Shawn Bayern
Author
Ranch Hand
Posts: 160
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
When designing JSTL, we wanted to avoid tying it to a particular presentation technology; JSTL is not specific to HTML, WML, etc. Had XForms been more widely understood and solidified, the expert group might have added support for it in some fashion, but the timing wasn't right for JSTL 1.0.
More generally, supporting HTML forms isn't really the job a general-purpose taglib; it's more a function of a particular framework (like Struts) that you might use to develop individual applications.
Shawn
 
Lasse Koskela
author
Sheriff
Posts: 11962
5
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Shawn, could you briefly describe how JSF relates to JSTL, if at all?
 
Simon Brown
sharp shooter, and author
Ranch Hand
Posts: 1913
6
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Just to add something to Shawn's comment, although Struts does provide a form taglib, try using it without Struts as the "behind the scenes" framework! ;-)
Simon
 
I agree. Here's the link: http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic