RE: Theoretical debate

2004-06-19 Thread Mike Duffy
Thanks for a very interesting thread. An elucidation of many of the topics in this thread can be found in Ted Husted's book, Struts in Action; especially see chapter 5, Coping with Action Forms. It is very tempting when you first come to Struts to do a great deal of processing in the Action

Re: bean defines

2004-06-19 Thread Chris Cranford
Is anyone familiar with this that can help? - Original Message - From: Chris Cranford [EMAIL PROTECTED] To: Struts Users Mailing List [EMAIL PROTECTED] Sent: Friday, June 18, 2004 3:47 PM Subject: Re: bean defines And it may be important that I point out if I use: bean:write

Re: How To Get the 'initial' in the form-property?

2004-06-19 Thread Bill Siggelkow
Hmm .. in your Action's execute method you should be able to do: DynaValidatorForm myForm = (DynaValidatorForm) form; String sort = myForm.get(sort); String order = myForm.get(order); This will get the current values on the form -- if the form was just created than these will be the initial

Re: bean defines

2004-06-19 Thread Bill Siggelkow
Chris, your running into the problem because when you use bean:define where the value is specified in the body of that tag, it create a new String scripting variable as well as a page-scoped attribute that is also a String. Instead, you want the actual form bean itself. I am not too sure about

Detecting browser close

2004-06-19 Thread ksitron
Is there a way to detect when the user closes the browser. What I want to do is do clean-up and destroy the session. Thanks in advance. -- - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL

[OT] JavaOne Struts User Gathering

2004-06-19 Thread Van Riper, Mike
Hi Everyone, Depending upon the interest level, I'm willing to organize a social gathering at a bar or restaurant in San Francisco during the upcoming JavaOne conference. It would either be around 8:30pm on Sunday, June 27th, after the Welcome Reception ends. Or it would be around 8:00PM on

Re: Detecting browser close

2004-06-19 Thread ksitron
Thanks for the reply. But, I find it hard to accept that it can't be done. And, users may not be computer savy or follow good etiquette and log off. Bill Siggelkow wrote: AFAIK this cannot be done -- your best bet is to provide a Logoff link and a reasonable session timeout. ksitron wrote: Is

Re: bean defines

2004-06-19 Thread Chris Cranford
Bill - The point of my discussion was the following premise: public class MyCheckboxForm extends ActionForm public class MyForm1 extends MyCheckboxForm public class MyForm2 extends MyCheckboxForm I want to be able to pass MyForm1 or MyForm2 to the same JSP and have it work because

Re: Detecting browser close

2004-06-19 Thread mike
There are ways, if you are so adamant about this that you want to use a lot of resources. Are you? At 04:53 PM 6/19/2004, Bill Siggelkow wrote: AFAIK this cannot be done -- your best bet is to provide a Logoff link and a reasonable session timeout. ksitron wrote: Is there a way to detect when

Re: Struts 1.0.2 Dynamic Forward

2004-06-19 Thread bmcgovern2004
Rick, Sorry if I the problem def I supplied wasn't complete enough. I was trying to avoid keyboard diarrhea. I'm sure that I'm making this more difficult than it need be. :-) I have a number of mappings. Each with its own unique action, form, and set of forwards comprising the jsp