RE: generating tables in Struts

2004-01-24 Thread Mohan Radhakrishnan
Unintentional Wrong subject again. 

Mohan

-Original Message-
From: Mohan Radhakrishnan [mailto:[EMAIL PROTECTED]
Sent: Saturday, January 24, 2004 12:23 PM
To: 'Struts Users Mailing List'
Subject: RE: generating tables in Struts 


Hi
Is there any way to find out what action is current by overriding methods
like 'processForwardConfig' etc. and call a method in that action. I am
using Tiles. So my custom processor extends the Tile processor.

The business case for this is not worth explaining because I am doing this
to avoid changing
code written by somebody.

Mohan


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: generating tables in Struts

2004-01-24 Thread lixin chu
have just tried Beta 2. the export feature is fixed
when the addition to the web.xml is added. 

I think even if sorting with a checkbox column is not
common but exporting a table with the additional
checkbox information is something not wanted.

Is there a fix ?


--- Matt Raible [EMAIL PROTECTED] wrote:
 The export/tiles issue has been fixed - you just
 needd to specify a
 filter in your web.xml.  
 
 http://displaytag.sourceforge.net/install.html
 
 If you need to export data from an included JSP
 page, such as from
 Struts, you should configure the
 ResponseOverrideFilter in your web.xml.
 (You do not need the filter if you do not use
 exports, or if you do not
 use the table tag from a jsp page that is included
 inside of another
 page.) Configure the Filter in your web.xml:
 
  filter
   filter-nameResponseOverrideFilter/filter-name
  

filter-classorg.displaytag.filter.ResponseOverrideFilter/filter-class
 
   /filter
   
 
 And add mappings for the pages that you will
 intercept, for example:
 
   filter-mapping
   filter-nameResponseOverrideFilter/filter-name
   url-pattern*.do/url-pattern
   /filter-mapping
   filter-mapping
   filter-nameResponseOverrideFilter/filter-name
   url-pattern*.jsp/url-pattern
   /filter-mapping
   
 It's been broken in CVS for the past couple of
 weeks, but I just fixed
 it today.  You'll have to download and built it to
 get the latest fixes.
 
 For #2, you could use JavaScript to grab the table
 and add links to the
 column titles that submit your form.  I've done this
 and it works fairly
 well - although in the end I decided the table
 didn't need any sorting.
 
 HTH,
 
 Matt
 
  -Original Message-
  From: lixin chu [mailto:[EMAIL PROTECTED] 
  Sent: Friday, January 23, 2004 6:43 PM
  To: [EMAIL PROTECTED]
  Subject: generating tables in Struts 
  
  
  Hi,
  I found the Display Tag which is really nice.
 However,
  it has a couple of problems:
  
  1. 'export' display data in the Tile not exporting
 to
  a file - w/o Tiles it is fine.
  
  2. I need a column of Checkbox, but the status is
 not
  kept after sorting.
  
  Does anyone know if there is another package
 handling
  the table in struts+Tiles with similar
 functionalities
  but supporting checkbox ?
  
  thanks
  li xin
  
  __
  Do you Yahoo!?
  Yahoo! SiteBuilder - Free web site building tool.
 Try it! 
 http://webhosting.yahoo.com/ps/sb/
 

-
 To unsubscribe, e-mail:
 [EMAIL PROTECTED]
 For additional commands, e-mail:
 [EMAIL PROTECTED]
 
 

-
 To unsubscribe, e-mail:
 [EMAIL PROTECTED]
 For additional commands, e-mail:
 [EMAIL PROTECTED]
 


__
Do you Yahoo!?
Yahoo! SiteBuilder - Free web site building tool. Try it!
http://webhosting.yahoo.com/ps/sb/

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: generating tables in Struts

2004-01-23 Thread Matt Raible
The export/tiles issue has been fixed - you just needd to specify a
filter in your web.xml.  

http://displaytag.sourceforge.net/install.html

If you need to export data from an included JSP page, such as from
Struts, you should configure the ResponseOverrideFilter in your web.xml.
(You do not need the filter if you do not use exports, or if you do not
use the table tag from a jsp page that is included inside of another
page.) Configure the Filter in your web.xml:

 filter
  filter-nameResponseOverrideFilter/filter-name
 
filter-classorg.displaytag.filter.ResponseOverrideFilter/filter-class

  /filter
  

And add mappings for the pages that you will intercept, for example:

  filter-mapping
  filter-nameResponseOverrideFilter/filter-name
  url-pattern*.do/url-pattern
  /filter-mapping
  filter-mapping
  filter-nameResponseOverrideFilter/filter-name
  url-pattern*.jsp/url-pattern
  /filter-mapping
  
It's been broken in CVS for the past couple of weeks, but I just fixed
it today.  You'll have to download and built it to get the latest fixes.

For #2, you could use JavaScript to grab the table and add links to the
column titles that submit your form.  I've done this and it works fairly
well - although in the end I decided the table didn't need any sorting.

HTH,

Matt

 -Original Message-
 From: lixin chu [mailto:[EMAIL PROTECTED] 
 Sent: Friday, January 23, 2004 6:43 PM
 To: [EMAIL PROTECTED]
 Subject: generating tables in Struts 
 
 
 Hi,
 I found the Display Tag which is really nice. However,
 it has a couple of problems:
 
 1. 'export' display data in the Tile not exporting to
 a file - w/o Tiles it is fine.
 
 2. I need a column of Checkbox, but the status is not
 kept after sorting.
 
 Does anyone know if there is another package handling
 the table in struts+Tiles with similar functionalities
 but supporting checkbox ?
 
 thanks
 li xin
 
 __
 Do you Yahoo!?
 Yahoo! SiteBuilder - Free web site building tool. Try it! 
http://webhosting.yahoo.com/ps/sb/

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: generating tables in Struts

2004-01-23 Thread lixin chu
Thanks. 

So the fix will be in Beta 3 am I right?

by the way, will that also fix exporting checkbox
column ?

(I am using display:control )

--- Matt Raible [EMAIL PROTECTED] wrote:
 The export/tiles issue has been fixed - you just
 needd to specify a
 filter in your web.xml.  
 
 http://displaytag.sourceforge.net/install.html
 
 If you need to export data from an included JSP
 page, such as from
 Struts, you should configure the
 ResponseOverrideFilter in your web.xml.
 (You do not need the filter if you do not use
 exports, or if you do not
 use the table tag from a jsp page that is included
 inside of another
 page.) Configure the Filter in your web.xml:
 
  filter
   filter-nameResponseOverrideFilter/filter-name
  

filter-classorg.displaytag.filter.ResponseOverrideFilter/filter-class
 
   /filter
   
 
 And add mappings for the pages that you will
 intercept, for example:
 
   filter-mapping
   filter-nameResponseOverrideFilter/filter-name
   url-pattern*.do/url-pattern
   /filter-mapping
   filter-mapping
   filter-nameResponseOverrideFilter/filter-name
   url-pattern*.jsp/url-pattern
   /filter-mapping
   
 It's been broken in CVS for the past couple of
 weeks, but I just fixed
 it today.  You'll have to download and built it to
 get the latest fixes.
 
 For #2, you could use JavaScript to grab the table
 and add links to the
 column titles that submit your form.  I've done this
 and it works fairly
 well - although in the end I decided the table
 didn't need any sorting.
 
 HTH,
 
 Matt
 
  -Original Message-
  From: lixin chu [mailto:[EMAIL PROTECTED] 
  Sent: Friday, January 23, 2004 6:43 PM
  To: [EMAIL PROTECTED]
  Subject: generating tables in Struts 
  
  
  Hi,
  I found the Display Tag which is really nice.
 However,
  it has a couple of problems:
  
  1. 'export' display data in the Tile not exporting
 to
  a file - w/o Tiles it is fine.
  
  2. I need a column of Checkbox, but the status is
 not
  kept after sorting.
  
  Does anyone know if there is another package
 handling
  the table in struts+Tiles with similar
 functionalities
  but supporting checkbox ?
  
  thanks
  li xin
  
  __
  Do you Yahoo!?
  Yahoo! SiteBuilder - Free web site building tool.
 Try it! 
 http://webhosting.yahoo.com/ps/sb/
 

-
 To unsubscribe, e-mail:
 [EMAIL PROTECTED]
 For additional commands, e-mail:
 [EMAIL PROTECTED]
 
 

-
 To unsubscribe, e-mail:
 [EMAIL PROTECTED]
 For additional commands, e-mail:
 [EMAIL PROTECTED]
 


__
Do you Yahoo!?
Yahoo! SiteBuilder - Free web site building tool. Try it!
http://webhosting.yahoo.com/ps/sb/

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: generating tables in Struts

2004-01-23 Thread Mohan Radhakrishnan
Hi
Is there any way to find out what action is current by overriding methods
like 'processForwardConfig' etc. and call a method in that action. I am
using Tiles. So my custom processor extends the Tile processor.

The business case for this is not worth explaining because I am doing this
to avoid changing
code written by somebody.

Mohan


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]