how to use display tag in spring bean

View: New views
7 Messages — Rating Filter:   Alert me  

how to use display tag in spring bean

by Ishara Gunathilake :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

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_005fcolumn_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:374)
    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(ApplicationFilterChain.java:290)
    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
    at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:630)
    at org.apache.catalina.core.ApplicationDispatcher.doInclude(ApplicationDispatcher.java:535)
    at org.apache.catalina.core.ApplicationDispatcher.include(ApplicationDispatcher.java:472)
    at com.liferay.portlet.PortletRequestDispatcherImpl.dispatch(PortletRequestDispatcherImpl.java:302)
    at com.liferay.portlet.PortletRequestDispatcherImpl.include(PortletRequestDispatcherImpl.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@...
https://lists.sourceforge.net/lists/listinfo/displaytag-user

Re: how to use display tag in spring bean

by Ferguson, Jason M TSgt 375 CSPTS/SCE :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

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:jaimgunathilake@...]
Sent: Wednesday, October 21, 2009 6:22 AM
To: displaytag-user@...
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@...
https://lists.sourceforge.net/lists/listinfo/displaytag-user

smime.p7s (6K) Download Attachment

Re: how to use display tag in spring bean

by Ishara Gunathilake :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

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.ferguson@...>
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:jaimgunathilake@...]
Sent: Wednesday, October 21, 2009 6:22 AM
To: displaytag-user@...
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@...
https://lists.sourceforge.net/lists/listinfo/displaytag-user



------------------------------------------------------------------------------
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@...
https://lists.sourceforge.net/lists/listinfo/displaytag-user

Re: how to use display tag in spring bean

by Ferguson, Jason M TSgt 375 CSPTS/SCE :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

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:jaimgunathilake@...]
Sent: Wednesday, October 21, 2009 10:08 PM
To: displaytag-user@...
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.ferguson@...>


        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:jaimgunathilake@...]
        Sent: Wednesday, October 21, 2009 6:22 AM
        To: displaytag-user@...
        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@...
        https://lists.sourceforge.net/lists/listinfo/displaytag-user
       
       




------------------------------------------------------------------------------
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@...
https://lists.sourceforge.net/lists/listinfo/displaytag-user

smime.p7s (6K) Download Attachment

Re: how to use display tag in spring bean

by Ishara Gunathilake :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

hi

now i can display the list on jsp page using display tag. but when i click the next link
i got this error

org.apache.jasper.JasperException: java.lang.IllegalStateException: RenderResponse cannot be obtained in event phase
org.apache.jasper.servlet.JspServletWrapper.handleJspException(JspServletWrapper.java:522)
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:410)
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:337)
...

<display:table name="sessionScope.trainResult" pagesize="5" requestURI="/view/getRailwayScheduleAction">
<display:column property="name" />
<display:column property="arrival" />
<display:column property="departure" />
<display:column property="delay" />

</display:table>

why this error came,i cant figure out?


2009/10/22 Ferguson, Jason M TSgt USAF AMC 375 CSPTS/SCE <jason.ferguson@...>
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:jaimgunathilake@...]
Sent: Wednesday, October 21, 2009 10:08 PM
To: displaytag-user@...
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.ferguson@...>


       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:jaimgunathilake@...]
       Sent: Wednesday, October 21, 2009 6:22 AM
       To: displaytag-user@...
       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@...
       https://lists.sourceforge.net/lists/listinfo/displaytag-user





------------------------------------------------------------------------------
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@...
https://lists.sourceforge.net/lists/listinfo/displaytag-user



------------------------------------------------------------------------------
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@...
https://lists.sourceforge.net/lists/listinfo/displaytag-user

Re: how to use display tag in spring bean

by Ferguson, Jason M TSgt 375 CSPTS/SCE :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Okay, you didn't mention which build tool you are using, but I'm assuming
that you went out and obtained the spring-webmvc package.

The only suggestions I can make here:
- Check your directory permissions, especially if you are using tomcat in a
non-Windows environment.
- Ensure that the spring-mebmvc.jar you obtained is the same version as the
rest of the spring jars you have.
- Ensure there are no duplicate jars in your classes directory
- Check the version of Jasper you are using.

After that, I'm unsure how much further help I can be.

-----Original Message-----
From: Ishara Gunathilake [mailto:jaimgunathilake@...]
Sent: Friday, October 23, 2009 12:34 AM
To: displaytag-user@...
Subject: Re: [displaytag-user] how to use display tag in spring bean

hi

now i can display the list on jsp page using display tag. but when i click
the next link i got this error


org.apache.jasper.JasperException: java.lang.IllegalStateException:
RenderResponse cannot be obtained in event phase

       
org.apache.jasper.servlet.JspServletWrapper.handleJspException(JspServletWra
pper.java:522)
       
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:4
10)
       
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:337)

...

 <display:table name="sessionScope.trainResult" pagesize="5"
requestURI="/view/getRailwayScheduleAction">
    <display:column property="name" />
    <display:column property="arrival" />

    <display:column property="departure" />
    <display:column property="delay" />
   
  </display:table>

why this error came,i cant figure out?


2009/10/22 Ferguson, Jason M TSgt USAF AMC 375 CSPTS/SCE
<jason.ferguson@...>


        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:jaimgunathilake@...]
       
        Sent: Wednesday, October 21, 2009 10:08 PM
        To: displaytag-user@...
       
        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.ferguson@...>
       
       
               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:jaimgunathilake@...]
               Sent: Wednesday, October 21, 2009 6:22 AM
               To: displaytag-user@...
               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@...
               https://lists.sourceforge.net/lists/listinfo/displaytag-user
       
       
       
       
       

       
----------------------------------------------------------------------------
--
        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@...
        https://lists.sourceforge.net/lists/listinfo/displaytag-user
       
       




------------------------------------------------------------------------------
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@...
https://lists.sourceforge.net/lists/listinfo/displaytag-user

smime.p7s (6K) Download Attachment

Re: how to use display tag in spring bean

by Ishara Gunathilake :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

hi
thanks for ur help,i'm using liferay sdk plugin to build the
portlet.im new to this
still i cant figure out why i cant get the remaining list when i click
the next link on the display table

On 24/10/2009, Ferguson, Jason M TSgt USAF AMC 375 CSPTS/SCE
<jason.ferguson@...> wrote:

> Okay, you didn't mention which build tool you are using, but I'm assuming
> that you went out and obtained the spring-webmvc package.
>
> The only suggestions I can make here:
> - Check your directory permissions, especially if you are using tomcat in a
> non-Windows environment.
> - Ensure that the spring-mebmvc.jar you obtained is the same version as the
> rest of the spring jars you have.
> - Ensure there are no duplicate jars in your classes directory
> - Check the version of Jasper you are using.
>
> After that, I'm unsure how much further help I can be.
>
> -----Original Message-----
> From: Ishara Gunathilake [mailto:jaimgunathilake@...]
> Sent: Friday, October 23, 2009 12:34 AM
> To: displaytag-user@...
> Subject: Re: [displaytag-user] how to use display tag in spring bean
>
> hi
>
> now i can display the list on jsp page using display tag. but when i click
> the next link i got this error
>
>
> org.apache.jasper.JasperException: java.lang.IllegalStateException:
> RenderResponse cannot be obtained in event phase
>
>
> org.apache.jasper.servlet.JspServletWrapper.handleJspException(JspServletWra
> pper.java:522)
>
> org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:4
> 10)
>
> org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:337)
>
> ...
>
>  <display:table name="sessionScope.trainResult" pagesize="5"
> requestURI="/view/getRailwayScheduleAction">
>     <display:column property="name" />
>     <display:column property="arrival" />
>
>     <display:column property="departure" />
>     <display:column property="delay" />
>
>   </display:table>
>
> why this error came,i cant figure out?
>
>
> 2009/10/22 Ferguson, Jason M TSgt USAF AMC 375 CSPTS/SCE
> <jason.ferguson@...>
>
>
> 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:jaimgunathilake@...]
>
> Sent: Wednesday, October 21, 2009 10:08 PM
> To: displaytag-user@...
>
> 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.ferguson@...>
>
>
>       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:jaimgunathilake@...]
>       Sent: Wednesday, October 21, 2009 6:22 AM
>       To: displaytag-user@...
>       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@...
>       https://lists.sourceforge.net/lists/listinfo/displaytag-user
>
>
>
>
>
>
>
> ----------------------------------------------------------------------------
> --
> 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@...
> https://lists.sourceforge.net/lists/listinfo/displaytag-user
>
>
>
>
>

------------------------------------------------------------------------------
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@...
https://lists.sourceforge.net/lists/listinfo/displaytag-user