displaytag 简单使用流程

1. 首先导入包:displaytag-1.2.jar,commons-lang.jar和standard.jar;commons-beanutils.jar;这四个jar包

2. 然后在jsp页面做一个引用:<%@ taglib uri=”http://displaytag.sf.net/el” prefix=”display” %>

3. 接着我们定义一个list

1 <% 2List test = new ArrayList( 6 ); 3test.add( “Test String 1” ); 4test.add( “Test String 2” ); 5test.add( “Test String 3” ); 6test.add( “Test String 4” ); 7test.add( “Test String 5” ); 8test.add( “Test String 6” ); 9request.setAttribute( “test”, test ); 10 %>,所有的胜利,与征服自己的胜利比起来,都是微不足道

displaytag 简单使用流程

相关文章:

你感兴趣的文章:

标签云: