java - web.xml configuration Display tag -


how can configure display tag in jsp project?

warning: standardwrappervalve[jsp]: pwc1406: servlet.service() servlet jsp threw exception java.lang.noclassdeffounderror: org/apache/commons/lang/unhandledexception 

for display tag there not required configuration in web.xml

display tag used pagination sorting in grid data

there put more 3 jar (1)displaytag-1.2,(2)displaytag-export-poi-1.2,(3)displaytag-portlet-1.2

and write tag lib in jsp page like:

   <%@ taglib uri="http://displaytag.sf.net" prefix="display"%>     

your code griding:

        <display:table name="sessionscope.yourlistname" pagesize="5" sort="list" cellspacing="10" cellpadding="5">              <display:column property="var1" title="title1" sortable="true" />               <display:column property="var2" title="title2" sortable="true" />               <display:column property="var3" title="title3" sortable="true"  />            </display:table>  

for more understanding follow link

http://viralpatel.net/blogs/struts-displaytag-tutorial-sort-pagination-data-displaytag-struts/


Comments

Popular posts from this blog

ruby - Trying to change last to "x"s to 23 -

jquery - Clone last and append item to closest class -

c - Unrecognised emulation mode: elf_i386 on MinGW32 -