Professional Documents
Culture Documents
Struts HTML Tags Struts Provides HTML Tag Library For Easy
Struts HTML Tags Struts Provides HTML Tag Library For Easy
Struts HTML Tags Struts Provides HTML Tag Library For Easy
Struts provides HTML tag library for easy creation of user interfaces. In this
lesson I will show you what all Struts HTML Tags are available to the JSP for the
development of user interfaces.
To use the Struts HTML Tags we have to include the following line in our JSP file:
<%@ taglib uri="/tags/struts-html" prefix="html" %>
above code makes available the tag to the jsp.
<html:base/> Tag generates the base tag. <BASE ...> tells the browser to
pretend that the current page is located at some URL other than where the browser
found it. Any relative reference will be calculated from the URL given by <BASE
HREF="..."> instead of the actual URL. <BASE ...> goes in the <HEAD> section.
<html:html> Tag renders an HTML <html> Element.
In the Address.jsp we have used some of the above tags. In the future sections I
will show you more examples of the Struts HTML tags