Tuesday, December 22, 2009

Using struts 2 tags

In order to use the struts 2 tags in you .jspx files, you need to add the following lines to your source code at the beginning of your page.

For jspx files, add the following :


xmlns:c="http://java.sun.com/jsp/jstl/core"
xmlns:s="/struts-tags"
version="2.0">

For jsp pages, add the follwing :

<%@ taglib uri="/struts-tags" prefix="s" %>


This will help you to use the prefix 's' in order to use the struts tags in your .jspx and jsp pages.

No comments: