Win a copy of Mesos in Action this week in the Cloud/Virtualizaton forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Struts and Normal HTML Tags

 
Shiaber Shaam
Ranch Hand
Posts: 252
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi All,

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

Thanks
 
Sagar Rohankar
Ranch Hand
Posts: 2907
1
Java Spring Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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. ;)
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic