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 :


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: