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

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