O'Reilly logo

Struts Kick Start by Kevin Bedell, James Turner

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Using Struts HTML Tags to Render Basic HTML Elements

This section provides information about the following tags:

  • <html:html>— Render an HTML <html> element

  • <html:base>— Render an HTML <base> element

  • <html:link>— Render an HTML Anchor tag <a> element

  • <html:rewrite>— Render only the URI portion of a <html:link> tag

  • <html:img>— Render an HTML <img> element

If you point your browser to the URL

http://myAppServer/StrutsTaglibs/html.jsp

you’ll bring up the main page linking to all the sample code for the Struts tag chapters. This section uses the HTML Basics page at /StrutsTaglibs/HtmlBasic.do. The rendered page is shown in Figure 12.2.

Figure 12.2. The HTML Basics page at /StrutsTaglibs/HtmlBasic.do.

As you can see from the figure, this page ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required