LookupDispatchAction qustion: how to name the method

2004-08-07 Thread lixin chu
Hi, Still strugling with the LookupDispatchAction. I got this error message: " javax.servlet.ServletException: Action[/admin/OrgAction] missing resource 'button.list' in key method map . " I suspect that there is something wrong with the string I used. Here is what I aming doing: 1. Applicati

Struts, checkbox and optionally displaytag

2004-08-07 Thread lixin chu
hi, guess many questions were raised on this but could not find detail enough sample code. i am looking for sample code demostrating the support of checkbox in Struts ActionForm, Action and JSP files. I am using displaytag (really good!) to generate the table with a column of checkboxes. how do i

Re: Lazy Dyna: Re: GOING GOING GONE DYNAMIC

2004-08-07 Thread Niall Pemberton
You need the commons beanutils 1.7.0 for lazy DynaBeans - its not in the 1.6.1 jar - you can get it here: http://jakarta.apache.org/site/binindex.cgi For the lazy ActionForm stuff you need the Struts nightly build, thats available here: http://cvs.apache.org/builds/jakarta-struts/nightly/

Lazy Dyna: Re: GOING GOING GONE DYNAMIC

2004-08-07 Thread Michael McGrady
At 05:54 AM 8/7/2004, you wrote: If you really want to do a dynamic form created on the fly - then do it the easy way (shameless plug), use lazy ActionForms :-) http://www.niallp.pwp.blueyonder.co.uk Niall When I download and build Struts 1.2.1 I get commons-beanutils-1.6.1.jar. However, this d

[Info] Use any kind of POJO JavaBean as an ActionForm

2004-08-07 Thread Niall Pemberton
In the Struts Nightly build (since beginning of August) it is now possible to plug any kind of POJO Bean (with a default "empty" constructor) straight into Struts as an ActionForm. Simply specify the Bean class in the struts-config.xml in the normal way: Struts will now "wrap" the bean in a Bean

[Info] Use any kind of DynaBean as an ActionForm

2004-08-07 Thread Niall Pemberton
In the Struts Nightly build (since beginning of August) it is now possible to plug any kind of DynaBean (with a default "empty" constructor) straight into Struts as an ActionForm. Simply specify the DynaBean class in the struts-config.xml in the normal way: Struts will now "wrap" the DynaBean in

[Info] FormBeanConfig is now the "Factory" for ActionForm

2004-08-07 Thread Niall Pemberton
Since Struts 1.2.1 the FormBeanConfig has now become the factory for ActionForms. Although a relatively minor change in makes plugging in custom ActionForm creation behaviour very straight forward: * Extend FormBeanConfig and override the createActionForm() method: public class MyFormBeanConf

Re: very dynamic forms

2004-08-07 Thread Bryan Hunt
The copy I got back turned out ok. Perhaps your mail admin is using something like the anomy sanitizer and it is stripping it out. I sent the message in plain text format and when I examined the message source it was ok and all the tags were in it. I don't think anyone was very interested in th

Re: GOING GOING GONE DYNAMIC

2004-08-07 Thread Michael McGrady
At 06:00 AM 8/7/2004, you wrote: This is a red herring - yes you're right about it being passed into the execute method - but since the reference isn't passed anywhere else after that in the RequestProcessor then it doesn't matter what you do Perhaps, though, Niall, you might want to do something

Re: GOING GOING GONE DYNAMIC

2004-08-07 Thread Michael McGrady
At 05:54 AM 8/7/2004, you wrote: especially all the chatter about passing form references We're probably just lame, Niall, but the idea is to try something innovative on the fly. What is being discussed is a way to dispense, essentially, with the action-mapping and form-beans XML. Maybe this m

Re: GOING GOING GONE DYNAMIC

2004-08-07 Thread Niall Pemberton
Jim, This is a red herring - yes you're right about it being passed into the execute method - but since the reference isn't passed anywhere else after that in the RequestProcessor then it doesn't matter what you do - all you have to do is store the ActionForm under the appropriate attribute in the

Re: GOING GOING GONE DYNAMIC

2004-08-07 Thread Niall Pemberton
I don't really get this thread at all, especially all the chatter about passing form references. Seems to me that you either override the RequestProcessor's processActionForm() method and plug in your form factory there, since it returns the ActionForm then there is no issue about references. Its

Re: detecting session timeout

2004-08-07 Thread Kurt Overberg
I use an HttpSessionAttributeListenen to get a callback when a session times out. There's a method called "attributeRemoved", which gets called when something is removed from someones session. I look for a standard value (username) that should never get removed from the users session (until it