This week's book giveaway is in the OCAJP 8 forum.
We're giving away four copies of OCA Java SE 8 Programmer I Study Guide and have Edward Finegan & Robert Liguori on-line!
See this thread for details.
The moose likes Struts and the fly likes HTML tag in Struts Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of OCA Java SE 8 Programmer I Study Guide this week in the OCAJP 8 forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "HTML tag in Struts" Watch "HTML tag in Struts" New topic

HTML tag in Struts

Joe Harry
Ranch Hand

Joined: Sep 26, 2006
Posts: 9967


What is the use of saying <html:html xhtml="true"> ?? What effect does this have? Please help guys!

Thanks in advance.

SCJP 1.4, SCWCD 1.4 - Hints for you, Certified Scrum Master
Did a rm -R / to find out that I lost my entire Linux installation!
Gowher Naik
Ranch Hand

Joined: Feb 07, 2005
Posts: 643
Text from Apache site

Render HTML tags as XHTML

Using this tag in a page tells all other html taglib tags to render themselves as XHTML 1.0. This is useful when composing pages with JSP includes or Tiles. <html:html xhtml="true"> has a similar effect. This tag has no attributes; you use it like this: <html:xhtml/>.

Note: Included pages do not inherit the rendering style of the including page. Each JSP fragment or Tile must use this tag to render as XHTML.
I agree. Here's the link:
subject: HTML tag in Struts
jQuery in Action, 3rd edition