Re: Where and when do struts call the method named toString()?

2002-03-18 Thread dderry
return a unique value so it's fine for determining if 2 objects are the same or not. --- dderry [EMAIL PROTECTED] wrote: Just so happens that I was curious about this myself the other day. I found this in the javadocs for Object.toString(): this method returns a string equal to the value

Re: Where and when do struts call the method named toString()?

2002-03-14 Thread dderry
Just so happens that I was curious about this myself the other day. I found this in the javadocs for Object.toString(): this method returns a string equal to the value of: getClass().getName() + '@' + Integer.toHexString(hashCode()) So it appears that you don't really get an object pointer

Re: JavaScript Form/submit Function

2002-03-11 Thread dderry
Use the 'property' attribute of the submit tag to change the name that is assigned to the submit button. This in my jsp: html:submit property=testsubmit value=Add/ generated this in the HTML: input type=submit name=testsubmit value=Add Dave D - Original Message - From: Guido Schmutz

Re: What's a good practice to reuse formBeans with validation

2002-03-08 Thread dderry
Even sadder that (at least here in the States) you'd BETTER be learning it on your own time. Because if you don't, you're liable to find yourself out in the street, and some H1-B visa holder sitting in your seat because he HAD the required skills. Why should they invest anything into training

Re: Forwarding to referer

2002-03-05 Thread dderry
Hi George, What I usually do in this case is to have a hidden field in my form that holds the source: html:hidden property=source value=somepage.jsp/ Then in the perform method I can: return new ActionForward( request.getParameter( source ) ); There are of course other ways to handle this

Re: OT: Struts MySQL Hosting

2002-03-01 Thread dderry
Not really a very good recommendation. Such a search could only turn up a list of hosting companies; with no information as to wheather they are a GOOD company, or just a bunch of opportunistic blood-sucking leaches. It is much more likely that subscribers to this list would be able to provide

Re: Form Bean problem

2002-02-25 Thread dderry
Do you have an Action Mapping for saveExtraPersonDetails.do? Does it use also use addExtraPersonDetailsForm? Do you have a form-beans form-bean name=addExtraPersonDetailsForm type=package.addExtraPersonDetailsForm/./form-beans entry in struts-config.xml? It appears to me that the

Re: Form Bean problem

2002-02-25 Thread dderry
D - Original Message - From: Tim Sawyer [EMAIL PROTECTED] Dderry [EMAIL PROTECTED] wrote : Do you have an Action Mapping for saveExtraPersonDetails.do? Yes: actionpath=/saveExtraPersonDetails type=com.pancredit.tkbespoke.tjs.strutstest.action.AddExtraPersonDetailsPos

Re: Request scope question again...

2002-02-24 Thread dderry
Yes. As I understand it, as long as the Action classes are performing forwards rather than redirects it will all be handled on the server side in the same request. It is only when a response is returned to the browser that the request will be ended. On the other hand, if a redirect is performed,

Re: RE:how to use an images for submit, cancel button etc

2002-02-22 Thread dderry
Read the error message carefully. Then look at the attribute values in your tag. Smack yourself on the forehead with the palm of your hand and say Dooohhh! - Original Message - From: KM [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Friday, February 22, 2002 2:46 PM Subject:

Re: Help needded on Struts-config file

2002-02-22 Thread dderry
Subhendu, I'm not one of the experts, but I do know one way in which 'input' is used by the controller. This specifies the page to which the user will be returned if the ActionForm fails validation. You can also us it in you Action class by returning new ActionForward( mapping.getInput() ) if

Re: Help needded on Struts-config file

2002-02-22 Thread dderry
No - Original Message - From: subhendukumar mohanty [EMAIL PROTECTED] To: Struts Users Mailing List [EMAIL PROTECTED] Sent: Friday, February 22, 2002 3:42 PM Subject: RE: Help needded on Struts-config file Is this element is mandatory in action mapping? -Original Message-

Re: Request scope question again...

2002-02-22 Thread dderry
Hey Theron, Let me take a shot at this for you. I don't claim to be an expert (except when applying for a job ;-) ), so hopefully an expert will correct any mis-information. Page scope is valid only for a single page. Typically this MAY be the same as request scope. However, if your Action

Re: Design question about ActionForm's validate method

2002-02-05 Thread dderry
What if your user then hits the Submit button without populating any of the form fields? - Original Message - From: Sid Stuart [EMAIL PROTECTED] To: Struts Users Mailing List [EMAIL PROTECTED] Sent: Tuesday, February 05, 2002 2:06 PM Subject: Re: Design question about ActionForm's

Re: Design question about ActionForm's validate method

2002-02-05 Thread dderry
. Sid dderry wrote: What if your user then hits the Submit button without populating any of the form fields? - Original Message - From: Sid Stuart [EMAIL PROTECTED] To: Struts Users Mailing List [EMAIL PROTECTED] Sent: Tuesday, February 05, 2002 2:06 PM Subject: Re: Design

Re: Are Vectors in a FormAction set to null after a user has submitted a form?

2002-02-01 Thread dderry
Hi Chuck, I use Vector all the time. I'm curious why who feel that List/ArrayList is preferable. Dave D - Original Message - From: Chuck Cavaness [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Friday, February 01, 2002 2:37 AM Subject: Re: Are Vectors in a FormAction set to null after

Re: OReilly Struts book

2002-01-30 Thread dderry
I'd be interested in those reviews as well. Dave Derry [EMAIL PROTECTED] - Original Message - From: Amitkumar J Malhotra [EMAIL PROTECTED] To: Struts Users Mailing List [EMAIL PROTECTED] Sent: Tuesday, January 29, 2002 10:13 PM Subject: RE: OReilly Struts book Has anyone tried

Re: way to use bean:write with label value beans

2002-01-25 Thread dderry
Rob, Since no one else has yet responded I will take a shot at it. this is how I would implement it (if I DO understand you correctly). I am assuming that the relationship between the status label and the numeric value is pretty stable (since you are storing them in an RDBS I would guess that