I have it working in one app... Here's the relevant portions of web.xml, hope
this helps
<filter>
<display-name>Stripes Filter</display-name>
<filter-name>StripesFilter</filter-name>
<filter-class>net.sourceforge.stripes.controller.StripesFilter</filter-class>
.....
</filter>
<filter-mapping>
<filter-name>StripesFilter</filter-name>
<servlet-name>StripesDispatcher</servlet-name>
<dispatcher>REQUEST</dispatcher>
</filter-mapping>
<filter>
<filter-name>ResponseOverrideFilter</filter-name>
<filter-class>org.displaytag.filter.ResponseOverrideFilter</filter-class>
</filter>
<filter-mapping>
<filter-name>ResponseOverrideFilter</filter-name>
<url-pattern>*.action</url-pattern>
</filter-mapping>
<servlet>
<servlet-name>StripesDispatcher</servlet-name>
<servlet-class>net.sourceforge.stripes.controller.DispatcherServlet</servlet-class>
<load-on-startup>1</load-on-startup>
</servlet>
<servlet-mapping>
<servlet-name>StripesDispatcher</servlet-name>
<url-pattern>*.action</url-pattern>
</servlet-mapping>
-----Original Message-----
From: Mike McNally [mailto:[email protected]]
Sent: Wednesday, July 15, 2009 3:18 PM
To: Stripes Users List
Subject: Re: [Stripes-users] Stripes plus displaytag export
The displaytag export links are generated with a little magic
parameter that tells the tag code that it's actually being asked to do
the export. In my app, my tables always load via AJAX anyway into a
JSP fragment that's pretty much nothing but the table code, so it just
works. If your table is normally (ie, when being rendered for the
browser in a page) surrounded by other stuff, then the displaytag code
can't really make the export happen (that is, it can't fiddle with the
HTTP response headers).
Have you tried (not necessarily as the ultimate solution) having your
Stripes action check for the magic "d-NNNN-e" parameter and, if there,
forward to a JSP fragment that's only got your displaytag code in it?
On Wed, Jul 15, 2009 at 1:48 PM, Erik Hinterbichler<[email protected]> wrote:
> Hi,
>
> I'm using Stripes with displaytag to display tables, as illustrated in
> the Pragmatic Programmers book. However, I'm having a problem when
> using the display tag export option. When I set export to "true", it
> displays the export links correctly, but when I click on them it just
> displays a blank page. I've tried setting up the Export filter as
> described here:
>
> http://displaytag.sourceforge.net/10/export_filter.html
>
> But that doesn't seem to make a difference. The link export link URL
> looks like this:
>
> myaction.action?6578706f7274=1&d-128466-e=1
>
> And I'm wondering if Stripes is somehow interfering with the
> exporting. Has anyone had any experience with displaytag and getting
> export to work with Stripes?
>
> Thanks,
> Erik
>
> ------------------------------------------------------------------------------
> Enter the BlackBerry Developer Challenge
> This is your chance to win up to $100,000 in prizes! For a limited time,
> vendors submitting new applications to BlackBerry App World(TM) will have
> the opportunity to enter the BlackBerry Developer Challenge. See full prize
> details at: http://p.sf.net/sfu/Challenge
> _______________________________________________
> Stripes-users mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/stripes-users
>
--
Turtle, turtle, on the ground,
Pink and shiny, turn around.
------------------------------------------------------------------------------
Enter the BlackBerry Developer Challenge
This is your chance to win up to $100,000 in prizes! For a limited time,
vendors submitting new applications to BlackBerry App World(TM) will have
the opportunity to enter the BlackBerry Developer Challenge. See full prize
details at: http://p.sf.net/sfu/Challenge
_______________________________________________
Stripes-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/stripes-users
------------------------------------------------------------------------------
Enter the BlackBerry Developer Challenge
This is your chance to win up to $100,000 in prizes! For a limited time,
vendors submitting new applications to BlackBerry App World(TM) will have
the opportunity to enter the BlackBerry Developer Challenge. See full prize
details at: http://p.sf.net/sfu/Challenge
_______________________________________________
Stripes-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/stripes-users