Reputation: 626
I was wondering if I could replace Struts tags with HTML, especially when I output data. The projects in my company are still using struts tags but it seems it's not so easy to use compared with HTML.
Upvotes: 2
Views: 229
Reputation: 160191
Of course you can, as long as you duplicate:
For example, all custom form tags do is:
Some tags don't emit any HTML of their own, for example, <s:iterator>
loops over a collection, pushes each object onto the value stack, and processes the tag body like any other JSP custom tag.
Should you reproduce existing framework logic and write either:
I doubt it, but there are likely valid usecases for doing so–I just can't think of them.
Upvotes: 1