View RSS Feed

My Java Tips

  1. Using Struts2 Tags

    by , 11-18-2011 at 05:59 PM (My Java Tips)
    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:
    Java Code:
    <%@ taglib uri="/tags/struts-html" prefix="html" %>
    above code makes available the tag to the jsp.

    Java Code:
    <html:message key="thekey"/>
    ...
    Categories
    Struts