Search code examples
javajspjsp-tagsdisplaytag

web.xml configuration Display tag


How can I configure a display tag in jsp project?

WARNING: StandardWrapperValve[jsp]: PWC1406: Servlet.service() for servlet jsp threw exception
java.lang.NoClassDefFoundError: org/apache/commons/lang/UnhandledException

Solution

  • For display tag there is not required any configuration in web.xml

    display tag is used for pagination sorting in your grid data

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

    and write tag lib in your jsp page like:

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

    your code for 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/