If you are using Maven as your build tool (or Ivy, although I'm not familiar
with it), just add a dependency into the pom.xml file. Look up the correct
dependency on http://www.mvnrepository.com.

If you are NOT using an automated build tool, download the jar for
spring-webmvc package and put it into your classes directory for your
project.

Or do it the hard way: obtain the source for RequestContextUtils.java from
spring-webmvc and create your own class. However, I won't be able to provide
you tech support on that method. :)

You should not need to change the localeresolver or localeprovider.

-----Original Message-----
From: Ishara Gunathilake [mailto:jaimgunathil...@gmail.com] 
Sent: Wednesday, October 21, 2009 10:08 PM
To: displaytag-user@lists.sourceforge.net
Subject: Re: [displaytag-user] how to use display tag in spring bean

can you tell me how can i do it so, i used struts 2, spring and liferay
portlet to my project i want to do pagination.should i change the
localresolver and localeprovider in display.properties file.


2009/10/21 Ferguson, Jason M TSgt USAF AMC 375 CSPTS/SCE
<jason.fergu...@scott.af.mil>


        RequestContextUtils is in the spring-webmvc package (even if you are
using
        Struts or another MVC controller). Make sure that you have it and it
is on
        your classpath.
        

        -----Original Message-----
        From: Ishara Gunathilake [mailto:jaimgunathil...@gmail.com]
        Sent: Wednesday, October 21, 2009 6:22 AM
        To: displaytag-user@lists.sourceforge.net
        Subject: [displaytag-user] how to use display tag in spring bean
        
        hi
        iv got this error when im trying to use diplay tag
        
         java.lang.NoClassDefFoundError:
        org/springframework/web/servlet/support/RequestContextUtils
           at
        
org.displaytag.localization.I18nSpringAdapter.getResource(I18nSpringAdapter.
        java:59)
           at
org.displaytag.tags.ColumnTag.addHeaderToTable(ColumnTag.java:684)
           at org.displaytag.tags.ColumnTag.doEndTag(ColumnTag.java:622)
           at
        
org.apache.jsp.WEB_002dINF.jsp.view.results_jsp._jspx_meth_display_005fcolum
        n_005f0(results_jsp.java:657)
           at
        
org.apache.jsp.WEB_002dINF.jsp.view.results_jsp._jspx_meth_display_005ftable
        _005f0(results_jsp.java:613)
           at
        
org.apache.jsp.WEB_002dINF.jsp.view.results_jsp._jspx_meth_s_005fi18n_005f0(
        results_jsp.java:200)
           at
        
org.apache.jsp.WEB_002dINF.jsp.view.results_jsp._jspService(results_jsp.java
        :94)
           at
org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70)
           at javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
           at
        
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:3
        74)
           at
        
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:337)
           at
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:266)
           at javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
           at
        
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Application
        FilterChain.java:290)
           at
        
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterCh
        ain.java:206)
           at
        
org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.
        java:630)
           at
        
org.apache.catalina.core.ApplicationDispatcher.doInclude(ApplicationDispatch
        er.java:535)
           at
        
org.apache.catalina.core.ApplicationDispatcher.include(ApplicationDispatcher
        .java:472)
           at
        
com.liferay.portlet.PortletRequestDispatcherImpl.dispatch(PortletRequestDisp
        atcherImpl.java:302)
           at
        
com.liferay.portlet.PortletRequestDispatcherImpl.include(PortletRequestDispa
        tcherImpl.java:122)
        
        
        
        
        i change the display.properties file as below
        
        locale.provider=org.displaytag.localization.I18nSpringAdapter
        locale.resolver=RequestContextUtils.getLocale();
        
        please help me to solve this
        
        

        
----------------------------------------------------------------------------
--
        Come build with us! The BlackBerry(R) Developer Conference in SF, CA
        is the only developer event you need to attend this year. Jumpstart
your
        developing skills, take BlackBerry mobile applications to market and
stay
        ahead of the curve. Join us from November 9 - 12, 2009. Register
now!
        http://p.sf.net/sfu/devconference
        _______________________________________________
        displaytag-user mailing list
        displaytag-user@lists.sourceforge.net
        https://lists.sourceforge.net/lists/listinfo/displaytag-user
        
        


Attachment: smime.p7s
Description: S/MIME cryptographic signature

------------------------------------------------------------------------------
Come build with us! The BlackBerry(R) Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay 
ahead of the curve. Join us from November 9 - 12, 2009. Register now!
http://p.sf.net/sfu/devconference
_______________________________________________
displaytag-user mailing list
displaytag-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/displaytag-user

Reply via email to