File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Struts and the fly likes Struts and Normal HTML Tags Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Meteor in Action this week in the JavaScript forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "Struts and Normal HTML Tags" Watch "Struts and Normal HTML Tags" New topic

Struts and Normal HTML Tags

Shiaber Shaam
Ranch Hand

Joined: Jun 16, 2006
Posts: 252
Hi All,

Is it restricted to use general HTML tags within <html:form> tags?


Sagar Rohankar
Ranch Hand

Joined: Feb 19, 2008
Posts: 2902

NO, you can mix up the tags, because, finally all struts tags rendered out as the plain HTML tags , but keeping the code consistency is required, either use complete Struts tag OR simple HTML at least for FORMS. Struts tag provides you some convenient attribute names, like saying <html:text property="age"/> sounds more close to the bean property "age" than simple <input type="text name="age"../>, though its not the rule. ;)

[LEARNING bLOG] | [Freelance Web Designer] | [and "Rohan" is part of my surname]
I agree. Here's the link:
subject: Struts and Normal HTML Tags