Win a copy of The Business Blockchain this week in the Cloud forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Advantage of Struts tag?

 
Bandita Patel
Greenhorn
Posts: 25
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
why to use Struts tags instead of simple JSP tags? like, using <html:text> instead of input type=.... whats the advantage of it? Please explain it.
 
David Newton
Author
Rancher
Posts: 12617
IntelliJ IDE Ruby
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Perhaps if you looked at the output they generate and the attributes they used you'd have more of an idea? I'd say the form binding and error messages are the big ones.

Please see the JavaRanch naming policy and change your display name to conform with this policy. Thanks!
 
Ankit Garg
Sheriff
Posts: 9577
33
Android Google Web Toolkit Hibernate IntelliJ IDE Java Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The values automatically get filled for you if there is a FormBean property matching the name of the form element (like if I have an FormBean property age and a html:text on the JSP page with the name age, then the value of age in FormBean will automatically be filled into the text field) and you automatically get error messages if validation fails...

[Okay, beaten by David]
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic