Re: Iterate the list of Formbean into jsp file

2010-07-07 Thread Paweł Wielgus
Hi, it's possible, use logic:iterate, also You can read about optionsCollection tag, then there is no need for iterating. Best greetings, Paweł Wielgus. 2010/7/7 rspsaran : > > is it possible to creat arraylist with values in formbean and iterate that > into jsp file using log

Iterate the list of Formbean into jsp file

2010-07-07 Thread rspsaran
is it possible to creat arraylist with values in formbean and iterate that into jsp file using logic tag?. i have created arraylist in my actionform class and i want to iterate that list and add that values into optios box injsp file using logic iterator tag -- View this message in context

Re: action class is a part of controller or model; and what about formBean

2009-10-13 Thread Gregor Marinšek
Well i would say, tha action implementation (action class) is the controller, formBean is in one way the interface between view and controller and model is implementation of some third part (f.e. hibernate)... Thats my view of the 'story'. If i'm wrong, please correct me.

Re: action class is a part of controller or model; and what about formBean

2009-10-12 Thread Arindam Rajbanshi
ya, i understand, but action class is a part of controller or model. and formBean is a part of model or controller. On Mon, Oct 12, 2009 at 3:59 PM, Terry Gardner wrote: > Broadly speaking, the Controller is the filter, the Model is the action, > and the result leads to the View. > >

Re: action class is a part of controller or model; and what about formBean

2009-10-12 Thread Terry Gardner
Broadly speaking, the Controller is the filter, the Model is the action, and the result leads to the View. On Oct 12, 2009, at 5:58 AM, Arindam Rajbanshi wrote: i am doing struts 1.2 . Please tell me action is a part of controller or model. and formbean is a part of controller or model

action class is a part of controller or model; and what about formBean

2009-10-12 Thread Arindam Rajbanshi
i am doing struts 1.2 . Please tell me action is a part of controller or model. and formbean is a part of controller or model. even in the apache document http://struts.apache.org/1.x/userGuide/index.html tehy mentionde bormbean in Building Model Components and Building Controller Components in

Problem resetting the formBean.

2009-06-22 Thread JavierJaramillo
ease if anybody have previously had this problem before. I really appreciate any help. Because this thing is driving me crazy. Thank in advance to anybody who help me. -- View this message in context: http://www.nabble.com/Problem-resetting-the-formBean.-tp24152700p24152700.html Sent from the Struts

Problem with FormBean containing Lists of LabelValueBeans or something equivalent

2008-07-04 Thread Erik Panzer
Hi all, I have a problem mapping my form bean to a jsp that contains javascript to add html inputs dynamically. I already found out that i can use BeanUtils to add the input values to an ArrayList like this public void setProperty(int iIndex, String inputString) { this.propertyList.add(i

Re: populate formbean from jsp

2008-01-22 Thread Laurie Harper
Hans Hedung wrote: In my frombean I have the values String reportName = ""; String reportDescription = ""; With approiate getters and setter Im populating the reportName value in my formbean through the following in my jsp (dropdown) <% java.util.Arr

populate formbean from jsp

2008-01-22 Thread Hans Hedung
In my frombean I have the values String reportName = ""; String reportDescription = ""; With approiate getters and setter Im populating the reportName value in my formbean through the following in my jsp (dropdown) <% java.util.ArrayList rep

Re: formBean I18N

2007-12-14 Thread Alberto A. Flores
the reset() of a formBean be internationalized? I can do it on the jsp. However how do I refer to the correct language message resource bundle in the formBean itself? tia -- Alberto A. Flores http://www.linkedin.com/in/aflores

Re: formBean I18N

2007-12-14 Thread Chris Pat
locale)? Chris Pat wrote: > Hello > Is it possible to have the reset() of a formBean be internationalized? I can > do it on the jsp. However how do I refer to the correct language message > resource bundle in the formBean itself? tia > -- Alberto A. Flores htt

Re: formBean I18N

2007-12-14 Thread Alberto A. Flores
Do you mean changing the name of the method? Or calling the resource bundle to generate a string (using the proper locale)? Chris Pat wrote: Hello Is it possible to have the reset() of a formBean be internationalized? I can do it on the jsp. However how do I refer to the correct language

formBean I18N

2007-12-14 Thread Chris Pat
Hello Is it possible to have the reset() of a formBean be internationalized? I can do it on the jsp. However how do I refer to the correct language message resource bundle in the formBean itself? tia

Re: Formbean scope

2007-07-27 Thread Dave Newton
--- John Mammen <[EMAIL PROTECTED]> wrote: > I'm just starting on struts. I wanted to know if a > formbean instance that has been declared with > request scope can be accessed in a subsequent > request. > > I.e. > > Instance of Formbean A (Request scope

Formbean scope

2007-07-27 Thread John Mammen
Hi, I'm just starting on struts. I wanted to know if a formbean instance that has been declared with request scope can be accessed in a subsequent request. I.e. Instance of Formbean A (Request scope) --> Used to populate JSP page A --> Action B (Will the same instance of Formbe

Re: How to populate Collection element of FormBean on Submit

2007-06-15 Thread Nicolás Pace
On 6/15/07, Nagesh Kumar Suravarjula <[EMAIL PROTECTED]> wrote: Hi I have a Collection Element in my Form Bean whose elements are displayed in a table in JSP . Also, I have a hidden variable in my JSP whose values are coming from this Collection Element. I do have a reset method in my form bea

Re: How to pass a javascript array to formbean array ?

2007-05-16 Thread Aviskaos
Thank you for your help. It works fine for me! Thomas Ramapuram escribió: We do this quite often. We have a method which goes through the array and inserts the elements as new dom input objects of type hidden and name the name of the element in the form bean with an array index. eg. do this

Re: How to pass a javascript array to formbean array ?

2007-05-15 Thread Thomas Ramapuram
We do this quite often. We have a method which goes through the array and inserts the elements as new dom input objects of type hidden and name the name of the element in the form bean with an array index. eg. do this for all the properties for each element in your array and you will have th

Re: java.util.List in FormBean

2007-05-15 Thread Laurie Harper
zuban wrote: Hi, in a FromBean I have a java.util.List (to populate a ). If I submit the form the List is set to null. For String datatypes I would use hidden input fields to solve this. But what should I do by a List? You can either reload the list each time the action is invoked or, if you r

Re: How to pass a javascript array to formbean array ?

2007-05-15 Thread Frank W. Zammetti
" (2007, Apress, ISBN 1-59059-816-4) Java Web Parts - http://javawebparts.sourceforge.net Supplying the wheel, so you don't have to reinvent it! On Tue, May 15, 2007 2:53 pm, Aviskaos wrote: > Sorry the var name in the jsp is > var myArray = new Array() > > > &g

Re: How to pass a javascript array to formbean array ?

2007-05-15 Thread Aviskaos
Sorry the var name in the jsp is var myArray = new Array() Aviskaos escribió: Hi! In my formbean i have this property: private String[] values; public String[] getValues() { return values; } public void setValues(String[] values) { this.values

How to pass a javascript array to formbean array ?

2007-05-15 Thread Aviskaos
Hi! In my formbean i have this property: private String[] values; public String[] getValues() { return values; } public void setValues(String[] values) { this.values = values; } Late, in my jsp, i have a global javascript

java.util.List in FormBean

2007-05-11 Thread zuban
Hi, in a FromBean I have a java.util.List (to populate a ). If I submit the form the List is set to null. For String datatypes I would use hidden input fields to solve this. But what should I do by a List? -- View this message in context: http://www.nabble.com/java.util.List-in-FormBean

Help: Populate DB Data into FormBean

2007-03-12 Thread Davis, John \(Lynch\)
Hi all, I'm just getting started with Struts 1.3.x and I've run into a problem I just can't seem to find a way to tackle. I am simply trying to load data from a database and populate it in a form-bean. The flow is like this: 1. user logs in 2. authenticate user

Re: [s2] formbean reset() equivalent?

2007-02-20 Thread Dave Newton
--- "C. Adams" <[EMAIL PROTECTED]> wrote: > I was just going directly to the jsp with the form, > like I used to in struts 1.x. It looks like the > preferred way to do it now is to wildcard the action > name, add a input result, and then access the form > via myActionName_input.action > > This is

Re: [s2] formbean reset() equivalent?

2007-02-20 Thread C. Adams
I was just going directly to the jsp with the form, like I used to in struts 1.x. It looks like the preferred way to do it now is to wildcard the action name, add a input result, and then access the form via myActionName_input.action This is working fine. Is this the preferred method? On 2/20/0

Re: [s2] formbean reset() equivalent?

2007-02-20 Thread Dave Newton
--- "C. Adams" <[EMAIL PROTECTED]> wrote: > Maybe it should, but it doesn't. The value of test > is always blank, and a println I put in the getter > does not show up in the log. I don't thing the > action is being instantiated until after the form is > submitted. Actions are instantiated per-req

Re: [s2] formbean reset() equivalent?

2007-02-20 Thread C. Adams
Maybe it should, but it doesn't. The value of test is always blank, and a println I put in the getter does not show up in the log. I don't thing the action is being instantiated until after the form is submitted. On 2/17/07, Laurie Harper <[EMAIL PROTECTED]> wrote: Mailing Lists wrote: > How d

Re: [s2] formbean reset() equivalent?

2007-02-17 Thread Laurie Harper
Mailing Lists wrote: How do you initialize values to use in a form? I tried just initializing the value in the action and referencing it in the form, but the value is not set. In action: private String test = "tesing"; in form: That should work fine, provided you have a getter for the 'te

[s2] formbean reset() equivalent?

2007-02-16 Thread Mailing Lists
How do you initialize values to use in a form? I tried just initializing the value in the action and referencing it in the form, but the value is not set. In action: private String test = "tesing"; in form:

Re: Struts-Faces: FormBean and ManagedBean

2007-02-02 Thread Rodrigo Pereira
>> Regards, >> Peter. >> >> Rodrigo Pereira wrote: Hi all, >> is it possible for a class to play both roles: Struts FormBean, and >> JSF ManagesBean? >> I mean, can I declare it on faces-config.xml, and struts-config.xml? >> >> Thanks, >

Re: Struts-Faces: FormBean and ManagedBean

2007-02-01 Thread PETER BLIZNAK
e managedBean - any "ordinary" bean would do - so >> you can use your actionForm bean for dataTable. It works well for me. >> Regards, >> Peter. >> >> Rodrigo Pereira wrote: Hi all, >> is it possible for a class to play b

Re: Struts-Faces: FormBean and ManagedBean

2007-02-01 Thread Rukka
a case you don't have to use managedBean - any "ordinary" bean would do - so you can use your actionForm bean for dataTable. It works well for me. Regards, Peter. Rodrigo Pereira wrote: Hi all, is it possible for a class to play both roles: Struts FormBean, and JSF ManagesBean? I m

Re: Struts-Faces: FormBean and ManagedBean

2007-02-01 Thread PETER BLIZNAK
gards, > Peter. > > Rodrigo Pereira wrote: Hi all, > is it possible for a class to play both roles: Struts FormBean, and > JSF ManagesBean? > I mean, can I declare it on faces-config.xml, and struts-config.xml? > > Thanks, > Rodrigo Pereira > > ---

Re: Struts-Faces: FormBean and ManagedBean

2007-02-01 Thread Rodrigo Pereira
t; bean would do - so you can use your actionForm bean for dataTable. It works well for me. Regards, Peter. Rodrigo Pereira <[EMAIL PROTECTED]> wrote: Hi all, is it possible for a class to play both roles: Struts FormBean, and JSF ManagesBean? I mean, can I declare it on faces-config.xml, and

Re: Struts-Faces: FormBean and ManagedBean

2007-02-01 Thread PETER BLIZNAK
t;ordinary" bean would do - so you can use your actionForm bean for dataTable. It works well for me. Regards, Peter. Rodrigo Pereira <[EMAIL PROTECTED]> wrote: Hi all, is it possible for a class to play both roles: Struts FormBean, and JSF ManagesBean? I mean, can I declare it on faces-c

Struts-Faces: FormBean and ManagedBean

2007-02-01 Thread Rodrigo Pereira
Hi all, is it possible for a class to play both roles: Struts FormBean, and JSF ManagesBean? I mean, can I declare it on faces-config.xml, and struts-config.xml? Thanks, Rodrigo Pereira - To unsubscribe, e-mail: [EMAIL

RE: [S2] How to separate Action from "FormBean"

2007-01-08 Thread Wesslan
>To answer that part: not that I know of, but the existing WebWork in Action from Manning is very good, and applies equally well to Struts 2 with minor adjustments for package renaming etc. Maybe it's time to create a web forum for Struts 2 and make a sticky thread that says "Read Webwork in Actio

Re: [S2] How to separate Action from "FormBean"

2007-01-08 Thread Laurie Harper
[EMAIL PROTECTED] wrote: Further, is are there any plans/release dates for a book on Struts 2? To answer that part: not that I know of, but the existing WebWork in Action from Manning is very good, and applies equally well to Struts 2 with minor adjustments for package renaming etc. L. --

Re: [S2] How to separate Action from "FormBean"

2007-01-08 Thread cilquirm
Dariusz Wojtas wrote: > > Want to have a bean separate from the action and just reference it? > Define your bean (whatever you want) and just declare it as a variable > on your action. > Nothing more. > Add getter and setter. > > class MyAction ... { >private MyBeanClass myBean; > > } >

Re: [S2] How to separate Action from "FormBean"

2007-01-07 Thread Dariusz Wojtas
I work with struts2 for about a month and it is perfectly stable. The only 'issues' I could see were related to it's ajax support - but it already works perfectly in most areas, and the issues being found are quickly examined by the struts team. It's definitely worth to try it. It's simpler than

Re: [S2] How to separate Action from "FormBean"

2007-01-07 Thread uni
Dariusz Wojtas <[EMAIL PROTECTED]> wrote: > Want to have a bean separate from the action and just reference it? > Define your bean (whatever you want) and just declare it as a variable > on your action. Thanks Dariusz. That's exactly what I was looking for. Looks like I should definitely give S2 a

Re: [S2] How to separate Action from "FormBean"

2007-01-07 Thread Dariusz Wojtas
Want to have a bean separate from the action and just reference it? Define your bean (whatever you want) and just declare it as a variable on your action. Nothing more. Add getter and setter. class MyAction ... { private MyBeanClass myBean; } in your JSP just prefix bean components with the b

[S2] How to separate Action from "FormBean"

2007-01-07 Thread uni
I just took a look at the tutorials of Struts 2 today. As a Struts 1 user, I don't like form beans that mostly copy your business data beans. In Struts 2, you don't need form beans anymore, but the tutorial states that you have to implement an execute() method into your business bean. Actually, wha

Re: Formbean information lost

2006-12-26 Thread Thomas Thomas
Thank u ! it works great :-)

Re: Formbean information lost

2006-12-25 Thread Chris Pratt
Try using the tag instead of the tag, that way Struts has some control. (*Chris*) On 12/16/06, Thomas Thomas <[EMAIL PROTECTED]> wrote: Thank u very much Miss Harper. I think it's due to this code, and I don't really know a good way to rectify this : Jour Moi

Re: Formbean information lost

2006-12-16 Thread Thomas Thomas
Thank u very much Miss Harper. I think it's due to this code, and I don't really know a good way to rectify this : Jour Mois Thank u very much for your support.

Re: Formbean information lost

2006-12-15 Thread Laurie Harper
Thomas Thomas wrote: Hi, If I fill my form with, for example, "xyz" as login, and if there is an error, "xyz" will stay in the textfield, (for some reason, as additional question if u can say me why that happen, would be great) It's a function of the design of Struts. When you form is submitte

Re: getting formbean properties in Action class

2006-12-09 Thread Chris Pratt
change"); PropertyUtils.seetSimpleProperty(aForm, "exchange","NASDAQ"); Thanks, Nuwan. - Original Message - From: "Thomas Thomas" <[EMAIL PROTECTED]> To: "Struts Users Mailing List" Sent: Sunday, December 03, 2006 2:35 PM Subject: getti

Re: getting formbean properties in Action class

2006-12-03 Thread Nuwan Chandrasoma
ruts Users Mailing List" Sent: Sunday, December 03, 2006 2:35 PM Subject: getting formbean properties in Action class Hi, To get the properties these two ways work : 1) System.out.println("lastName = " + custForm.get("login")); 2) System.out.println("la

getting formbean properties in Action class

2006-12-03 Thread Thomas Thomas
Hi, To get the properties these two ways work : 1) System.out.println("lastName = " + custForm.get("login")); 2) System.out.println("lastName = " + request.getParameter("login")); Why should I use 1) rather than 2) ? Thank u.

Re: problem in formbean

2006-11-30 Thread thamizh arasu
Hi Prem, At the time of landing the page, you are showing some values. That values are taken from DB. Once error coming you are redirecting to the same page. but with the error value. This is your problem right? this can be easily solved. you are showing the values taken from formbean. At

Re: problem in formbean

2006-11-30 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 prkumar, prkumar_1234 wrote: > 1) in jsp iam displaying values from javabean in textboxes.(i can > change > these values) > 2) when i submit with modified values , iam doing validation in > formbean. > 3) When validatio fails i

RE: problem in formbean

2006-11-30 Thread Saeed, Rada
che.org Subject: problem in formbean I got some problem in struts can you please help me. 1) in jsp iam displaying values from javabean in textboxes.(i can change these values) 2) when i submit with modified values , iam doing validation in formbean. 3) When validatio fails i formbean returning

Re: problem in formbean

2006-11-29 Thread James Mitchell
elp me. 1) in jsp iam displaying values from javabean in textboxes.(i can change these values) 2) when i submit with modified values , iam doing validation in formbean. 3) When validatio fails i formbean returning to same jsp but it is displaying old values not modified values can you give me som

problem in formbean

2006-11-29 Thread prkumar_1234
I got some problem in struts can you please help me. 1) in jsp iam displaying values from javabean in textboxes.(i can change these values) 2) when i submit with modified values , iam doing validation in formbean. 3) When validatio fails i formbean returning to same jsp but it is displaying old

Re: How to access formbean of another action class

2006-11-22 Thread Nuwan Chandrasoma
o: "Struts Users Mailing List" Sent: Thursday, November 23, 2006 6:29 AM Subject: How to access formbean of another action class Hi, I hava a action class "A" , which based on the value in it's form bean takes an appropriate action.. Now, I have an another action cla

How to access formbean of another action class

2006-11-22 Thread Sheetal Gupta
Hi, I hava a action class "A" , which based on the value in it's form bean takes an appropriate action.. Now, I have an another action class(B), which would explicitly invoke action class A. But the problem is how do i get a reference of form bean of " A", SO THAT i CAN MANUALLY SET . the p

Vector in FormBean

2006-09-08 Thread Vikas Phonsa
Hi Everybody, I'm using Struts 1.2. On my JSP, I have two buttons: Generate Report and Print Report. On the click of the "Generate Report", I need to generate a variable length table on the JSP using data from a database and on the click of "Print Report", I need to take the data in the

formbean

2006-07-14 Thread Abhimanyu Koul
hi all! How can I access a particular formbean among a list in a jsp. also how can i access a particular value(using getter and setter) of a formbean in the list inside a jsp fileThanks and Regards, Abhimanyu Koul

formbean - urgent

2006-07-14 Thread Abhimanyu Koul
hi all! How can I access a particular formbean among a list in a jsp. also how can i access a particular value(using getter and setter) of a formbean in the list inside a jsp file Thanks and Regards,Abhimanyu KoulFinEng Solutions (P) Ltd.# +91 22 66950676 Extn. 212 DISCLAIMER This e-mail

Re: repopulating fields from an array in a formbean

2006-07-05 Thread Michael Jouravlev
ot;best practices" solution. My requirement is pretty simple: you click on a category link, the action builds the List of items for that category, and the JSP iterates them and shows quantity input fields using . That's fine. It matches up with a String[] quantity property in the formbean

repopulating fields from an array in a formbean

2006-07-05 Thread struts
them and shows quantity input fields using . That's fine. It matches up with a String[] quantity property in the formbean class (I'm not using dynabeans). The user enters quantities, and clicks the "Add to Order" submit button. If the quantities they entered pass formbean v

storing values in the formbean

2006-06-05 Thread Shasirekha Engala
hi I have some doubts regarding the storage of objects in a vector declared in the struts-config.xml. I am using DynaActionForms and the problem is, I have declared a vector named hiddedFieldVector in struts-config.xml as This vector has not been initialised any where. I

RE: What is the reason behind sharing the same formbean by multiple actions

2006-05-17 Thread Chaudhary, Harsh
is the reason behind sharing the same formbean by multiple actions Is there any response on this? Thanks. Carl Smith <[EMAIL PROTECTED]> wrote: Can you folks comment on the reason behind sharing the same form bean by multiple actions: (1) so that the receive action can see the data for

Re: What is the reason behind sharing the same formbean by multiple actions

2006-05-17 Thread Carl Smith
Is there any response on this? Thanks. Carl Smith <[EMAIL PROTECTED]> wrote: Can you folks comment on the reason behind sharing the same form bean by multiple actions: (1) so that the receive action can see the data for submit action (2) sharing the data across the page navigation? more ?

What is the reason behind sharing the same formbean by multiple actions

2006-05-17 Thread Carl Smith
Can you folks comment on the reason behind sharing the same form bean by multiple actions: (1) so that the receive action can see the data for submit action (2) sharing the data across the page navigation? more ? Thanks. - Yahoo

RE: FormBean issue

2006-05-05 Thread Vikas Phonsa
- From: Tamas Szabo [mailto:[EMAIL PROTECTED] Sent: Friday, May 05, 2006 2:14 AM To: Struts Users Mailing List Subject: Re: FormBean issue Hi! But my code (shown above), would get the value from database anytime the > chargeFee==0. > > > > So how do I distinguish between

Re: FormBean issue

2006-05-05 Thread Tamas Szabo
Hi! But my code (shown above), would get the value from database anytime the chargeFee==0. So how do I distinguish between the two cases? 1. When the chargeFee came as 0 because the default is 0 and the user had not entered any value. 2. When the chargeFee came as 0 because the u

FormBean issue

2006-05-04 Thread Vikas Phonsa
Hi Everybody, My form bean has a BigDecimal field called chargeFee with default value of 0 (new BigDecimal(0)). This field directly maps to an html text field on my web page. The web page looks something like this Client ID = Credit Amount= Charge Fee= Final Credit Amount= (Credit A

Re: formbean of double type value chages when submitting the form

2006-03-24 Thread Hubert Rabago
which is wrong. > > I think I am missing something here. > > Please, explain. thanks. > > > > >From: "Hubert Rabago" <[EMAIL PROTECTED]> > >Reply-To: "Struts Users Mailing List" > >To: "Struts Users Mailing List" > >Subj

Re: formbean of double type value chages when submitting the form

2006-03-24 Thread Michael Jouravlev
On 3/24/06, fea jabi <[EMAIL PROTECTED]> wrote: > BeanUtils.copyProperties(myBusinessBean,form)) is copying DynaValidatorForm > String values to the myBusinessBean which is having the right data types. > > But in validator.xml, I am validating the DynaValidatorForm properties to > check if user is

Re: formbean of double type value chages when submitting the form

2006-03-24 Thread fea jabi
. I think I am missing something here. Please, explain. thanks. From: "Hubert Rabago" <[EMAIL PROTECTED]> Reply-To: "Struts Users Mailing List" To: "Struts Users Mailing List" Subject: Re: formbean of double type value chages when submitting the form Date:

Re: formbean of double type value chages when submitting the form

2006-03-24 Thread Hubert Rabago
On 3/24/06, fea jabi <[EMAIL PROTECTED]> wrote: > thankyou for your response and clear expaination. > > If I use String for the formbean do I have to convert it to Double before i > validate? > > Is there an easier way to convert all form-properties in the form

Re: formbean of double type value chages when submitting the form

2006-03-24 Thread Hubert Rabago
On 3/24/06, Rahul Akolkar <[EMAIL PROTECTED]> wrote: > On 3/24/06, Hubert Rabago <[EMAIL PROTECTED]> wrote: > > You know, you're right. I don't know why we list those there since > > DynaActionForm can support any type. (pause, think.) > > > The intent probably was to mention that those converte

Re: formbean of double type value chages when submitting the form

2006-03-24 Thread fea jabi
thankyou for your response and clear expaination. If I use String for the formbean do I have to convert it to Double before i validate? Is there an easier way to convert all form-properties in the form at the same time? Thanks. From: "Hubert Rabago" <[EMAIL PROTECTED]> R

Re: formbean of double type value chages when submitting the form

2006-03-24 Thread Rahul Akolkar
On 3/24/06, Hubert Rabago <[EMAIL PROTECTED]> wrote: > You know, you're right. I don't know why we list those there since > DynaActionForm can support any type. (pause, think.) The intent probably was to mention that those converters are *guaranteed* to be available (since they exist in BeanUti

Re: formbean of double type value chages when submitting the form

2006-03-24 Thread Hubert Rabago
You know, you're right. I don't know why we list those there since DynaActionForm can support any type. (pause, think.) Hmm, maybe next week I'll find time to fix that. (Patches to docs are welcome!) Anyway, I think you missed a statement a few paragraphs down the same section: "And, of course,

Re: formbean of double type value chages when submitting the form

2006-03-24 Thread fea jabi
Short java.lang.String java.sql.Date java.sql.Time java.sql.Timestamp Thanks. From: Laurie Harper <[EMAIL PROTECTED]> Reply-To: "Struts Users Mailing List" To: user@struts.apache.org Subject: Re: formbean of double type value chages when submitting the form Date: Thu, 23 Mar 2006 23:

Re: formbean of double type value chages when submitting the form

2006-03-23 Thread Laurie Harper
fea jabi wrote: In struts config type="org.apache.struts.validator.DynaValidatorForm" dynamic="true"> .. ... ... In prepare action I am not doing anything with the data. IN JSP validation.xml

Re: formbean of double type value chages when submitting the form

2006-03-23 Thread Laurie Harper
fea jabi wrote: In struts config type="org.apache.struts.validator.DynaValidatorForm" dynamic="true"> .. ... ... In prepare action I am not doing anything with the data. IN JSP validation.xml

formbean of double type value chages when submitting the form

2006-03-23 Thread fea jabi
In struts config dynamic="true"> . .. .. In prepare action I am not doing anything with the data. IN JSP validation.xml Dispatch action : public Acti

Re: How to use a POJO inside Struts FormBean?

2006-01-16 Thread Laurie Harper
is problem does occur. But why? Does reflection not work when only one character is changed? Thanks, Karan -Original Message- From: Rick R [mailto:[EMAIL PROTECTED] Sent: Thursday, January 12, 2006 5:34 PM To: Struts Users Mailing List Subject: Re: How to use a POJO inside Struts

RE: How to use a POJO inside Struts FormBean?

2006-01-16 Thread Gupta, Karan
Sent: Thursday, January 12, 2006 5:34 PM To: Struts Users Mailing List Subject: Re: How to use a POJO inside Struts FormBean? Gupta, Karan wrote: > / CLASS IDefForm ***/ > public class IDefForm extends ActionForm > { > > private IDef iDef; Did you try renami

Re: How to use a POJO inside Struts FormBean?

2006-01-12 Thread Rick R
Nevermind. I see that your last reply Karan somehow got knocked out of this thread. (Possibly you started a new message and just pasted in the subject? since it ended up with a different MessageID in the header which is what my Thunderbird client uses for threading). Rick R wrote: Gupta, Kara

Re: How to use a POJO inside Struts FormBean?

2006-01-12 Thread Rick R
Gupta, Karan wrote: / CLASS IDefForm ***/ public class IDefForm extends ActionForm { private IDef iDef; Did you try renaming the property like Hubert suggested? If not, that iDef will DEFINITELY cause the problem that you mention. Change private IDef iDef; to something like IDef i

RE: How to use a POJO inside Struts FormBean?

2006-01-12 Thread Gupta, Karan
FormBean? You'll need to rename your "iDef" property if that is what you're calling it, via getIDef/setIDef. That pair will result in a property name of "IDef". If you'd rather not change your accessor methods, then use "IDef.partNumber" instea

RE: How to use a POJO inside Struts FormBean?

2006-01-12 Thread Gupta, Karan
truts Users Mailing List Subject: Re: How to use a POJO inside Struts FormBean? On Thu, 2006-01-12 at 15:15 -0800, Gupta, Karan wrote: > > I get this exception: > javax.servlet.ServletException: No getter method for property > iDef.partNumber of bean org.apache.struts.taglib.html.

Re: How to use a POJO inside Struts FormBean?

2006-01-12 Thread Hubert Rabago
always returns a non-null result. Hubert On 1/12/06, Gupta, Karan <[EMAIL PROTECTED]> wrote: > Hi, > > I am trying to use a POJO inside a Struts (1.2.7) FormBean, > but I am unable to access the fields inside the POJO. > > package com.fmm.web.inventory.forms; > public cl

Re: How to use a POJO inside Struts FormBean?

2006-01-12 Thread Torgeir Veimo
On Thu, 2006-01-12 at 15:15 -0800, Gupta, Karan wrote: > > I get this exception: > javax.servlet.ServletException: No getter method for property > iDef.partNumber of bean org.apache.struts.taglib.html.BEAN > > So what is the way to achieve what I am trying to do? > What am I doing wrong? Probab

How to use a POJO inside Struts FormBean?

2006-01-12 Thread Gupta, Karan
Hi, I am trying to use a POJO inside a Struts (1.2.7) FormBean, but I am unable to access the fields inside the POJO. package com.fmm.web.inventory.forms; public class IDefForm extends ActionForm { private IDef iDef; private List inventoryDefinitions; ...getters ..and

Re: NewB: Struts FormFile and Session scope FormBean

2005-12-24 Thread Rahul Akolkar
wrote: > > > > Kedar Panse wrote: > > > Hello gurus, > > > > > > I want to use a wizard type of flow where in one screen there is File > > > Upload. As this is wizard, i was using session scoped formbean with > > one > > > property formfil

Re: NewB: Struts FormFile and Session scope FormBean

2005-12-23 Thread Kedar Panse
: > > Kedar Panse wrote: > > Hello gurus, > > > > I want to use a wizard type of flow where in one screen there is File > > Upload. As this is wizard, i was using session scoped formbean with > one > > property formfile. But seems like formfile is not serial

Re: NewB: Struts FormFile and Session scope FormBean

2005-12-22 Thread Laurie Harper
Kedar Panse wrote: Hello gurus, I want to use a wizard type of flow where in one screen there is File Upload. As this is wizard, i was using session scoped formbean with one property formfile. But seems like formfile is not serializable. What is proper way of handling this? Given that a

NewB: Struts FormFile and Session scope FormBean

2005-12-22 Thread Kedar Panse
Hello gurus, I want to use a wizard type of flow where in one screen there is File Upload. As this is wizard, i was using session scoped formbean with one property formfile. But seems like formfile is not serializable. What is proper way of handling this? Thanks! Kedar

RE: accessing from jsp to the size of a list property of my FormBean

2005-11-07 Thread Scott Piker
Look at the and tags... I think that's what you need. > -Original Message- > From: arnaud gonzales [mailto:[EMAIL PROTECTED] > Sent: Monday, November 07, 2005 12:42 PM > To: user@struts.apache.org > Subject: accessing from jsp to the size of a list property of >

accessing from jsp to the size of a list property of my FormBean

2005-11-07 Thread arnaud gonzales
Hello, I would like to do something in my jsp if the size of the list property 'LAdressesLivraison' of my Form bean 'CreateAccesForm' is greater than 0: I can't have the size of my list like this do something thanks in advance -- Cordialement, Arnaud Gonzales.

reset method of formbean

2005-08-10 Thread temp temp
I have an action which has a formbean in session scope . I want to reset this formbean whenever request is made to this action with a request parameter (say refresh). I have a reset method in the formbean which sets all the properties of this bean to null. In the action class I look

Re: Preload FormBean

2005-07-10 Thread Wendy Smoak
From: "Sagar Naik" <[EMAIL PROTECTED]> I have to edit some data in the form. So I have to load the text fields in the form with some data values from a Database Table Record. Can I do tht initializing the bean object and give it to struts to display the values ? Yes, though the answer comes fr

  1   2   >