Re: Serialization DynaActionForm

2008-07-02 Thread Laurie Harper
t's a warning (hence the prefix WARN). You don't provide a translation, so I'm not too sure what it's warning you about, though... And the question is how the serialization DynaActionForm. DynaActionForm implements Serializable and the only property you show is

Serialization DynaActionForm

2008-07-02 Thread STRUTS SL. Mailing List
DynaActionForm. Thanks.

How to stop ArrayIndexOutOfBoundsException from being thrown when using DynaActionForm

2008-05-05 Thread venkat reddy
I'm using struts 1.2.7 struts-config.xml === When the number of choices in the jsp page exceed the size it's throwing ArrayIndexOutOfBoundsException. Please explain in detail how to stop it from being thrown.

iterating through a Dynaactionform Arraylist bean

2008-03-05 Thread jmejiaa
Hey folks, this is my first post. I have a little problem with an arrayList. I'm trying to populate a drop down box in my main JSP. This is what's happening. I have a dynaactionform with a years property which is an arraylist of reportYear objects. A reportYear object has a getYear and

dynaactionform is getting null using struts tiles

2007-12-04 Thread NagsNags
Hi, your help in this regard is very much appreciated. my strutus-config entry is as you see, the forward is to a tiles definition, which looks like my jsp code looks like: <% DynaActionForm form =((DynaActionF

Re: BigDecimal in DynaActionForm "" instead of null

2007-01-14 Thread Martin Gainty
trictement interdit de le diffuser, de le distribuer ou de le reproduire. - Original Message - From: <[EMAIL PROTECTED]> To: Sent: Sunday, January 14, 2007 6:32 AM Subject: BigDecimal in DynaActionForm "" instead of null > Hi, > > I have an DynaActionForm (using

BigDecimal in DynaActionForm "" instead of null

2007-01-14 Thread uni
Hi, I have an DynaActionForm (using Struts 1) with several properties, all of type String. My business object is typed; one of its properties is a BigDecimal. To copy form data to the entity, I'm using BeanUtils.copyProperties. This works well, but in case of BigDecimals, there is a conve

RE: File upload using DynaActionForm/SynaValidatorForm

2006-11-29 Thread Mano Chinthaka Dasanayaka
Users Mailing List Subject: Re: File upload using DynaActionForm/SynaValidatorForm Mano Chinthaka Dasanayaka wrote: > Hi, > > Any way ...this will not work through SSL > > I used this to an APP and worked fine in HTTP > > But failed when HTTPS... > > Can you please ha

Re: File upload using DynaActionForm/SynaValidatorForm

2006-11-28 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Mano, Mano Chinthaka Dasanayaka wrote: > Try Using > type="org.apache.struts.validator.DynaValidatorActionForm"> > > > >type="org.apache.struts.upload.FormFile"/> > > > "org.apache.struts.validator.DynaValidatorActionForm" Are you sur

Re: File upload using DynaActionForm/SynaValidatorForm

2006-11-28 Thread Chris Searle
Mano Chinthaka Dasanayaka wrote: > Hi, > > Any way ...this will not work through SSL > > I used this to an APP and worked fine in HTTP > > But failed when HTTPS... > > Can you please have a look into this too...Thanks. Worked fine for me. We have apache2 sitting serving via SSL and talking A

RE: File upload using DynaActionForm/SynaValidatorForm

2006-11-28 Thread Mano Chinthaka Dasanayaka
, 2006 2:47 PM To: Struts Users Mailing List Subject: Re: File upload using DynaActionForm/SynaValidatorForm Mano Chinthaka Dasanayaka wrote: > Try Using > type="org.apache.struts.validator.DynaValidatorActionForm"> > > > >type=&qu

Re: File upload using DynaActionForm/SynaValidatorForm

2006-11-28 Thread Nuwan Chandrasoma
, 2006 9:16 AM Subject: Re: File upload using DynaActionForm/SynaValidatorForm Mano Chinthaka Dasanayaka wrote: Try Using "org.apache.struts.validator.DynaValidatorActionForm" Ah - now that was it. I will now have to go do some reading on what the differe

Re: File upload using DynaActionForm/SynaValidatorForm

2006-11-28 Thread Chris Searle
Mano Chinthaka Dasanayaka wrote: > Try Using > type="org.apache.struts.validator.DynaValidatorActionForm"> > > > >type="org.apache.struts.upload.FormFile"/> > > > "org.apache.struts.validator.DynaValidatorActionForm" Ah - now that was it. I will now have to go do some reading on wh

Re: File upload using DynaActionForm/DynaValidatorForm

2006-11-28 Thread Chris Searle
Mano Chinthaka Dasanayaka wrote: > Hi, > As per my knowledge Your Libraries are Ok...any way , > Have you set the >enctype="multipart/form-data"> I generate the form using velocity-tools support for struts rather than JSP. The created form once displayed to the user has this html:

RE: File upload using DynaActionForm/SynaValidatorForm

2006-11-28 Thread Mano Chinthaka Dasanayaka
Try Using "org.apache.struts.validator.DynaValidatorActionForm" Regards, Mano -Original Message- From: Mano Chinthaka Dasanayaka [mailto:[EMAIL PROTECTED] Sent: Tuesday, November 28, 2006 2:32 PM To: 'Struts Users Mailing List' Subject: RE: File upload

RE: File upload using DynaActionForm/SynaValidatorForm

2006-11-28 Thread Mano Chinthaka Dasanayaka
Hi, As per my knowledge Your Libraries are Ok...any way , Have you set the ?? Regards, Mano -Original Message- From: Chris Searle [mailto:[EMAIL PROTECTED] Sent: Tuesday, November 28, 2006 2:15 PM To: user@struts.apache.org Subject: File upload using DynaActionForm/SynaValidatorForm

File upload using DynaActionForm/SynaValidatorForm

2006-11-28 Thread Chris Searle
Struts 1.2 I need to try to get file upload to work for an existing struts app. I was reading through the following: http://wiki.apache.org/struts/StrutsFileUpload where it mentions the following for Dyna action forms: So - based on this - I ended up with the following for a DynaValidato

Re: DynaActionForm indexed properties

2006-11-03 Thread Niall Pemberton
On 11/3/06, Puneet Lakhina <[EMAIL PROTECTED]> wrote: On 11/3/06, Niall Pemberton <[EMAIL PROTECTED]> wrote: > > On 11/2/06, Puneet Lakhina <[EMAIL PROTECTED]> wrote: > > Hi, > > This is the first time I am trying to use indexed properties with > > DynaA

Re: DynaActionForm indexed properties

2006-11-03 Thread Puneet Lakhina
On 11/3/06, Niall Pemberton <[EMAIL PROTECTED]> wrote: On 11/2/06, Puneet Lakhina <[EMAIL PROTECTED]> wrote: > Hi, > This is the first time I am trying to use indexed properties with > DynaActionForm. Now the number of fields that I will have is not certain. So > d

Re: DynaActionForm indexed properties

2006-11-02 Thread Niall Pemberton
On 11/2/06, Puneet Lakhina <[EMAIL PROTECTED]> wrote: Hi, This is the first time I am trying to use indexed properties with DynaActionForm. Now the number of fields that I will have is not certain. So does that mean I cant use DynaActionForm. And i don't have normal strings in my lis

Re: DynaActionForm indexed properties

2006-11-02 Thread Ed Griebel
irst time I am trying to use indexed properties with DynaActionForm. Now the number of fields that I will have is not certain. So does that mean I cant use DynaActionForm. And i don't have normal strings in my list. I have a custom object. so what i have currently is something like this

DynaActionForm indexed properties

2006-11-02 Thread Puneet Lakhina
Hi, This is the first time I am trying to use indexed properties with DynaActionForm. Now the number of fields that I will have is not certain. So does that mean I cant use DynaActionForm. And i don't have normal strings in my list. I have a custom object. so what i have currently is some

Re: copy from one DynaActionForm to another?

2006-10-13 Thread Nuwan Chandrasoma
you can get it from session just use the below code. DynaActionForm myForm = (DynaActionForm )session.getAttribute(""); i think u can copy this bean using BeanUtils class in commons util package.., see the API.. Hope this would help U. Thanks, Nuwan - Original Message -

copy from one DynaActionForm to another?

2006-10-13 Thread Brian Long
Hi folks. I've got a DynaActionForm that I use for query, and another that I use for update - and they share some data elements. I'd like to copy data from my query form to my update form, but I don't see a way to explicitly get a form by name. The Query Form is Session scoped,

Re: How to set Properties of DynaActionForm on

2006-08-19 Thread Wendy Smoak
On 19 Aug 2006 07:47:35 -, Shailesh Barde <[EMAIL PROTECTED]> wrote: I have a form where all the action are provided by link. I am using DynaActionform so when I click on html:link I do not get the Dynaform populated for the next page ... If I use use html:submit then it happ

How to set Properties of DynaActionForm on

2006-08-19 Thread Shailesh Barde
  Hi List, I have a form where all the action are provided by link. I am using DynaActionform so when I click on html:link I do not get the Dynaform populated for the next page But If I use use html:submit then it happens as expected. Can any one have solution for the above issue

Error with dynaactionform integer property

2006-06-08 Thread Medicherla Lakshmi
Hi, I have an action in which am trying to get two values from database, one is of type Integer and the other String. I have put them in an ArrayList and have set to an attribute like request.setAttribute(Employee, "Employee"). Form for this action is of type dyna

Re: DynaActionForm

2006-05-24 Thread pantichd
Marcus, I apologize for "attaching" my question to your thread. I honestly have no idea how I managed to do that. I'll just create a new post with my question. David -- View this message in context: http://www.nabble.com/DynaActionForm-t1674521.html#a4543726 Sent from the Stru

DynaActionForm

2006-05-24 Thread marcus biel \(innoWake gmbh\)
I am just trying to use a DynaActionForm. Now I would like to check out the ValidateURL method - however it doesn't accept an url like: http://www.myUrl.com/ Is there any page available giving examples of valid urls, or so? I had a look in the API http://struts.apache.org/struts-action/s

Re: NullPointerException when using DynaActionForm

2006-05-10 Thread fea jabi
very silly mistake. used java.lang.ArrayList instead of java.util.ArrayList. Thanks for your help. From: "fea jabi" <[EMAIL PROTECTED]> Reply-To: "Struts Users Mailing List" To: user@struts.apache.org Subject: Re: NullPointerException when using DynaActionForm Da

Re: NullPointerException when using DynaActionForm

2006-05-10 Thread fea jabi
can someone help me with this please. Everything seams to be right to me but getting exception. tried to change formbean to DynaActionform too type="org.apache.struts.action.DynaActionForm" dynamic="true"> still getting same error. I am unable to figure out what the iss

Re: NullPointerException when using DynaActionForm

2006-05-09 Thread fea jabi
;Michael Jouravlev" <[EMAIL PROTECTED]> Reply-To: "Struts Users Mailing List" To: "Struts Users Mailing List" Subject: Re: NullPointerException when using DynaActionForm Date: Tue, 9 May 2006 11:36:56 -0700 On 5/9/06, fea jabi <[EMAIL P

Re: NullPointerException when using DynaActionForm

2006-05-09 Thread Michael Jouravlev
On 5/9/06, fea jabi <[EMAIL PROTECTED]> wrote: public class NewEligibilityForm extends DynaActionForm implements Serializable { public NewEligibilityForm() { } /** * Rese

NullPointerException when using DynaActionForm

2006-05-09 Thread fea jabi
type="com.formbeans.NewEligibilityForm" dynamic="true"> type="java.lang.ArrayList"/> type="java.lang.String[]"/> public class NewEligibilityForm extends Dyna

Re: DynaActionForm extends another object

2006-05-08 Thread Tarun Reddy
--- ArrayList Have DynaActionForm CustDyna which extends Customer In the Dispatch action which is the LookupDispatchAction in one of the methods need to get the "phones" attribute of Customer. How to get this value? tried form.getMap().get("phones"). but getting empty li

DynaActionForm extends another object

2006-05-08 Thread fea jabi
Have an object Customer which has attributes name e_mail phones --- ArrayList Have DynaActionForm CustDyna which extends Customer In the Dispatch action which is the LookupDispatchAction in one of the methods need to get the "phones" attribute of Customer. How to get this val

Re: Extending DynaActionForm

2006-03-30 Thread Ted Husted
In Struts Action 1.2 and prior, you could define a DynaActionForm and use it's name in more than one action mapping, just like you can with any ActionForm.You can also extend DynaActionForm as base class and add convetional properties, and resuse those in the usual way. But that *was* it

Extending DynaActionForm

2006-03-30 Thread vasumathi
Hi Anyone can help, how to use the properties of a DynaActionForm in other DynaActionForm with example. with regards vasu - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: DynaActionForm form-property syntax?

2006-02-17 Thread [EMAIL PROTECTED]
. Thanks for your help. Bryan LaPlante -- Original Message --- From: Laurie Harper <[EMAIL PROTECTED]> To: user@struts.apache.org Sent: Fri, 17 Feb 2006 16:19:56 -0500 Subject: Re: DynaActionForm form-property syntax? > [EMAIL PROTECTED] wrote: > > Hi folks, > >

Re: DynaActionForm form-property syntax?

2006-02-17 Thread Laurie Harper
[EMAIL PROTECTED] wrote: Hi folks, I am new to the user list. I have been developing with Struts for about 2 years. I have an open source ajax project that I am building an integration piece now so that you can use it with Struts. I believe that my syntax for a dynamic form property is correct (

Re: DynaActionForm question

2006-02-17 Thread [EMAIL PROTECTED]
Ah! thank you very much, you ROCK! Bryan LaPlante -- Original Message --- From: "Niall Pemberton" <[EMAIL PROTECTED]> To: "Struts Users Mailing List" Sent: Fri, 17 Feb 2006 16:40:56 - Subject: Re: DynaActionForm question > http://tinyurl.

Re: DynaActionForm question

2006-02-17 Thread Niall Pemberton
http://tinyurl.com/csarz - Original Message - From: <[EMAIL PROTECTED]> Sent: Friday, February 17, 2006 2:32 PM > Hi, > > Does anyone know if there is a way to process form parameters with a > DynaActionForm without first declaring the property names as form-property

Re: DynaActionForm question

2006-02-17 Thread Dave Newton
[EMAIL PROTECTED] wrote: > I am looking at DynaActionForm. If I can subclass that and get it to add all > parameters without first looking at the config, then I won't need to declare > them first. If anyone has a better idea please shout. > What are you trying to

Re: DynaActionForm question

2006-02-17 Thread [EMAIL PROTECTED]
I am looking at DynaActionForm. If I can subclass that and get it to add all parameters without first looking at the config, then I won't need to declare them first. If anyone has a better idea please shout. Bryan LaPlante -- Original Message --- From: "[EMAIL PROTECTED

DynaActionForm question

2006-02-17 Thread [EMAIL PROTECTED]
Hi, Does anyone know if there is a way to process form parameters with a DynaActionForm without first declaring the property names as form-property tags in strtuts-config? Bryan LaPlante - To unsubscribe, e-mail: [EMAIL

DynaActionForm form-property syntax?

2006-02-15 Thread [EMAIL PROTECTED]
Hi folks, I am new to the user list. I have been developing with Struts for about 2 years. I have an open source ajax project that I am building an integration piece now so that you can use it with Struts. I believe that my syntax for a dynamic form property is correct (shown below). My question i

Re: DynaActionform initialize

2006-01-04 Thread Rick Reumann
fea jabi wrote the following on 1/4/2006 3:52 PM: yes, that's right. have a table in my jsp which used form2. form1 properties are a row in a table. Would like to create a list of DynaActionform objects which would be the rows of my table. Ok, that's what I thought. You only nee

Re: DynaActionform initialize

2006-01-04 Thread fea jabi
yes, that's right. have a table in my jsp which used form2. form1 properties are a row in a table. Would like to create a list of DynaActionform objects which would be the rows of my table. I hope I am clear this time. From: Rick Reumann <[EMAIL PROTECTED]> Reply-To: &q

Re: DynaActionform initialize

2006-01-04 Thread Rick Reumann
fea jabi wrote the following on 1/4/2006 3:33 PM: In the Action of PrepareForm2 Would like to create an ArrayList of Form1. When you say an ArrayList "OF" Form1 do you really mean a List of ActionForm objects (in your case a List of DynaActionForm objects)? Typically you will

DynaActionform initialize

2006-01-04 Thread fea jabi
In struts-config dynamic="true"> dynamic="true"> In the Action of PrepareForm2 Would like to create an ArrayList of Form1. Is it possibel to do this? if so how to do this? i.e can we instanciate a DynaActionfom? thanks. ___

Re: DynaActionform

2005-11-30 Thread Laurie Harper
wrote: Hi Fea, It isn't working for you because boolean is a primitive type, and can't be instantiated. The DynaActionForm can only be used with classes, so you will need to use java.lang.Boolean to support boolean values. I hope this helps, James -Original Message- Fr

RE: DynaActionform

2005-11-29 Thread James Harig
Hi Fea, It isn't working for you because boolean is a primitive type, and can't be instantiated. The DynaActionForm can only be used with classes, so you will need to use java.lang.Boolean to support boolean values. I hope this helps, James -Original Message- From: fea ja

DynaActionform

2005-11-29 Thread fea jabi
The below DynaActionForm works fine. I tried to change all the java.lang.Boolean to boolean. to initial="true"/> When changing java.lang.Boolean - boolean the DynaActionform is not getting created. In the action it's Null. Not sure

Re: No getter method servlet Exception. using DynaActionForm

2005-11-17 Thread fea jabi
AIL PROTECTED]> Reply-To: "Struts Users Mailing List" To: user@struts.apache.org Subject: Re: No getter method servlet Exception. using DynaActionForm Date: Thu, 17 Nov 2005 14:44:07 -0500 fea jabi wrote: By changing the form property boolean - Boolean to I am able

Re: No getter method servlet Exception. using DynaActionForm

2005-11-17 Thread Laurie Harper
fea jabi wrote: By changing the form property boolean - Boolean to I am able to get the instance of the dynaactionform. is it necessary to use Boolean itself? Yep, as Dave points out, there's no such type as java.lang.boolean. It should be either just 'boolean' or &#x

Re: No getter method servlet Exception. using DynaActionForm

2005-11-17 Thread Dave Newton
fea jabi wrote: By changing the form property boolean - Boolean to I am able to get the instance of the dynaactionform. is it necessary to use Boolean itself? Well, it's certainly better than java.lang.boolean, which doesn't exist. One of the fun non-orthagonality aspec

Re: No getter method servlet Exception. using DynaActionForm

2005-11-17 Thread fea jabi
By changing the form property boolean - Boolean to I am able to get the instance of the dynaactionform. is it necessary to use Boolean itself? none of my form properties are initialized. all strings are "" and Boolean are by default from what I see thru System.out.println of

Re: No getter method servlet Exception. using DynaActionForm

2005-11-16 Thread Yujun Liang
on. Double check you haven't gotten your config out of sync along > the way. > > L. > > fea jabi wrote: > > thanks for your response. Understood better now. > > > > I am not sure why but the setupForm is null in the Action when debugged > >

Re: No getter method servlet Exception. using DynaActionForm

2005-11-16 Thread Laurie Harper
tood better now. I am not sure why but the setupForm is null in the Action when debugged thru the code. DynaActionForm setupForm = (DynaActionForm) form; System.out.println("In PrepareSetupAction : setupform is : " + setupForm); Any idea of why it's so? Is there anything else

Re: No getter method servlet Exception. using DynaActionForm

2005-11-16 Thread fea jabi
thanks for your response. Understood better now. I am not sure why but the setupForm is null in the Action when debugged thru the code. DynaActionForm setupForm = (DynaActionForm) form; System.out.println("In PrepareSetupAction : setupform is : " + setupForm); Any idea of why i

Re: No getter method servlet Exception. using DynaActionForm

2005-11-16 Thread Laurie Harper
do this to get initial values populated; that's not the case. The first time Struts builds an instance of DynaActionForm, it will populate properties for which you've supplied an initial value. What it won't do is reset properties to their initial values when the reset() method is

Re: No getter method servlet Exception. using DynaActionForm

2005-11-16 Thread fea jabi
rward execute(ActionMapping mapping, ActionForm form, HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException{ DynaActionForm setupForm = (DynaAct

Re: No getter method servlet Exception. using DynaActionForm

2005-11-16 Thread Dave Newton
fea jabi wrote: When I debug after DynaActionForm setupForm = (DynaActionForm) form; my setupForm is null Is your struts config as you posted earlier? i.e., the "name" attribute refers to a Dyna form that doesn't exist in the "form-beans" section? That wo

Re: No getter method servlet Exception. using DynaActionForm

2005-11-16 Thread fea jabi
DynaActionForm setupForm = (DynaActionForm) form; ModuleConfig moduleConfig = RequestUtils.getModuleConfig(request, getServlet().getServletContext()); FormBeanConfig formConfig = moduleConfig.findFormBeanConfig("CustForm"); DynaActionFormClass

Re: No getter method servlet Exception. using DynaActionForm

2005-11-16 Thread Dave Newton
fea jabi wrote: DynaActionForm setupForm = (DynaActionForm) form; ModuleConfig moduleConfig = RequestUtils.getModuleConfig(request, getServlet().getServletContext()); FormBeanConfig formConfig = moduleConfig.findFormBeanConfig("CustForm"); DynaActio

Re: No getter method servlet Exception. using DynaActionForm

2005-11-16 Thread Rahul Akolkar
On 11/16/05, fea jabi <[EMAIL PROTECTED]> wrote: > I have right ones but still getting the same error. > > DynaActionForm properties need to be accessed in JSPs via the internal Map. 36794 [1] is probably good related reading. -Rahul [1] http://issues.apache.org/bugzilla/show_b

Re: No getter method servlet Exception. using DynaActionForm

2005-11-16 Thread fea jabi
I have right ones but still getting the same error. From: [EMAIL PROTECTED] Reply-To: "Struts Users Mailing List" To: "Struts Users Mailing List" CC: user@struts.apache.org Subject: Re: No getter method servlet Exception. using DynaActionForm Date: Wed, 16 Nov 2005

Re: No getter method servlet Exception. using DynaActionForm

2005-11-16 Thread Ext . Ilitia2
bcc: 16/11/2005 15:52 Subject: No getter method servlet Exception. using DynaActionForm Please respond to

No getter method servlet Exception. using DynaActionForm

2005-11-16 Thread fea jabi
I am trying to use the DynaActionForm. initial="true"/> public class PrepareCustAction extends Action { public ActionForward execute(ActionMapping mapping, Ac

Re: How to clear DynaActionForm?

2005-11-09 Thread pc leung
t; even the following cannot clear fields in > > > type="org.apache.struts.validator.DynaValidatorForm" > > > > > > > > > > > DynaActionForm userProfileForm = (DynaActionForm)form; > > ... > > userProfileForm.se

Re: How to clear DynaActionForm?

2005-11-08 Thread Hubert Rabago
he.struts.validator.DynaValidatorForm" > > > > > > DynaActionForm userProfileForm = (DynaActionForm)form; > ... > userProfileForm.set("chiName", ""); > userProfileForm.set("engName", ""); > return mapping.findForward("succes

Re: How to clear DynaActionForm?

2005-11-08 Thread Laurie Harper
HTH, L. pc leung wrote: even the following cannot clear fields in DynaActionForm userProfileForm = (DynaActionForm)form; ... userProfileForm.set("chiName", ""); userProfileForm.set("engName", ""); return ma

Re: How to clear DynaActionForm?

2005-11-08 Thread pc leung
even the following cannot clear fields in DynaActionForm userProfileForm = (DynaActionForm)form; ... userProfileForm.set("chiName", ""); userProfileForm.set("engName", ""); return mapping.findForward(&qu

How to clear DynaActionForm?

2005-11-07 Thread pc leung
struts-config.xml: DispatchAction class: DynaActionForm userProfileForm = (DynaActionForm)form; ... userProfileForm.reset(mapping, request); return mapping.findForward("success"); The reset function does not clear form. How it be cleare

RE: Problem with DynaActionForm in portlets

2005-10-16 Thread Tamilselvan Radha Krishnan
Can any one suggest me whether I can use DynaACtionForm in portlet development? Thanks.. tamil -Original Message- From: Tamilselvan Radha Krishnan [mailto:[EMAIL PROTECTED] Sent: Friday, October 14, 2005 8:18 PM To: Struts Users Mailing List Subject: Problem with DynaActionForm in

Problem with DynaActionForm in portlets

2005-10-14 Thread Tamilselvan Radha Krishnan
Hi, I've used DynaActionForm in websphere portal server while developing portlets. Strangely, I could not able to display the portlet page even there was no fault on our application. When I replaced the DynaActionForm with ActionForm, it worked well. Why it happened? Cant&#

Re: DynaActionForm, Boolean checkboxes, and Initial

2005-10-12 Thread Michael Jouravlev
On 10/12/05, katre <[EMAIL PROTECTED]> wrote: > Michael Jouravlev wrote: > > > More importantly (and getting back to my original question), it means > > > that when using a dyna form, you can't use the initial attribute for > > > properties. You have to write code to set them to the default value

Re: DynaActionForm, Boolean checkboxes, and Initial

2005-10-12 Thread katre
Michael Jouravlev wrote: > > More importantly (and getting back to my original question), it means > > that when using a dyna form, you can't use the initial attribute for > > properties. You have to write code to set them to the default value in > > that separate action (and thus separating the f

Re: DynaActionForm, Boolean checkboxes, and Initial

2005-10-12 Thread Michael Jouravlev
On 10/12/05, katre <[EMAIL PROTECTED]> wrote: > > Um, well, what _I've_ been doing is setting the appropriate ActionForm > > value before I display the form, not in reset but in the Action's > > execute method (reset works too, but because I've never used > > validate="true" I'm doing setup stuff i

Re: DynaActionForm, Boolean checkboxes, and Initial

2005-10-12 Thread katre
Dave Newton wrote: > katre wrote: > > >Right, and this does work, but it requires having a separate action > >leading to every form. > > > > > Why _wouldn't_ forms have separate actions? A lot of my forms (for example, search forms) don't need any special prepopulation (or just get prepopulation

Re: DynaActionForm, Boolean checkboxes, and Initial

2005-10-12 Thread Dave Newton
katre wrote: Right, and this does work, but it requires having a separate action leading to every form. Why _wouldn't_ forms have separate actions? Dave - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands

Re: DynaActionForm, Boolean checkboxes, and Initial

2005-10-12 Thread katre
Dave Newton wrote: > katre wrote: > > >The basic problem, as before, is that it is totally impossible in struts > >to default a checkbox to true, and still be able to detect when it is > >uncheked by a user. > > > > > Wow. All those apps of mine, ruined ;) Well, I figured, since no one replied t

Re: DynaActionForm, Boolean checkboxes, and Initial

2005-10-12 Thread Dave Newton
= AnnouncementTypePeer.retrieveByEventAndType(event_.getEventId(), typeId_); if (anntype == null) { request_.setAttribute("dontShowForm", Boolean.TRUE); // <-- Go ahead, mock me! return errorResourceToInput(request_, mapping_, "annt

Re: DynaActionForm, Boolean checkboxes, and Initial

2005-10-12 Thread katre
Okay, I went back and created the smallest app that shows this problem. It can be downloaded from http://www.henchmonkey.org/struts-test.zip . The basic problem, as before, is that it is totally impossible in struts to default a checkbox to true, and still be able to detect when it is uncheked by

DynaActionForm, Boolean checkboxes, and Initial

2005-10-11 Thread katre
Hello all. In my app, I use the DynaActionForm, because it makes it much easier to declare all the forms I need. However, it is giving me a problem with Boolean type variables used in checkboxes. Specifically, I have the following form-bean: In my JSP, I have: This is properly

Re: DynaActionForm and html:hidden

2005-09-21 Thread Martin Gainty
K- corrections are prefixed by 'Note correction' in both the JSP and struts-config.xml.. Hi All, I am trying to find a way to populate a DynaActionForm after the form has been submitted. For example, I have the following: public class MyBean implements serializable { public S

Re: DynaActionForm and html:hidden

2005-09-21 Thread Jason King
gt; wrote: Hi All, I am trying to find a way to populate a DynaActionForm after the form has been submitted. For example, I have the following: public class MyBean implements serializable { public String name, address; public MyBean() { name = new String(); addre

Re: DynaActionForm and html:hidden

2005-09-21 Thread kandryc
> Are you saying that combination of nested properties and dynaform does > not work for nested fields? > Have you tried this: > > > > > Michael. > > On 9/21/05, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > > Hi All, > > > > I am

Re: DynaActionForm and html:hidden

2005-09-21 Thread Michael Jouravlev
Are you saying that combination of nested properties and dynaform does not work for nested fields? Have you tried this: Michael. On 9/21/05, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > Hi All, > > I am trying to find a way to populate a DynaActionForm after the form has b

DynaActionForm and html:hidden

2005-09-21 Thread kandryc
Hi All, I am trying to find a way to populate a DynaActionForm after the form has been submitted. For example, I have the following: public class MyBean implements serializable { public String name, address; public MyBean() { name = new String(); address = new String

DynaActionForm and Indexed Properties

2005-09-20 Thread Michael Ewers
implementation for testing only // once it works I'll get the existing objects from a DAO object here DynaActionForm userForm = (DynaActionForm) form; userForm.set("id", 0, "0"); userForm.set("username", 0, "user0"); userForm.set("i

ImageButtonBean and DynaActionForm

2005-09-01 Thread Richard Yee
Has anyone used an ImageButtonBean in a DynaActionForm? I'm getting the following error: org.apache.commons.beanutils.ConversionException: Cannot assign value of type 'java.lang.String' to property 'submitButton' of type 'org.apache.struts.util.ImageButtonBea

Reset for DynaActionForm.

2005-08-29 Thread Amol Yadwadkar
Hi List, How shall we reset the DynaActionForm as we do reset while sing Actionform ? Thankx best regds, AMOL YADWADKAR | Software Engineer | M P H A S I S Architecting Value| IT SERVICES 2nd Floor, The Leela Business Park, Andheri Kurla Road, Andheri(E), Mumbai 400059| Tel: 91 22

Image upload and form-property type for form-bean type DynaActionForm

2005-08-17 Thread Massoud Kohan
How could I upload images with struts And in struts-config.xml what is the form-property type for form-bean Thanks, Massoud - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTE

RE: Html:link with DynaActionForm

2005-08-04 Thread Chatzinikos, Fotis, VF-GR Consultant
d ready to the correct action Fotis -Original Message- From: Woodchuck [mailto:[EMAIL PROTECTED] Sent: Wednesday, August 03, 2005 9:16 PM To: Struts Users Mailing List; [EMAIL PROTECTED]; [EMAIL PROTECTED] Subject: Re: Html:link with DynaActionForm hihi, clicking on links (even on a

Re: Html:link with DynaActionForm

2005-08-03 Thread Woodchuck
other matter but when you click the above link an attempt to populate personId, firstName, lastName values into the corresponding ActionForm for myAction will be made (using the JavaBean convention). hth, woodchuck --- Amol Yadwadkar <[EMAIL PROTECTED]> wrote: > Hi List, > > I have

Re: Html:link with DynaActionForm

2005-08-03 Thread Laurie Harper
Amol Yadwadkar wrote: Hi List, I have a form where all the action are provided by link. I am using DynaActionform so when I click on html:link I do not get the Dynaform populated for the next page But If I use use html:submit then it happens as expected. Can any one have solution for

Html:link with DynaActionForm

2005-08-03 Thread Amol Yadwadkar
Hi List, I have a form where all the action are provided by link. I am using DynaActionform so when I click on html:link I do not get the Dynaform populated for the next page But If I use use html:submit then it happens as expected. Can any one have solution for the above issue

RE: DynaActionForm + ActionForm problem.

2005-07-26 Thread Miquel Angel Seguí Munar
Para: Struts Users Mailing List Asunto: Re: DynaActionForm + ActionForm problem. Hi, >I've been writting applications with Struts 1.1 + Tomcat 5.5.9 + Eclipse for >a year. Until now, I've been using ActionForm. Now I want to move to >DynaActionForm. ?Is there any problem in using

Re: DynaActionForm + ActionForm problem.

2005-07-26 Thread Tamas Szabo
Hi, I've been writting applications with Struts 1.1 + Tomcat 5.5.9 + Eclipse for a year. Until now, I've been using ActionForm. Now I want to move to DynaActionForm. ?Is there any problem in using DynaActionForm and ActionForm in the same application (in the same struts-confi

  1   2   3   4   >