RE: ActionForm necessary?

2004-03-15 Thread Wendy Smoak
> From: Frank Burns [mailto:[EMAIL PROTECTED] > I have a jsp form which has fields that require no > validation. So I don't > need to validate the form input. > If I don't include an ActionForm, I get a "... null form ..." > error message. > Does this mean that I MUST create ActionForms, even if

RE: ActionForm necessary?

2004-03-15 Thread Johann Reyes
Hello Frank ActionForm in no necesary if you don't use the tag.. if you use it then you have to use an actionform even if you don't have any validation on it. Hope it helps, Johann -Original Message- From: Frank Burns [mailto:[EMAIL PROTECTED] Sent: Monday, Marc

RE: ActionForm boolean properties - Newbie question

2004-01-20 Thread Andrew Hill
If its a primitive , it will look for 'is' , but for the Boolean object it will look for 'get' (same as any other object). -Original Message- From: Renato Romano [mailto:[EMAIL PROTECTED] Sent: Tuesday, 20 January 2004 23:00 To: 'Struts Users Mailing List' Subject: ActionForm boolean prope

RE: ActionForm is not automatically popluated.

2004-01-15 Thread Martin Sturzenegger
if you have getAmount() and setAmount() methods, you address the according property in you jsp as amount and not as Amount !!! silly, but these are the rules... hope this helps martin -- Urspruengliche Nachricht -- Von: "Andre Risnes" <[EMAIL PROTECTED]> Ant

RE: ActionForm is not automatically popluated.

2004-01-15 Thread Andre Risnes
> > Are you casting the ActionForm in to your own form in your > save action? > > like: > >public ActionForward execute(ActionMapping mapping, > ActionForm form, > HttpServletRequest request, > Ht

RE: ActionForm is not automatically popluated.

2004-01-15 Thread Andre Risnes
> > Without seeing any of your code, one possibility is that the > case of your property names isn't properly matching your Form. > For instance, the property "lastname" isn't going to match > setLastName() in your form, but "lastName" will. I believe i've tried every possible case combination.

RE: ActionForm is not automatically popluated.

2004-01-14 Thread hgosper
spond to "Struts Users Mailing List" To: "Struts Users Mailing List" <[EMAIL PROTECTED]> cc: Subject:RE: ActionForm is not automatically popluated. -Original Message- Hi, I have a tomcat/struts/velocity application that

RE: ActionForm is not automatically popluated.

2004-01-14 Thread Richard Hightower
I'd start by getting log4j and turning on full debug logging. Study the logs of a working form. Study the logs of the form that does not work. Rick Hightower Developer Struts/J2EE training -- http://www.arc-mind.com/strutsCourse.htm Struts/J2EE consulting -- http://www.arc-mind.com/consulting.

RE: ActionForm is not automatically popluated.

2004-01-14 Thread Robert Nocera
Without seeing any of your code, one possibility is that the case of your property names isn't properly matching your Form. For instance, the property "lastname" isn't going to match setLastName() in your form, but "lastName" will. -Rob www.neosllc.com -Original Message- From: Andre R

RE: ActionForm - redirect to custom JSP after validation failed

2004-01-13 Thread Christian Schlaefcke
using struts, so I don't use > the > above scenario myself, yet. > > My 2 cents.. > > Pritpal Dhaliwal > > > -Original Message- > From: Richard Hightower [mailto:[EMAIL PROTECTED] > Sent: Tuesday, January 13, 2004 9:20 AM > To: Struts Users Mailing L

RE: ActionForm - redirect to custom JSP after validation failed

2004-01-13 Thread Dhaliwal, Pritpal (HQP)
cents.. Pritpal Dhaliwal -Original Message- From: Richard Hightower [mailto:[EMAIL PROTECTED] Sent: Tuesday, January 13, 2004 9:20 AM To: Struts Users Mailing List; [EMAIL PROTECTED] Subject: RE: ActionForm - redirect to custom JSP after validation failed First, the behavior experiencing

RE: ActionForm LifeCycle (Maybe a bug in Struts)

2004-01-13 Thread Richard Hightower
Understanding the lifecycle of an ActionForm... The ActionServlet handles requests for Struts, i.e., requests ending in *.do is common. The ActionServlet looks up the RequestProcessor associated with the module prefix. The RequestProcessor implements the handling of the lifecycle and uses RequestU

Re: ActionForm - redirect to custom JSP after validation failed

2004-01-13 Thread Kris Schneider
If I understand what you're asking, try setting validate="false" in your action mapping so that validation is deferred to your action. Otherwise, Struts will perform validation automatically and, as you've noticed, never invoke your action if there are errors. Another option would be to keep valid

RE: ActionForm - redirect to custom JSP after validation failed

2004-01-13 Thread Richard Hightower
First, the behavior experiencing is as designed. I suggest getting a good book on Struts geared for Struts novices like Professional Struts published by Wrox (written by James Goodwill and me). You can turn validation off in the action mapping (action element in the struts config file) by setting

Re: ActionForm - redirect to custom JSP after validation failed

2004-01-13 Thread Mark Lowe
You could forward (not redirect) to a generic failure page if there are errors present. I confess i haven;t done this but it could be what you want, even forward to a global forward defined in struts config, so you can reuse you error page for other stuff. On 13 Jan 2004, at 16:27, Christian

Re: ActionForm and password fields.

2003-12-08 Thread Jerome Curlier
You could use the redisplay attribute: Jerome "Antony Paul" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Hi, > How to tell struts that I dont want to display the password if > validation fails ? What about other form elements ? > > rgds > Antony Paul. --

Re: ActionForm and password fields.

2003-12-08 Thread David Chelimsky
Sorry, I have no experience w/ DynaActionForms. Someone else is going to have to field this one - anybody? - Original Message - From: "Antony Paul" <[EMAIL PROTECTED]> To: "Struts Users Mailing List" <[EMAIL PROTECTED]> Sent: Monday, December 08, 2003 5:0

Re: ActionForm and password fields.

2003-12-08 Thread Antony Paul
- From: "David Chelimsky" <[EMAIL PROTECTED]> To: "Struts Users Mailing List" <[EMAIL PROTECTED]> Sent: Monday, December 08, 2003 4:18 PM Subject: Re: ActionForm and password fields. > Assuming you're using struts validator, this goes in your ActionForm

Re: ActionForm and password fields.

2003-12-08 Thread David Chelimsky
Assuming you're using struts validator, this goes in your ActionForm class: public ActionErrors validate(ActionMapping mapping, HttpServletRequest request) { ActionErrors errors = super.validate(mapping, request); if (errors != null) { setPassword(null); } return errors; }

Re: ActionForm field not changing when forwarded to Action

2003-11-24 Thread bort
Thank you for your response Manish. "Manish Singla" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Because when you forward to Action B, at that time Struts Request > Processor again processes Action Form. (FYI: In Action B, request is > still having old values from Form F. Thus, va

Re: ActionForm field not changing when forwarded to Action

2003-11-24 Thread Manish Singla
AIL PROTECTED]> To: "Struts Users Mailing List" <[EMAIL PROTECTED]> Sent: Monday, November 24, 2003 6:53 PM Subject: Re: ActionForm field not changing when forwarded to Action Because when you forward to Action B, at that time Struts Request Processor again processes Action

Re: ActionForm field not changing when forwarded to Action

2003-11-24 Thread Eric Saya
cessor wil not overwrite in Action B ? BR Eric - Original Message - From: "Manish Singla" <[EMAIL PROTECTED]> To: "Struts Users Mailing List" <[EMAIL PROTECTED]> Sent: Monday, November 24, 2003 6:53 PM Subject: Re: ActionForm field not changing when forwar

Re: ActionForm field not changing when forwarded to Action

2003-11-24 Thread Manish Singla
Because when you forward to Action B, at that time Struts Request Processor again processes Action Form. (FYI: In Action B, request is still having old values from Form F. Thus, values are reset and populated) HTH Manish Singla bort wrote: Hi all I have an application which exhibits two similar

Re: ActionForm

2003-10-14 Thread Barry Volpe
You an ActionForm or a DynaActionForm Barry - Original Message - From: "Mariano García" <[EMAIL PROTECTED]> To: "'Struts Users Mailing List'" <[EMAIL PROTECTED]> Sent: Tuesday, October 14, 2003 9:18 AM Subject: ActionForm > Hi all, > > I have a jsp page with a form, so I want to fill di

Re: ActionForm validate() - How to get ServletContext from HttpSessio n in J2EE 1.2

2003-09-15 Thread Craig R. McClanahan
On Mon, 15 Sep 2003, Chang, Henrique wrote: > Date: Mon, 15 Sep 2003 11:32:38 -0400 > From: "Chang, Henrique" <[EMAIL PROTECTED]> > Reply-To: Struts Users Mailing List <[EMAIL PROTECTED]> > To: 'Struts Users Mailing List' <[EMAIL PROTECTED]> > Subject: ActionForm validate() - How to get ServletCon

Re: ActionForm null after context restart?

2003-08-25 Thread Mark Lowe
If it works okay after restart rather than just reload, i'd suggest it would be the container not maintaining sessions across reloads. And that I guess would be the nature of your question. I know that tc 4.127 has this as a fix from 4.124. Cheers Mark On Monday, August 25, 2003, at 03:53 PM,

Re: ActionForm null after context restart?

2003-08-25 Thread Sasha Borodin
Howdy ya'll, I posted this Friday but no one's biting so far... Has anyone had problems with session-scoped ActionForms being null after (de)Serialization (context restart). I have confirmed that running myForm.reset(...) on my ActionForm after restart throws a NullPointerException via debugging

RE: ActionForm Initialization

2003-08-08 Thread Andrew Hill
RequestProcessor has a processPopulate method to init form fields in the action form based on request parameters (though it actually delegates to RequestUtils class to do the real work). the processActionForm() method in RP is resposible for finding or instantiating the action form instance based

RE: ActionForm Design Question

2003-08-02 Thread Navjot Singh
|> Question 1: Do I use conventional ActionForm? |> Map-backed ActionForm? or DynaActionForm for this |> project? | |If I were you, I would use the conventional ActionForm if |most of the properties are Strings. If your data is fixed on form, then it is good to have ActionForm. More, you may use

Re: ActionForm Design Question

2003-08-01 Thread Jing Zhou
- Original Message - From: "Caroline Jen" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Friday, August 01, 2003 10:42 AM Subject: ActionForm Design Question > Hi, I am building a web site. The primary functions > of this site are for authors to submit their research > papers. The

RE: ActionForm resulting in 'No collection found'

2003-07-30 Thread Sudheesh_Clement
EMAIL PROTECTED]> | | cc: |

RE: ActionForm resulting in 'No collection found'

2003-07-30 Thread Kukwa, Brian (DeepGreen Bank)
:12 PM To: Struts Users Mailing List Subject: Re: ActionForm resulting in 'No collection found' I think instead of setting the form in the request you should set at the seesion, request variables last only for one single request. That' s one way the form is available in suseque

Re: ActionForm resulting in 'No collection found'

2003-07-30 Thread Sudheesh_Clement
I think instead of setting the form in the request you should set at the seesion, request variables last only for one single request. That' s one way the form is available in susequent pages I hope that will help |-+---> | | "Kukwa, Bri

RE: ActionForm as a view bean

2003-07-25 Thread Giampiero De Ciantis
Jsp that will display the data. -Gp -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: July 25, 2003 11:06 AM To: [EMAIL PROTECTED] Subject: Re: ActionForm as a view bean Hello again, Actually, as it turns out, the ActionForm is NOT a good idea for a view bean

Re: ActionForm as a view bean

2003-07-25 Thread george . baxter
Hello again, Actually, as it turns out, the ActionForm is NOT a good idea for a view bean. The ActionForm is not created until the html.FormTag.doStartTag() runs, and again, if the initialization from the back end fails, it's too late to do anything about it. What do you all do? The problem is

RE: ActionForm mapped property submit/populate error

2003-07-07 Thread Nate Bowler
ginal Message- From: Sandeep Takhar [mailto:[EMAIL PROTECTED] Sent: Monday, July 07, 2003 11:35 AM To: Struts Users Mailing List Subject: Re: ActionForm mapped property submit/populate error A very common problem and you can spend too much time on these issues. Personally - I would use the n

Re: ActionForm mapped property submit/populate error

2003-07-07 Thread Sandeep Takhar
A very common problem and you can spend too much time on these issues. Personally - I would use the nested tags. When using them - don't worry about generating the nested property syntax. Just use them intuitively in the easiest fashion possible. This includes mapped properties. For indexed pr

RE: ActionForm DB validation

2003-06-26 Thread FrenzyGNX
I think that kind of validation is better to be done in the business logic layer. --- Fedor Smirnoff <[EMAIL PROTECTED]> wrote: > Hey, > > I wanted to find out if its acceptable to access > database in the validation stage of SOMEActionForm. > Basically when a user enters email address to > subs

Re: ActionForm

2003-06-25 Thread Ajay Patil
Dear AJ, 1. In your Form bean, declare a collection to hold the list of questions. 2. In your JSP page, use tag and iterate over the questions, printing one tag in each loop. 3. In your Action class, when the user adds a question, add the question to the collection inside y

Re: ActionForm

2003-06-25 Thread AJGadgil
Agreed. Was just curious if Struts had an adequate solution for this type of problem. Currently, I went back to using getParameterValues() which does an excellent job. In a message dated 6/25/2003 1:14:48 PM Eastern Daylight Time, [EMAIL PROTECTED] writes: > >I'm running into a problem with

Re: ActionForm

2003-06-25 Thread Jing Zhou
- Original Message - From: <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Wednesday, June 25, 2003 9:20 AM Subject: ActionForm > I'm running into a problem with using ActioForm. I mean I know how to do the > normal stuff like say a login form, but I'm running into serious issues whe

RE: ActionForm DB validation

2003-06-25 Thread Fedor Smirnoff
Hey, I wanted to find out if its acceptable to access database in the validation stage of SOMEActionForm. Basically when a user enters email address to subscribe, I need to check if it already exists in the database, should I do it in SOMEAction or SOMEActionForm? Thank you Fedor ___

RE: ActionForm 'reset' method being called when JSP is rendered

2003-06-20 Thread Yansheng Lin
er. Thanks! -Original Message- From: Ted Husted [mailto:[EMAIL PROTECTED] Sent: June 20, 2003 5:10 AM To: Struts Users Mailing List Subject: Re: ActionForm 'reset' method being called when JSP is rendered The mistake most people make is resetting properties needlessly. G

Re: ActionForm 'reset' method being called when JSP is rendered

2003-06-20 Thread Jing Zhou
- Original Message - From: "Ted Husted" <[EMAIL PROTECTED]> To: "Struts Users Mailing List" <[EMAIL PROTECTED]> Sent: Friday, June 20, 2003 6:10 AM Subject: Re: ActionForm 'reset' method being called when JSP is rendered > Jerry Ja

Re: ActionForm 'reset' method being called when JSP is rendered

2003-06-20 Thread Ted Husted
Jerry Jalenak wrote: The doStartTag has a call to initFormBean; in initFormBean there is a call to RequestUtils.createActionForm, followed by a call to the ActionForms 'reset' method. In a wizard type of application, this could indeed cause problems where the reset method may be clearing values fr

Re: ActionForm 'reset' method being called when JSP is rendered

2003-06-20 Thread Ted Husted
As Craig mentioned, reset is always called before an autopopulation event. For consistency, it is also called if the html:form tag needs to instantiate the form itself. In a multi-action sequence, the request is run through the same gauntlet each time. A forwarded request within the container i

Re: ActionForm 'reset' method being called when JSP is rendered

2003-06-19 Thread Craig R. McClanahan
> Cc: [EMAIL PROTECTED] > Subject: Re: ActionForm 'reset' method being called when JSP is rendered > > I have looked at this again, and in 1.1 rc2 on tomcat 4.1.18 the reset > is called for each action of a multi action sequence sharing a form bean > even though the f

Re: ActionForm 'reset' method being called when JSP is rendered

2003-06-19 Thread Paul Harrison
I have looked at this again, and in 1.1 rc2 on tomcat 4.1.18 the reset is called for each action of a multi action sequence sharing a form bean even though the form bean is in session scope and only created once - I have written a demo app with logging that shows this behaviour - should I submi

RE: ActionForm 'reset' method being called when JSP is rendered

2003-06-19 Thread Jerry Jalenak
a, KS 66219 (913) 577-1496 [EMAIL PROTECTED] -Original Message- From: Richard J. Duncan [mailto:[EMAIL PROTECTED] Sent: Thursday, June 19, 2003 12:00 PM To: [EMAIL PROTECTED] Subject: RE: ActionForm 'reset' method being called when JSP is rendered If what your saying is t

RE: ActionForm 'reset' method being called when JSP is rendered

2003-06-19 Thread Richard J. Duncan
:[EMAIL PROTECTED] Sent: Thursday, June 19, 2003 11:43 AM To: Struts Users Mailing List Subject: Re: ActionForm 'reset' method being called when JSP is rendered I am writing an application with a series of "wizard" type pages, so I thought that I would use one big ActionForm

Re: ActionForm 'reset' method being called when JSP is rendered

2003-06-19 Thread Paul Harrison
I am writing an application with a series of "wizard" type pages, so I thought that I would use one big ActionForm in session scope and each page add extra information to it - however this did not work as reset was being called at each page invocation - I am interested to hear that reset should

RE: ActionForm 'reset' method being called when JSP is rendered

2003-06-19 Thread Jerry Jalenak
EMAIL PROTECTED] -Original Message- From: Ted Husted [mailto:[EMAIL PROTECTED] Sent: Thursday, June 19, 2003 6:56 AM To: Struts Users Mailing List Subject: Re: ActionForm 'reset' method being called when JSP is rendered In Struts 1.0.2 and later, reset is called by the html:fo

Re: ActionForm 'reset' method being called when JSP is rendered

2003-06-19 Thread Ted Husted
In Struts 1.0.2 and later, reset is called by the html:form tag *if* the ActionForm is being instantiated at that time. The scope shouldn't matter. Also remember that the html:form tag is looking at the Action to which it submits, which may not be "Action 1". If these are the same Action, or sh

Re: ActionForm 'reset' method being called when JSP is rendered

2003-06-18 Thread Jing Zhou
- Original Message - From: "Jerry Jalenak" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Wednesday, June 18, 2003 9:04 AM Subject: ActionForm 'reset' method being called when JSP is rendered > I'm seeing some odd behaviour with one of my actions. If anyone can explain > this I'd su

Re: ActionForm with non-simpleProperties

2003-06-06 Thread Rodrigo di Lorenzo Lopes
Thank you very much. Mike Jasnowski writes: > Yes they can, but for things other than Java defined complex types you may > have to write your own converter. I'm not sure what the ootb complex Java > types are. See the commons beanutils package for more info. > > -Original Message- > Fr

RE: ActionForm with non-simpleProperties

2003-06-06 Thread Mike Jasnowski
>I'm not sure what the ootb complex Java >types are I should have qualified that with, "What types are supported by commons Converter " -Original Message- From: Mike Jasnowski [mailto:[EMAIL PROTECTED] Sent: Thursday, June 05, 2003 12:48 PM To: Struts Users Mai

RE: ActionForm with non-simpleProperties

2003-06-06 Thread Mike Jasnowski
Yes they can, but for things other than Java defined complex types you may have to write your own converter. I'm not sure what the ootb complex Java types are. See the commons beanutils package for more info. -Original Message- From: Rodrigo di Lorenzo Lopes [mailto:[EMAIL PROTECTED] Sen

RE: ActionForm reset method

2003-03-25 Thread Renato Romano
marzo 2003 15.37 To: Struts; [EMAIL PROTECTED] Subject: RE: ActionForm reset method RequestProcessor is the class to which the ActionServlet delegates the bulk of its work processing a request (ie: populate form, call Action execute, etc...). Struts makes it easy to replace the standard RequestPro

RE: ActionForm reset method

2003-03-25 Thread Andrew Hill
e the best documentation is the source code itself :-) -Original Message- From: Renato Romano [mailto:[EMAIL PROTECTED] Sent: Tuesday, 25 March 2003 22:17 To: [EMAIL PROTECTED]; 'Struts Users Mailing List' Subject: RE: ActionForm reset method Ok. That's all clear but one thing:

RE: ActionForm reset method

2003-03-25 Thread Renato Romano
ginal Message- From: Andrew Hill [mailto:[EMAIL PROTECTED] Sent: martedì 25 marzo 2003 14.49 To: Struts Users Mailing List; [EMAIL PROTECTED] Subject: RE: ActionForm reset method Depends on what your cases are... In my app I needed to switch it off for certain specific actions so I created m

RE: ActionForm reset method

2003-03-25 Thread Andrew Hill
Depends on what your cases are... In my app I needed to switch it off for certain specific actions so I created my own action mapping class with a noReset parameter , and overrode RequestProcessor to check for that. Needless to say I later needed something a little more dynamic - so I also added

RE: ActionForm Does Not Contain Dynamically Set Data

2003-03-04 Thread Chen, Gin
) { window.open("urltouraction.do?myparameter="+myParam); } -Tim -Original Message- From: Art Vandalay [mailto:[EMAIL PROTECTED] Sent: Tuesday, March 04, 2003 12:06 PM To: Struts Users Mailing List Subject: RE: ActionForm Does Not Contain Dynamically Set Data I don't beli

RE: ActionForm Does Not Contain Dynamically Set Data

2003-03-04 Thread Art Vandalay
Yes, a query parameter is an option. The reason I don't want to use query parameters is we have a standard to avoid using them if at all possible as they expose data to the user. This particular piece of data in question doesn't present a security risk by being exposed, but exposing it does go agai

RE: ActionForm Does Not Contain Dynamically Set Data

2003-03-04 Thread Miller, Jason
Are you saying that you open the window, then set a field value in that child window to something from the parent, and you want to use that value to do something on the server? why not pass the value as a querystring parameter? > -Original Message- > From: Art Vandalay [mailto:[EMAIL PROT

RE: ActionForm Does Not Contain Dynamically Set Data

2003-03-04 Thread Art Vandalay
I don't believe this is off topic. This question regards how to get Struts to populate a form field that was set using Javascript. --- James Mitchell <[EMAIL PROTECTED]> wrote: > Please label JavaScript topics as [OT]. > > > > -- > James Mitchell > Web Developer/Struts Evangelist > http://jakar

Re: ActionForm serialization

2003-02-27 Thread Edgar Dollin
I found it, I was keeping a copy of HttpServletRequest which is quite understandably not serializable. Edgar Subject: Re: ActionForm serialization From: "Chetan Sahasrabudhe" Date: 2003-02-27 10:58:21 [Download message RAW] Edgar: in your form do u have any customize j

Re: ActionForm serialization

2003-02-27 Thread Chetan Sahasrabudhe
Edgar: in your form do u have any customize java object which acts as a attribute ? if it is so, make sure the object class is extending serializable classes. one more question, r u having your operation in transaction ? - Original Message - From: "Edgar Dollin" <[EMAIL PROTECTED]

RE: ActionForm populate question ...

2003-02-21 Thread Wendy Smoak
Since that's the second or third time I've posted that missive on dealing with the database access problem first before involving Struts, I went looking to see if I could incorporate it into a FAQ, and found this: http://jakarta.apache.org/struts/faqs/database.html Considering the august list of

RE: ActionForm populate question ...

2003-02-21 Thread Wendy Smoak
Alex wrote: > I didn't find the solution for my problem : > I got an use case where I have to add new student. > I had a StudentActionForm who got simple data like > name, first name, birth date. > I had an attributs who correspond on a formation > selected by a new student. > The formations data d

RE: ActionForm fields blank

2003-02-21 Thread Sri Sankaran
It is recommended that you use only String type for your form-bean properties. You can then translate them into your business objects. For one thing, using the actual data type of the field -- such as int -- would make difficult the process of validation and reproduction of erroneous user ent

RE: ActionForm methods Naming Conventions - Urgent

2003-02-10 Thread Sri Sankaran
I don't see how the *name* of a method can lead to an exception. Secondly why are you getting a *NumberFormatException*. Aren't all your ActionForm properties String types? (Refer to the countless discussions on this subject for its virtues) All that being said, remember that unless otherwise

Re: ActionForm methods Naming Conventions - Urgent

2003-02-10 Thread Iris
When you have String getTName() void setTName(String tName) in your ActionForm, you use them in your JSP like This help you ? Iris ashokd wrote: Hi, Their is any naming conventions for ActionForm methods ? I got a problem with this. First I used like below then I got the problem(NumberFor

Re: ActionForm filled by several forms.

2002-11-28 Thread Gemes Tibor
> It seems that when 2.do was called, > it removed the Form already in the session > and added a new one. > It is correct? > Is it a feature? DynaActionForm does reset() itself on every request. In your case you should extend the DynaActionForm and override reset() Tib -- To unsubscribe, e-mail

RE: ActionForm manipulation within an Action

2002-11-16 Thread Brian Topping
... and you aren't using DynaActionForms, which erase your form every time the controller is called. -b > -Original Message- > From: Sri Sankaran [mailto:[EMAIL PROTECTED]] > Sent: Friday, November 15, 2002 12:48 PM > To: Struts Users Mailing List > Subject: RE: Act

Re: ActionForm manipulation within an Action

2002-11-15 Thread David Graham
I guess I misread the question. Setting up the form and forwarding to a jsp does what I described. David From: Martin Cooper <[EMAIL PROTECTED]> Reply-To: "Struts Users Mailing List" <[EMAIL PROTECTED]> To: Struts Users Mailing List <[EMAIL PROTECTED]> Subject:

Re: ActionForm manipulation within an Action

2002-11-15 Thread Martin Cooper
On Fri, 15 Nov 2002, David Graham wrote: > Of course, this happens all the time in add/edit forms. Any change to the > form in the first action will be seen by the action it forwards to as long > as both actions are setup to use the same form bean in struts-config.xml. Nope. The form bean will

RE: ActionForm manipulation within an Action

2002-11-15 Thread Brian Topping
... and you aren't using DynaActionForms, which erase your form every time the controller is called. -b > -Original Message- > From: Sri Sankaran [mailto:Sri.Sankaran@;sas.com] > Sent: Friday, November 15, 2002 12:48 PM > To: Struts Users Mailing List > Sub

RE: ActionForm manipulation within an Action

2002-11-15 Thread David Graham
sers Mailing List" <[EMAIL PROTECTED]> To: "'Struts Users Mailing List'" <[EMAIL PROTECTED]> Subject: RE: ActionForm manipulation within an Action Date: Fri, 15 Nov 2002 19:02:59 - Well, I had tried it before just like you are saying... Two actions use t

RE: ActionForm manipulation within an Action

2002-11-15 Thread Jorge Martins
n can be in the request scope as long as you're forwarding to the next resource and NOT redirecting. David >From: "Sri Sankaran" <[EMAIL PROTECTED]> >Reply-To: "Struts Users Mailing List" <[EMAIL PROTECTED]> >To: "Struts Users Mailing List&qu

RE: ActionForm manipulation within an Action

2002-11-15 Thread Sri Sankaran
Right you areshould have read your message a little better. Sri -Original Message- From: David Graham [mailto:dgraham1980@;hotmail.com] Sent: Friday, November 15, 2002 1:16 PM To: [EMAIL PROTECTED] Subject: RE: ActionForm manipulation within an Action The form bean can be in the

RE: ActionForm manipulation within an Action

2002-11-15 Thread David Graham
ling List" <[EMAIL PROTECTED]> Subject: RE: ActionForm manipulation within an Action Date: Fri, 15 Nov 2002 12:47:51 -0500 ...and the form bean is of session scope. Sri -Original Message- From: David Graham [mailto:dgraham1980@;hotmail.com] Sent: Friday, November 15, 2002 12:35 PM To: [

RE: ActionForm manipulation within an Action

2002-11-15 Thread Sri Sankaran
...and the form bean is of session scope. Sri -Original Message- From: David Graham [mailto:dgraham1980@;hotmail.com] Sent: Friday, November 15, 2002 12:35 PM To: [EMAIL PROTECTED] Subject: Re: ActionForm manipulation within an Action Of course, this happens all the time in add/edit

Re: ActionForm manipulation within an Action

2002-11-15 Thread David Graham
Of course, this happens all the time in add/edit forms. Any change to the form in the first action will be seen by the action it forwards to as long as both actions are setup to use the same form bean in struts-config.xml. David From: "Jorge Martins" <[EMAIL PROTECTED]> Reply-To: "Struts

RE: ActionForm used twice in document...

2002-11-08 Thread edgar
If you only use one form in a document you could use document.forms[0].fieldname for the first form and document.forms[1].fieldname For the second. The other issue is that there really isn't much of an issue to use the SAME actual action form twice since it goes to the same

Re: ActionForm and java.io.Serialize

2002-11-01 Thread Dan Tran
Hi David, thanks for the explaination. I got it -Dan - Original Message - From: "David Graham" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Friday, November 01, 2002 1:33 PM Subject: Re: ActionForm and java.io.Serialize > Every object you place in the ses

Re: ActionForm and java.io.Serialize

2002-11-01 Thread David Graham
Every object you place in the session must be serializable so the container can persist sessions if needed. David From: "Dan Tran" <[EMAIL PROTECTED]> Reply-To: "Struts Users Mailing List" <[EMAIL PROTECTED]> To: "Struts Users Mailing List" <[EMAIL PROTECTED]> Subject: ActionForm and java.io.Se

Re: ActionForm vs. Value Bean

2002-10-22 Thread Adam Sherman
Marcus Biel wrote: If you got Data records from a database - have they got to be saved in an ActionForm, or in a value bean ??? I guess they have to be saved in a value bean, because ActionForm just take request parameters. If so, what about the action mapping ? name="ValueBean" instead of name=

Réf. : Re: ActionForm and ArrayList

2002-10-21 Thread Arnaud . PASQUIERS
cc : Objet : Re: ActionForm and ArrayList

Re: ActionForm and ArrayList

2002-10-18 Thread Dan Tran
In your ActionForm define something like this String [] _rows; String [] getRow() (return _rows) void setRow(String [] rows ) { set _rows = rows ;} Then in your jsp, each elements of your array use property="row", you may want to use logic:iterate It is the idea -Good luck

Re: ActionForm & Value Objects

2002-10-14 Thread Eddie Bush
Wendy Smoak wrote: >I have an ActionForm (ContactForm) object in scope, and _also_ a ContactImpl >value object that pretty much mirrors the get/set methods in the >ContactForm. > >I'm using the BeanUtils.copyProperties method to move the properties back >and forth, but I'm confused as to when eac

RE: ActionForm

2002-09-27 Thread Desjardins, Nicolas
thanks... why i didnt think of that! Shame on me! :o) -Original Message- From: Robert Taylor [mailto:[EMAIL PROTECTED]] Sent: 26 septembre, 2002 10:53 To: Struts Users Mailing List Subject: RE: ActionForm I just ran into a similar problem where I have a set up action which populates

RE: ActionForm

2002-09-26 Thread Robert Taylor
I just ran into a similar problem where I have a set up action which populates the form (in request scope) and forwards to the .jsp page. When validation failed, I had my input attribute set to the .jsp page and was getting the behavior your described. I changed the input attribute to be the actio

RE: [ActionForm] Extending existing ActionForm classes

2002-09-24 Thread Robert Taylor
vested. robert > -Original Message- > From: Charles [mailto:[EMAIL PROTECTED]] > Sent: Tuesday, September 24, 2002 6:59 PM > To: Struts Users Mailing List > Subject: Re: [ActionForm] Extending existing ActionForm classes > > > Yup my CreateUserProfileForm does extend

RE: [ActionForm] Extending existing ActionForm classes

2002-09-24 Thread Galbreath, Mark
Gonna be kinda difficult since ActionForm classes already extend ActionForm. Just create another ActionForm class and set its state in the associated Action class. Mark -Original Message- From: Charles [mailto:[EMAIL PROTECTED]] Sent: Tuesday, September 24, 2002 2:17 PM Hi, I got questi

Re: [ActionForm] Extending existing ActionForm classes

2002-09-24 Thread Charles
> To: "Struts Users Mailing List" <[EMAIL PROTECTED]> Sent: Tuesday, September 24, 2002 12:16 AM Subject: Re: [ActionForm] Extending existing ActionForm classes > CreateUserProfileForm etc must extend from ActionForm then > UpdateUserProfileForm can extend from CreateUserProfil

Re: [ActionForm] Extending existing ActionForm classes

2002-09-23 Thread Jin Bal
CreateUserProfileForm etc must extend from ActionForm then UpdateUserProfileForm can extend from CreateUserProfileForm. Your forms must have a base type of ActionForm HTH Jin - Original Message - From: "Charles" <[EMAIL PROTECTED]> To: "Struts Users Mailing List" <[EMAIL PROTECTED]> Se

RE: [ActionForm] Returning from validate routine

2002-09-10 Thread Jerry Jalenak
Jim, Thanks! I was about 1/2 way there - forget to add the .do to the reference. Jerry > -Original Message- > From: Jim Crossley [mailto:[EMAIL PROTECTED]] > Sent: Tuesday, September 10, 2002 12:55 PM > To: Struts Users Mailing List > Subject: Re: [ActionForm]

Re: [ActionForm] Returning from validate routine

2002-09-10 Thread Jim Crossley
The input can reference another struts action that is able to do the "dynamic determination", e.g. input="/determinator.do?valid=no" or some such thing. Jim - Original Message - From: "Jerry Jalenak" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Tuesday, September 10, 2002 1:47 P

Re: ActionForm Scope Session problem

2002-07-27 Thread Eddie Bush
You _do_ have a form-bean element named "UserRegistrationForm", right? Are you sure it's not "userRegistrationForm"? The "name" attribute of the action is a bit misleading. It would be more properly called "form-name" or "form-bean-name". Whatever you put here _must_ match one of the form

Re: ActionForm across multiple pages - confusion

2002-07-25 Thread @Basebeans.com
Subject: Re: ActionForm across multiple pages - confusion From: "David Chu" <[EMAIL PROTECTED]> === Ah, ok, that makes sense. I didn't realize I actually had two distinct ActionForm objects. Thanks guys. -- -david -- David C. Chu America Online

  1   2   3   >