• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Devaka Cooray
  • Liutauras Vilda
  • Jeanne Boyarsky
  • Bear Bibeault
Sheriffs:
  • Paul Clapham
  • Knute Snortum
  • Rob Spoor
Saloon Keepers:
  • Tim Moores
  • Ron McLeod
  • Piet Souris
  • Stephan van Hulst
  • Carey Brown
Bartenders:
  • Tim Holloway
  • Frits Walraven
  • Ganesh Patekar

Why use the Struts form tag?

 
Greenhorn
Posts: 12
Firefox Browser Tomcat Server Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Can you please explain what is need of using jsp form tag if we have html tag or what is the advantages of JSP Form tag .

Thanks & Regards,
Mudiraj Niklesh
 
Marshal
Posts: 67275
170
Mac Mac OS X IntelliJ IDE jQuery Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
There isn't a JSP form tag.

Are you perhaps confusing JSP with Struts or another framework?
 
Niklesh Mudiraj
Greenhorn
Posts: 12
Firefox Browser Tomcat Server Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

Thanks Bear Bibeault i get confuse can you please explain what is need of struts form tag and what is JSTL.
 
Bear Bibeault
Marshal
Posts: 67275
170
Mac Mac OS X IntelliJ IDE jQuery Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Please ask only one question per topic. JSTL is the JSP Standard Tag Library. Google for more information.

I'll move this topic, along with changing its subject, to the Struts forum for a discussion of its form tag.
 
Bartender
Posts: 1845
10
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
If you're using struts, then you should use the struts form tag because it make your job of writing struts pages easier.

At the end of the day it still generates an html <form> tag - but it can handle extra information related to struts.
eg what action to invoke when submitting the form - you can use


instead of


You remove from your markup
- your context web app name
- the .do extension used for struts

The form tag also acts as a container/owner for various variables that struts can use to construct your form
- the related bean/ActionForm the backs the current page (so it can populate values into the form)

Bottom line.
If you are using struts, why wouldn't you take advantage of the <html:form> tag to do some of the heavy lifting for you?

 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!