aspose file tools*
The moose likes JSP and the fly likes How come JSTL doesn't  have a form tag library Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » JSP
Bookmark "How come JSTL doesn Watch "How come JSTL doesn New topic
Author

How come JSTL doesn't have a form tag library

Tarun Ramakrishna Elankath
Greenhorn

Joined: Mar 27, 2002
Posts: 27
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

Joined: Jul 26, 2001
Posts: 46
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.


Its not what you do, its the way you say you've done it.
Lasse Koskela
author
Sheriff

Joined: Jan 23, 2002
Posts: 11962
    
    5
What about JavaServer Faces? Should some JSF elements be used as replacements for the "missing" form processing taglib?


Author of Test Driven (2007) and Effective Unit Testing (2013) [Blog] [HowToAskQuestionsOnJavaRanch]
Tarun Ramakrishna Elankath
Greenhorn

Joined: Mar 27, 2002
Posts: 27
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

Joined: May 06, 2002
Posts: 160
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


Shawn Bayern<br />"JSTL in Action" <a href="http://www.jstlbook.com" target="_blank" rel="nofollow">http://www.jstlbook.com</a>
Lasse Koskela
author
Sheriff

Joined: Jan 23, 2002
Posts: 11962
    
    5
Shawn, could you briefly describe how JSF relates to JSTL, if at all?
Simon Brown
sharp shooter, and author
Ranch Hand

Joined: May 10, 2000
Posts: 1913
    
    6
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
 
Don't get me started about those stupid light bulbs.
 
subject: How come JSTL doesn't have a form tag library