|
|
|
isaac
|
Hello All,
I am testing the appfuse light demo(userlist) application that uses displaytag 1.1 in weblogic 9.2 and the export doesn't work correctly. It exports the whole page to excel not the table records. It works fine in Tomcat. Any one has seen this issue before? [code] <%@ include file="/taglibs.jsp"%> <title><fmt:message key="userList.title"/></title> <button onclick="location.href='userform.html'"style="float: right; margin-top: -30px; width: 100px">Add User</button> <display:table name="users" class="table" requestURI="" id="userList" export="true" pagesize="4"> <display:setProperty name="export.pdf.filename" value="users.pdf"/> <display:column property="id" sortable="true" href="userform.html" media="html" paramId="id" paramProperty="id" titleKey="user.id"/> <display:column property="id" media="csv excel xml pdf" titleKey="user.id"/> <display:column property="firstName" sortable="true" titleKey="user.firstName"/> <display:column property="lastName" sortable="true" titleKey="user.lastName"/> <display:column titleKey="user.birthday" sortable="true" sortProperty="birthday"> <fmt:formatDate value="${userList.birthday}" pattern="${datePattern}"/> </display:column> </display:table> <script type="text/javascript">highlightTableRows("userList");</script> [/code] Thanks |
||||||||||||||||
|
mraible
|
Do you have a ResponseOverrideFilter defined in your web.xml?
http://displaytag.sourceforge.net/11/export_filter.html Matt On Dec 14, 2007, at 7:41 AM, isaac wrote: > > Hello All, > I am testing the appfuse light demo(userlist) application that uses > displaytag 1.1 in weblogic 9.2 and the export doesn't work > correctly. It > exports the whole page to excel not the table records. > It works fine in Tomcat. Any one has seen this issue before? > [code] > <%@ include file="/taglibs.jsp"%> > > <title><fmt:message key="userList.title"/></title> > > <button onclick="location.href='userform.html'"style="float: right; > margin-top: -30px; width: 100px">Add User</button> > > <display:table name="users" class="table" requestURI="" id="userList" > export="true" pagesize="4"> > <display:setProperty name="export.pdf.filename" > value="users.pdf"/> > <display:column property="id" sortable="true" href="userform.html" > media="html" > paramId="id" paramProperty="id" titleKey="user.id"/> > <display:column property="id" media="csv excel xml pdf" > titleKey="user.id"/> > <display:column property="firstName" sortable="true" > titleKey="user.firstName"/> > <display:column property="lastName" sortable="true" > titleKey="user.lastName"/> > <display:column titleKey="user.birthday" sortable="true" > sortProperty="birthday"> > <fmt:formatDate value="${userList.birthday}" > pattern="${datePattern}"/> > </display:column> > </display:table> > > <script type="text/javascript">highlightTableRows("userList");</ > script> > [/code] > Thanks > -- > View this message in context: http://www.nabble.com/export-doesn% > 27t-work-in-weblogic-9.2-tp14337051s2369p14337051.html > Sent from the Equinox Users mailing list archive at Nabble.com. > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [hidden email] > For additional commands, e-mail: [hidden email] > --------------------------------------------------------------------- To unsubscribe, e-mail: [hidden email] For additional commands, e-mail: [hidden email] |
||||||||||||||||
|
isaac
|
Thanks Matt for the reply. Yes I have ResponseOverrideFilter defined in web.xml
contents of web.xml [code] <?xml version="1.0" encoding="UTF-8"?> <web-app xmlns="http://java.sun.com/xml/ns/j2ee" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd" version="2.4"> <display-name>AppFuse Light</display-name> <!-- [INSERT FRAGMENT HERE] --> <!-- Define the basename for a resource bundle for I18N --> <context-param> <param-name>javax.servlet.jsp.jstl.fmt.localizationContext</param-name> <param-value>messages</param-value> </context-param> <filter> <filter-name>exportFilter</filter-name> <filter-class>org.displaytag.filter.ResponseOverrideFilter</filter-class> </filter> <filter> <filter-name>encodingFilter</filter-name> <filter-class>org.springframework.web.filter.CharacterEncodingFilter</filter-class> <init-param> <param-name>encoding</param-name> <param-value>UTF-8</param-value> </init-param> <init-param> <param-name>forceEncoding</param-name> <param-value>true</param-value> </init-param> </filter> <filter> <filter-name>messageFilter</filter-name> <filter-class>org.appfuse.web.MessageFilter</filter-class> </filter> <filter> <filter-name>securityFilter</filter-name> <filter-class>org.acegisecurity.util.FilterToBeanProxy</filter-class> <init-param> <param-name>targetClass</param-name> <param-value>org.acegisecurity.util.FilterChainProxy</param-value> </init-param> </filter> <filter> <filter-name>sitemesh</filter-name> <filter-class>com.opensymphony.module.sitemesh.filter.PageFilter</filter-class> </filter> <context-param> <param-name>contextConfigLocation</param-name> <param-value>/WEB-INF/applicationContext*.xml,/WEB-INF/security.xml</param-value> </context-param> <filter-mapping> <filter-name>encodingFilter</filter-name> <url-pattern>/*</url-pattern> </filter-mapping> <filter-mapping> <filter-name>messageFilter</filter-name> <url-pattern>/*</url-pattern> <dispatcher>REQUEST</dispatcher> <dispatcher>FORWARD</dispatcher> </filter-mapping> <filter-mapping> <filter-name>securityFilter</filter-name> <url-pattern>/*</url-pattern> </filter-mapping> <filter-mapping> <filter-name>sitemesh</filter-name> <url-pattern>/*</url-pattern> <dispatcher>REQUEST</dispatcher> <dispatcher>FORWARD</dispatcher> </filter-mapping> <filter-mapping> <filter-name>exportFilter</filter-name> <url-pattern>*.html</url-pattern> </filter-mapping> <listener> <listener-class>org.springframework.web.context.ContextLoaderListener</listener-class> </listener> <servlet> <servlet-name>action</servlet-name> <servlet-class>org.springframework.web.servlet.DispatcherServlet</servlet-class> <load-on-startup>1</load-on-startup> </servlet> <servlet> <servlet-name>dwr-invoker</servlet-name> <servlet-class>org.directwebremoting.servlet.DwrServlet</servlet-class> <init-param> <param-name>debug</param-name> <param-value>true</param-value> </init-param> </servlet> <servlet-mapping> <servlet-name>action</servlet-name> <url-pattern>*.html</url-pattern> </servlet-mapping> <servlet-mapping> <servlet-name>dwr-invoker</servlet-name> <url-pattern>/dwr/*</url-pattern> </servlet-mapping> <welcome-file-list> <welcome-file>index.jsp</welcome-file> </welcome-file-list> <error-page> <error-code>403</error-code> <location>/403.jsp</location> </error-page> <error-page> <error-code>404</error-code> <location>/404.jsp</location> </error-page> <error-page> <error-code>500</error-code> <location>/error.jsp</location> </error-page> </web-app> [/code] >>
|
||||
|
isaac
|
Any other ideas? Does the demo work for you on weblogic 9.2? If any one has Weblogic 9.2 this can be easily replicated by deploying the demo userList appfuse light application.
If it doesn't work then I will have to rewrite the controller to implement the export functionality? Any help is greatly appreciated Thanks
|
||||||||||||||||
|
mraible
|
I don't know as I haven't tried Equinox or the Display Tag on Web
Logic in quite some time (probably a year or two). Last time I checked, they did work. Unfortunately, I don't have WebLogic on my Mac to test this out. Matt On 12/20/07, isaac <[hidden email]> wrote: > > Any other ideas? Does the demo work for you on weblogic 9.2? If any one has > Weblogic 9.2 this can be easily replicated by deploying the demo userList > appfuse light application. > > If it doesn't work then I will have to rewrite the controller to implement > the export functionality? > > Any help is greatly appreciated > > Thanks > > > > > isaac wrote: > > > > Thanks Matt for the reply. Yes I have ResponseOverrideFilter defined in > > web.xml > > contents of web.xml > > [code] > > <?xml version="1.0" encoding="UTF-8"?> > > <web-app xmlns="http://java.sun.com/xml/ns/j2ee" > > xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" > > xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee > > http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd" version="2.4"> > > > > <display-name>AppFuse Light</display-name> > > > > <!-- [INSERT FRAGMENT HERE] --> > > <!-- Define the basename for a resource bundle for I18N --> > > <context-param> > > > > <param-name>javax.servlet.jsp.jstl.fmt.localizationContext</param-name> > > <param-value>messages</param-value> > > </context-param> > > > > <filter> > > <filter-name>exportFilter</filter-name> > > > > <filter-class>org.displaytag.filter.ResponseOverrideFilter</filter-class> > > </filter> > > > > <filter> > > <filter-name>encodingFilter</filter-name> > > > > <filter-class>org.springframework.web.filter.CharacterEncodingFilter</filter-class> > > <init-param> > > <param-name>encoding</param-name> > > <param-value>UTF-8</param-value> > > </init-param> > > <init-param> > > <param-name>forceEncoding</param-name> > > <param-value>true</param-value> > > </init-param> > > </filter> > > > > <filter> > > <filter-name>messageFilter</filter-name> > > <filter-class>org.appfuse.web.MessageFilter</filter-class> > > </filter> > > > > <filter> > > <filter-name>securityFilter</filter-name> > > > > <filter-class>org.acegisecurity.util.FilterToBeanProxy</filter-class> > > <init-param> > > <param-name>targetClass</param-name> > > > > <param-value>org.acegisecurity.util.FilterChainProxy</param-value> > > </init-param> > > </filter> > > > > <filter> > > <filter-name>sitemesh</filter-name> > > > > <filter-class>com.opensymphony.module.sitemesh.filter.PageFilter</filter-class> > > </filter> > > > > <context-param> > > <param-name>contextConfigLocation</param-name> > > > > <param-value>/WEB-INF/applicationContext*.xml,/WEB-INF/security.xml</param-value> > > </context-param> > > > > <filter-mapping> > > <filter-name>encodingFilter</filter-name> > > <url-pattern>/*</url-pattern> > > </filter-mapping> > > > > <filter-mapping> > > <filter-name>messageFilter</filter-name> > > <url-pattern>/*</url-pattern> > > <dispatcher>REQUEST</dispatcher> > > <dispatcher>FORWARD</dispatcher> > > </filter-mapping> > > > > <filter-mapping> > > <filter-name>securityFilter</filter-name> > > <url-pattern>/*</url-pattern> > > </filter-mapping> > > > > <filter-mapping> > > <filter-name>sitemesh</filter-name> > > <url-pattern>/*</url-pattern> > > <dispatcher>REQUEST</dispatcher> > > <dispatcher>FORWARD</dispatcher> > > </filter-mapping> > > > > <filter-mapping> > > <filter-name>exportFilter</filter-name> > > <url-pattern>*.html</url-pattern> > > </filter-mapping> > > > > <listener> > > > > <listener-class>org.springframework.web.context.ContextLoaderListener</listener-class> > > </listener> > > > > <servlet> > > <servlet-name>action</servlet-name> > > > > <servlet-class>org.springframework.web.servlet.DispatcherServlet</servlet-class> > > <load-on-startup>1</load-on-startup> > > </servlet> > > > > <servlet> > > <servlet-name>dwr-invoker</servlet-name> > > > > <servlet-class>org.directwebremoting.servlet.DwrServlet</servlet-class> > > <init-param> > > <param-name>debug</param-name> > > <param-value>true</param-value> > > </init-param> > > </servlet> > > > > <servlet-mapping> > > <servlet-name>action</servlet-name> > > <url-pattern>*.html</url-pattern> > > </servlet-mapping> > > > > <servlet-mapping> > > <servlet-name>dwr-invoker</servlet-name> > > <url-pattern>/dwr/*</url-pattern> > > </servlet-mapping> > > > > <welcome-file-list> > > <welcome-file>index.jsp</welcome-file> > > </welcome-file-list> > > > > <error-page> > > <error-code>403</error-code> > > <location>/403.jsp</location> > > </error-page> > > > > <error-page> > > <error-code>404</error-code> > > <location>/404.jsp</location> > > </error-page> > > > > <error-page> > > <error-code>500</error-code> > > <location>/error.jsp</location> > > </error-page> > > > > </web-app> > > [/code] > > > >>> > > > > mraible wrote: > >> > >> Do you have a ResponseOverrideFilter defined in your web.xml? > >> > >> http://displaytag.sourceforge.net/11/export_filter.html > >> > >> Matt > >> > >> On Dec 14, 2007, at 7:41 AM, isaac wrote: > >> > >>> > >>> Hello All, > >>> I am testing the appfuse light demo(userlist) application that uses > >>> displaytag 1.1 in weblogic 9.2 and the export doesn't work > >>> correctly. It > >>> exports the whole page to excel not the table records. > >>> It works fine in Tomcat. Any one has seen this issue before? > >>> [code] > >>> <%@ include file="/taglibs.jsp"%> > >>> > >>> <title><fmt:message key="userList.title"/></title> > >>> > >>> <button onclick="location.href='userform.html'"style="float: right; > >>> margin-top: -30px; width: 100px">Add User</button> > >>> > >>> <display:table name="users" class="table" requestURI="" id="userList" > >>> export="true" pagesize="4"> > >>> <display:setProperty name="export.pdf.filename" > >>> value="users.pdf"/> > >>> <display:column property="id" sortable="true" href="userform.html" > >>> media="html" > >>> paramId="id" paramProperty="id" titleKey="user.id"/> > >>> <display:column property="id" media="csv excel xml pdf" > >>> titleKey="user.id"/> > >>> <display:column property="firstName" sortable="true" > >>> titleKey="user.firstName"/> > >>> <display:column property="lastName" sortable="true" > >>> titleKey="user.lastName"/> > >>> <display:column titleKey="user.birthday" sortable="true" > >>> sortProperty="birthday"> > >>> <fmt:formatDate value="${userList.birthday}" > >>> pattern="${datePattern}"/> > >>> </display:column> > >>> </display:table> > >>> > >>> <script type="text/javascript">highlightTableRows("userList");</ > >>> script> > >>> [/code] > >>> Thanks > >>> -- > >>> View this message in context: http://www.nabble.com/export-doesn% > >>> 27t-work-in-weblogic-9.2-tp14337051s2369p14337051.html > >>> Sent from the Equinox Users mailing list archive at Nabble.com. > >>> > >>> --------------------------------------------------------------------- > >>> To unsubscribe, e-mail: [hidden email] > >>> For additional commands, e-mail: [hidden email] > >>> > >> > >> --------------------------------------------------------------------- > >> To unsubscribe, e-mail: [hidden email] > >> For additional commands, e-mail: [hidden email] > >> > >> > >> > > > > > > -- > View this message in context: http://www.nabble.com/export-doesn%27t-work-in-weblogic-9.2-tp14337051s2369p14435873.html > Sent from the Equinox Users mailing list archive at Nabble.com. > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [hidden email] > For additional commands, e-mail: [hidden email] > > --------------------------------------------------------------------- To unsubscribe, e-mail: [hidden email] For additional commands, e-mail: [hidden email] |
||||||||||||||||
|
isaac
|
Just want to update the post. The problem was resolved by moving the sitemesh filter to the last in line in web.xml file.
thanks for your help -Isaac
|
||||||||||||||||
| Free Embeddable Forum Powered by Nabble | Help |