This week's book giveaways are in the Java EE and JavaScript forums.
We're giving away four copies each of The Java EE 7 Tutorial Volume 1 or Volume 2(winners choice) and jQuery UI in Action and have the authors on-line!
See this thread and this one for details.
The moose likes Struts and the fly likes Advantage of Struts tag? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of The Java EE 7 Tutorial Volume 1 or Volume 2 this week in the Java EE forum
or jQuery UI in Action in the JavaScript forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "Advantage of Struts tag?" Watch "Advantage of Struts tag?" New topic

Advantage of Struts tag?

Bandita Patel

Joined: Mar 23, 2010
Posts: 25
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

Joined: Sep 29, 2008
Posts: 12617

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

Joined: Aug 03, 2008
Posts: 9293

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]

SCJP 6 | SCWCD 5 | Javaranch SCJP FAQ | SCWCD Links
Consider Paul's rocket mass heater.
subject: Advantage of Struts tag?