Re: Struts form bean behaviour changes after 2.5.22

2020-11-09 Thread Martin Gainty
can you provide example of this behaviour? regards From: Gokul Raj Sent: Saturday, November 7, 2020 5:20 AM To: Struts Users Mailing List Subject: Struts form bean behaviour changes after 2.5.22 Hello, After upgrade 2.5.22 we are facing a kind of issue, form

Re: Struts form bean behaviour changes after 2.5.22

2020-11-08 Thread Lukasz Lenart
pon., 9 lis 2020 o 04:53 Gokul Raj napisał(a): > > I have upgraded from 2.3 to 2.5. Also, It is not occurring frequently. Did you review the migration guide? https://cwiki.apache.org/confluence/display/WW/Struts+2.3+to+2.5+migration#Struts2.3to2.5migration-NewLocaleawareconversionlogic This is d

Re: Struts form bean behaviour changes after 2.5.22

2020-11-08 Thread Gokul Raj
I have upgraded from 2.3 to 2.5. Also, It is not occurring frequently. On Sat, 7 Nov 2020 at 18:34, Lukasz Lenart wrote: > sob., 7 lis 2020 o 11:21 Gokul Raj napisał(a): > > After upgrade 2.5.22 we are facing a kind of issue, form beans remove > > decimal points. Does anyone face such an issue?

Re: Struts form bean behaviour changes after 2.5.22

2020-11-07 Thread Lukasz Lenart
sob., 7 lis 2020 o 11:21 Gokul Raj napisał(a): > After upgrade 2.5.22 we are facing a kind of issue, form beans remove > decimal points. Does anyone face such an issue? Could you provide more details? From which version did you upgrade to 2.5.22? Regards -- Łukasz + 48 606 323 122 http://www.l

Struts form bean behaviour changes after 2.5.22

2020-11-07 Thread Gokul Raj
Hello, After upgrade 2.5.22 we are facing a kind of issue, form beans remove decimal points. Does anyone face such an issue? -- Regards Gokul

RE: Struts Action Form bean population problem

2011-08-04 Thread Mahamuni, Prashant X
Please make sure that you have getter setters in the action class. -Original Message- From: arnab.gho...@cognizant.com [mailto:arnab.gho...@cognizant.com] Sent: Thursday, August 04, 2011 2:33 AM To: user@struts.apache.org Subject: Struts Action Form bean population problem Hi Friends

Re: Struts Action Form bean population problem

2011-08-04 Thread Dave Newton
On Thu, Aug 4, 2011 at 3:33 AM, wrote: > Not sure why it is not populating the action form. Without any further information it's impossible to help. Dave - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additio

Struts Action Form bean population problem

2011-08-04 Thread Arnab.Ghosh6
Hi Friends, I am having a strange problem. I am sending a post request to a struts action. The action class is associated with a actionform. But the problem is those values is not getting populated in the form. I have followed the correct bean spec and we are getting the values from request par

Re: Change form bean properties in JSP

2010-05-20 Thread Robert Graf-Waczenski
Am 20.05.2010 13:16, schrieb Manoj Singh: Hi, Thanks for your reply. Please let me know how to do it? Thanks, Manoj On Thu, May 20, 2010 at 4:42 PM, Robert Graf-Waczenskiwrote: Am 20.05.2010 12:50, schrieb Manoj Singh: Hi, Is it possible to change the value of form bean

Re: Change form bean properties in JSP

2010-05-20 Thread Manoj Singh
Hi, Thanks for your reply. Please let me know how to do it? Thanks, Manoj On Thu, May 20, 2010 at 4:42 PM, Robert Graf-Waczenski wrote: > Am 20.05.2010 12:50, schrieb Manoj Singh: > > Hi, >> >> Is it possible to change the value of form bean properties in JSP Page? >

Re: Change form bean properties in JSP

2010-05-20 Thread Robert Graf-Waczenski
Am 20.05.2010 12:50, schrieb Manoj Singh: Hi, Is it possible to change the value of form bean properties in JSP Page? If yes, then please let me know. Thanks, Manoj Yes. - To unsubscribe, e-mail: user-unsubscr

Change form bean properties in JSP

2010-05-20 Thread Manoj Singh
Hi, Is it possible to change the value of form bean properties in JSP Page? If yes, then please let me know. Thanks, Manoj

Re: Error creating form bean - struts 1.2 + weblogic 8.1 + myeclipse 5.5

2010-04-08 Thread Nanu Khota
t and start coding in 10 mins>> On 1 April 2010 17:29, Nanu Khota <nanukh...@rediffmail.com> wrote:> >>>>>-- Forwarded message -->From: "Panchal, Ashish IN GGN SISL" <ashish.panc...@siemens.com>>To: "nanukh...@rediffmail.c

Re: Resetting session scope form bean values

2010-04-03 Thread Dave Newton
pundarik rajkhowa wrote: After I submit the form and open it again for new data entry, the form retains its old values. If I call form.reset(), it fails to clear the bean. Do I need to override the reset method and manually clear values of all bean elements? Yes--that is the purpose of the rese

Resetting session scope form bean values

2010-04-02 Thread pundarik rajkhowa
Hi, I have a data entry form implemented as a DynaActionForm form bean in session scope. After I submit the form and open it again for new data entry, the form retains its old values. If I call form.reset(), it fails to clear the bean. Do I need to override the reset method and manually clear

Error creating form bean - struts 1.2 + weblogic 8.1 + myeclipse 5.5

2010-04-01 Thread Nanu Khota
creating form bean of class com.abc.struts.form.LoginForm java.lang.NullPointerException at org.apache.struts.config.FormBeanConfig.createActionForm(FormBeanConfig.java:212) at org.apache.struts.util.RequestUtils.createActionForm(RequestUtils.java:292) at

Error creating form bean - nullpointerexception - struts 1.2 + weblogic 8.1 + myeclipse 5.5

2010-04-01 Thread Nanu Khota
Hi All, I am a newbee to struts and trying some hands on it. I was just trying to develop a simple login form but getting following exception on initial run itself. - SEVERE: Error creating form bean of

RE: Error creating form bean struts 1.2 + weblogic 8.1 + myeclipse 5.5

2010-04-01 Thread adam pinder
seems like form definition isn't in struts config file or properly defined > Date: Thu, 1 Apr 2010 11:45:42 + > To: user@struts.apache.org > Subject: Error creating form bean struts 1.2 + weblogic 8.1 + myeclipse 5.5

Error creating form bean - struts 1.2 + weblogic 8.1 + myeclipse 5.5

2010-04-01 Thread Vivek Gupta
Hi All, I am a newbee to struts and trying some hands on it. I was just trying to develop a simple login form but getting following exception on initial run only. - SEVERE: Error creating form bean of

Error creating form bean - struts 1.2 + weblogic 8.1 + myeclipse 5.5

2010-04-01 Thread nanukhota
Hi All, I am a newbee to struts and trying some hands on it. I was just trying to develop a simple login form but getting following exception on initial run only. - SEVERE: Error creating form bean of

Error creating form bean struts 1.2 + weblogic 8.1 + myeclipse 5.5

2010-04-01 Thread Nanu Khota
Hi All, I am a newbee to struts and trying some hands on it. I was just trying to develop a simple login form but getting following exception on initial run only. - SEVERE: Error creating form bean of

how to generate the form-bean definition real time

2008-11-14 Thread caultonpos
form automatically for you as well but any way I can get the form bean out of the struts config file to be read from the database real time ? -- View this message in context: http://www.nabble.com/how-to-generate-the-form-bean-definition-real-time-tp20501828p20501828.html Sent from the Struts -

FireFox 3 and Form Bean in Session

2008-08-04 Thread Balwinder
Hi All, In my development, I put a form bean into session scope, when I access the page in Firefox 3, it is retaining the values of this form bean even if I log out and login as a different user, when I just wanted to retain the values in the same login session. This is not the case if I

Re: Action form bean values in javascript

2008-07-10 Thread Dave Newton
If you're doing validation in JavaScript anyway, why wouldn't you use a JavaScript-based date validation method and avoid the heinous mixing of Java and JavaScript?! Dave --- On Thu, 7/10/08, vimala <[EMAIL PROTECTED]> wrote: > I am using struts for web application development. I have a > class

Action form bean values in javascript

2008-07-10 Thread vimala
lendar(ttxtInspectionDate, txtInspectionDate, \"dd/mm/\");return false;'>"); } For the code line valuefn = <% =isDate(document.someActionForm.txtI

Re: question on multipage form bean

2008-07-08 Thread Lukasz Lenart
Hi, I'm assuming that you're using Struts 1, if so ActionForms are stored in session by default [1], change scope of your action mapping to request [2] [1] http://struts.apache.org/1.3.8/userGuide/building_controller.html#action_form_classes [2] http://struts.apache.org/1.3.8/userGuide/buildin

question on multipage form bean

2008-07-08 Thread Dimitris Mouchritsas
Hi all, I'm using a multipage form bean for a 3 page form. From what I tested, if I leave the pages (by following another link) and return later the bean is still in session scope. How can I tell struts that I've left these pages and remove the bean from session? I suppose if the us

Re: populate form bean

2008-03-11 Thread Dave Newton
le will disagree with that. Fortunately I haven't done a new S1 app in a couple of years now, so it's okay :) > What is the syntax, where do I put the name of the formbean > in the struts form tag to match the name of the formbean > I populated from the action? I thought in S

populate form bean

2008-03-11 Thread Chris Pat
Hello Excuse my niavete, but I have never used a formbean for other than retrieving string data from a form. For output I have just used simple struts and jstl for output. Now I want to reverse it and would like to use more sophisticated struts tags with collections in the form bean. Simple

Re: Form bean

2008-03-06 Thread Juanjo Cuadrado
Great idea Thanks! 2008/3/6, Antonio Petrelli <[EMAIL PROTECTED]>: > > 2008/3/6, Juanjo Cuadrado <[EMAIL PROTECTED]>: > > > > > Thanks Antonio, but I need to prepopulate a ActionForm from another > Action > > and forward it to jsp... > > > > > I think that the best way to manage it is to put

Re: Form bean

2008-03-06 Thread Antonio Petrelli
2008/3/6, Juanjo Cuadrado <[EMAIL PROTECTED]>: > > Thanks Antonio, but I need to prepopulate a ActionForm from another Action > and forward it to jsp... I think that the best way to manage it is to put a simple bean (no ActionForm) that contains the values that you want to put in request scope,

Re: Form bean

2008-03-06 Thread Juanjo Cuadrado
Thanks Antonio, but I need to prepopulate a ActionForm from another Action and forward it to jsp... Sorry for my English. 2008/3/6, Antonio Petrelli <[EMAIL PROTECTED]>: > > 2008/3/6, Juanjo Cuadrado <[EMAIL PROTECTED]>: > > > Hi, > > > > Where is th

Re: I cannot transfer property to Form Bean

2008-03-06 Thread ryan webb
Dear Antonio, That is same in my source code..do you think that is the cause? I will check that one..And send you informations soon! God bless, Ryan Webb -- Philippines On Thu, Mar 6, 2008 at 5:03 PM, Antonio Petrelli <[EMAIL PROTECTED]> wrote: > 2008/3/6, ryan webb <[EMAIL PROTECTED]>: > > >

Re: I cannot transfer property to Form Bean

2008-03-06 Thread Antonio Petrelli
2008/3/6, ryan webb <[EMAIL PROTECTED]>: > > Why two form beans with the same name? Is it a typing mistake, or an error of your code? Antonio

Re: I cannot transfer property to Form Bean

2008-03-06 Thread ryan webb
Yes I agree..I cannot find the problem, I think it is much better if there's 2 pairs of eyes looking. Here is the Action code. public class SortListAction extends org.apache.struts.action.Action { /* forward name="success" path="" */ private final static String SORT_LIST = "sortList";

Re: I cannot transfer property to Form Bean

2008-03-06 Thread Antonio Petrelli
2008/3/6, ryan webb <[EMAIL PROTECTED]>: > > Yes I did select an element I choose DVD+R then when I click sort now > button > the WebPage exploded > containing Tomcat Error Message. (null pointer exception). Mmmm this is strange. Can I see your Action, ActionForm and struts-config.xml (related t

Re: I cannot transfer property to Form Bean

2008-03-06 Thread ryan webb
Dear Antonio, Yes I did select an element I choose DVD+R then when I click sort now button the WebPage exploded containing Tomcat Error Message. (null pointer exception). By the way, thank you very much for reading my email and for the reply..=) God bless, Ryan Webb --Philippines On Thu, Mar 6,

Re: I cannot transfer property to Form Bean

2008-03-06 Thread Antonio Petrelli
2008/3/6, ryan webb <[EMAIL PROTECTED]>: > > > > > > > > > when I am debugging, I found out that formatList property > fromSortListFormBean.java is always equal to null. > > I am doing something wrong? Do you select an element before submitting the

Re: Form bean

2008-03-06 Thread Antonio Petrelli
2008/3/6, Juanjo Cuadrado <[EMAIL PROTECTED]>: > Hi, > > Where is the Form bean into the request??? What is the label?? > > I want to put a actionform in the request and I dont know where... > (prepopulate???) See: http://struts.apache.org/1.x/faqs/newbie.h

I cannot transfer property to Form Bean

2008-03-05 Thread ryan webb
Dear fellow Struts users, I am new in using Struts and I request your help. Situation: I am using Netbeans 6.0; Struts 1.2.9; Tomcat 6.0.14 I created an in my jsp page, what is it does is for sorting purposes. here's the snippet: And

Form bean

2008-03-05 Thread Juanjo Cuadrado
Hi, Where is the Form bean into the request??? What is the label?? I want to put a actionform in the request and I dont know where... (prepopulate???) Thanks.

Re: form bean directly into session

2007-12-11 Thread Alberto A. Flores
However, how do I refer to my placed formBean from a struts tag? One way to do it would be: now "foo" is a variable within your JSP page with the value "fname" from your form. How does it know the difference from my formBean and the default formBean created from ApplicationResources? Form

Re: form bean directly into session

2007-12-11 Thread Chris Pat
ve a form with many, many fields on it. I would like to process some of > them in my Action but get all them into the session object so my forwarded > jsp can use them as the values. So may I ask: > 1. How can I put the entire form bean from an action into the session scope > wit

Re: form bean directly into session

2007-12-11 Thread Alberto A. Flores
I have a form with many, many fields on it. I would like to process some of them in my Action but get all them into the session object so my forwarded jsp can use them as the values. So may I ask: 1. How can I put the entire form bean from an action into the session scope without

form bean directly into session

2007-12-11 Thread Chris Pat
Hello I have a form with many, many fields on it. I would like to process some of them in my Action but get all them into the session object so my forwarded jsp can use them as the values. So may I ask: 1. How can I put the entire form bean from an action into the session scope without

Re: Struts input sends < > encoded as < and > to form bean. Help!

2007-12-06 Thread Antonio Petrelli
2007/12/6, zargarf <[EMAIL PROTECTED]>: > > I was wondering, if there's anyway to automatically convert these back to > the original < > characters before they are set to the form attributes. Probably you are interested in Commons Lang StringEscapeUtils.unescapeXml: http://commons.apache.org/lan

Struts input sends < > encoded as < and > to form bean. Help!

2007-12-06 Thread zargarf
Hi Got a problem. We're using the struts portlet framework for websphere portal and are encountering an issue whereby if a user inputs the following characters, < > or £, then the form bean receives the values as < > etc. As this problem has only been noticed a year d

problem deploying my application with weblogic after adding a new form bean

2007-10-27 Thread blurboiboi
Hi all, Am having problem deploying my application with weblogic after adding a new form bean and its configuration () in the struts-config.xml the funny thing is with the configuration intact and the formbean java class deleted, the deployment goes through successfully. what could be

how to get a dynamic form bean object if it's not linked to the action

2007-10-02 Thread Leo Asanov
Hi, I've got the survey-like application. Survey is divided into several pages and each of those is represented by a dynamic action form. All forms are stored in the session. Once survey is completed it's stored in the database and anyone can go back at any time, retrieve his/her results, change

form bean>form-property>type please help

2007-09-09 Thread Ehteshamul Haque
Can we set a type of a form-property as array of Objects? Example: OR set them as ArrayList(Collection) Like: Another question: If both are possible then which one is better for which context Ehteshamul Haque - Looki

Re: Struts 2.0 form bean

2007-07-01 Thread tom tom
Before anything try model driven interface if you are not doing any portlet developments. Thanks, --- [EMAIL PROTECTED] wrote: > Hi All, > > As there is no concept of Action form beans in > struts 2.0 we have to define > the field attributes in the Action class. > > I am using the same action c

Re: Struts 2.0 form bean

2007-06-29 Thread Manoj . Gupta
cc Please respond to Subject "Struts Users Re: Struts 2.0 form bean Mailing List" &

Re: Struts 2.0 form bean

2007-06-29 Thread Dave Newton
--- [EMAIL PROTECTED] wrote: > In the action class i defined a attribute called > > public PersonalDetailForm getForm() { > return form; > } > > public void setForm(PersonalDetailForm form) { > this.form = form; > } > > PersonalDetailForm form; > > > and the

Re: Struts 2.0 form bean

2007-06-29 Thread Manoj . Gupta
ubject "Struts Users Re: Struts 2.0 form bean Mailing List" <[EMAIL PROTECTED]

Re: Struts 2.0 form bean

2007-06-29 Thread Dave Newton
--- [EMAIL PROTECTED] wrote: > is there any way of defining this fields attribute > in two separate bean classes and configure with the > appropriate action? Use regular JavaBeans and use the appropriate bean in the JSP form and configure validation for each bean/method combination. That's a rea

Struts 2.0 form bean

2007-06-29 Thread Manoj . Gupta
Hi All, As there is no concept of Action form beans in struts 2.0 we have to define the field attributes in the Action class. I am using the same action class for two form submission, is there any way of configuring form beans to this actions. For example if my first form has fields name, addr

How do i populate the form bean with a list of variable number of enteries.?

2007-04-18 Thread Chaitanya Deshpande
hi, I wanted to know if there is any way to populate a form bean with a list which is variable in number. For example : If i need to read the names of all the students in class. On page 1 i read the number of students (= n) and on the next page based on this number i display "n"

RE: initialize java form bean

2007-03-15 Thread Lim Hock-Chai
Ok. Thanks. Will try it out tonight. -Original Message- From: Harring Figueiredo [mailto:[EMAIL PROTECTED] Sent: Wednesday, March 14, 2007 4:26 PM To: Struts Users Mailing List Subject: Re: initialize java form bean Try Value you want Make sure your action has the

Re: initialize java form bean

2007-03-14 Thread Dave Newton
--- Lim Hock-Chai <[EMAIL PROTECTED]> wrote: > is there a way to set a property of a java form bean > from struts-config.xml? > > I try to use set-property and it is not working. Which version of Struts (I'm assuming Struts 1, but which version?) What

Re: initialize java form bean

2007-03-14 Thread Harring Figueiredo
set a property of a java form bean from struts-config.xml? I try to use set-property and it is not working. -- Sincerely, Harring Figueiredo Sr. Software Engineer Email: [EMAIL PROTECTED] Telephone: 941-256-0600 "We never become truly spiritual by sitting down and wishing to become s

initialize java form bean

2007-03-14 Thread Lim Hock-Chai
is there a way to set a property of a java form bean from struts-config.xml? I try to use set-property and it is not working.

Accessing form bean properties from within JavaScript

2007-02-28 Thread Tom Bednarz
ayReportDescription() returns the currently selected value of the ComboBox (Select list) In the form bean I have a Hashtable as follows: private Hashtable availableReports; public synchronized Hashtable getAvailableReports() { return availableReports; } public synchronized void setA

struts 1.2.9 multiple session scoped action form bean usage by single jsp

2007-02-22 Thread Derrick Koes
form used by the action. Thus, resulting in incorrect values. I have a solution to the problem. Basically, copy the jsp which I'm attempting to re-use and identify the form bean by name using dot notation with the field, but this seems a like it adds unnecessary maintenance (have to maintai

Re: Is it possible to paramterize calls to form bean getters?

2007-02-06 Thread Adam Lipscombe
OK thanks. This was my original approach, except now I am having trouble with the bean:write + formatKey approach - please see my other post entitled "formatting money values with bean:write". So summarise: It seems that whenever the formatKey specification results in a lookup of a format Stri

Re: Extend form-bean in struts-config

2007-02-05 Thread Laurie Harper
[EMAIL PROTECTED] wrote: Hi In my struts config, I have a few forms, with type DynaValidatorForm. The problem is, I have a few forms who share a few fields. Is there a way to declare a superform and let the other extend that form, so that I don't have to declare the common fields for every

Re: Is it possible to paramterize calls to form bean getters?

2007-02-05 Thread Laurie Harper
Adam Lipscombe wrote: Folks I need to internationalize an app - returning Locale specific formats for currency and date. One way to do that is to add getLocalised() and setLocalised() to the formbeans for each affected property. These methods will then apply whatever formatting is needed.

Extend form-bean in struts-config

2007-02-05 Thread bjorn.de.bakker
Hi In my struts config, I have a few forms, with type DynaValidatorForm. The problem is, I have a few forms who share a few fields. Is there a way to declare a superform and let the other extend that form, so that I don't have to declare the common fields for every form? Tia Bjorn De Bakker

Is it possible to paramterize calls to form bean getters?

2007-02-01 Thread Adam Lipscombe
Folks I need to internationalize an app - returning Locale specific formats for currency and date. One way to do that is to add getLocalised() and setLocalised() to the formbeans for each affected property. These methods will then apply whatever formatting is needed. But, for the tag to wo

Re: [S1] Select multiple matching values from form bean

2007-01-30 Thread Laurie Harper
Affiliate.getId() return? Are you selections saved correctly into the affiliates property of your form bean when you submit the form? L. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

[S1] Select multiple matching values from form bean

2007-01-29 Thread Grant Harding
Hi, I'm trying to create an 'edit form' page. In this, I'm trying to populate a multiple select field with a bean in the request scope and match the selected values from the form. I'm not sure how to get this to work. After looking in the taglib source, it looks like I have to specify anoth

RE: Form Bean not able to read form rendered from xml/xsl

2006-12-26 Thread Chris Loschen
e, it appears that you're creating HTML. XSLT does nothing that would have anything to do with whether or not Struts can handle your form bean correctly. So the first thing I'd look at is what the result of the XSLT transformation is. If you're getting the results you expect t

RE: Form Bean not able to read form rendered from xml/xsl

2006-12-26 Thread Rajeev Kumar Pandey
Hi All, Resending my query since I did not receive any replies to the same. Kindly help. Regards, Rajeev From: Rajeev Kumar Pandey Sent: Friday, December 22, 2006 8:00 PM To: 'user@struts.apache.org' Subject: Form Bean not able to read for

Form Bean not able to read form rendered from xml/xsl

2006-12-22 Thread Rajeev Kumar Pandey
Hi All, I am new to this mailing list, so might not be able to pose my question appropriately. Kindly bear with me. I am facing an issue with use of form beans in my project to read html forms rendered through xml/xsl. When I use UserId hidden

Re: Validating a form bean

2006-11-02 Thread Chris Pratt
the method validate in CustomerForm class you must call the validate method of AccountClass. > Hi, > > I have a form bean as this one > > public class CustomerForm extends ActionForm > { > private AccountForm accForm = null; > // other attributes and methods > >

Re: Validating a form bean

2006-11-02 Thread Jorge Martín Cuervo
El jue, 02 de 11 de 2006 a las 11:45, chamal desilva escribió: in the method validate in CustomerForm class you must call the validate method of AccountClass. > Hi, > > I have a form bean as this one > > public class CustomerForm extends ActionForm > { > private Accou

Validating a form bean

2006-11-02 Thread chamal desilva
Hi, I have a form bean as this one public class CustomerForm extends ActionForm { private AccountForm accForm = null; // other attributes and methods } My JSP looks like this. It has a form which contains details of CustomerForm as well as AccountForm inside CustomerForm

Re: Retain Form Bean

2006-10-30 Thread Laurie Harper
to achieve because I dont > know > how to resubmit the same form values from the error page. > > Any clues?? I can think of at least two ways to do this: 1) use session scope for your form bean; wheter the user decides to return and re-edit his data, or submit it, the data is still in

Re: Retain Form Bean

2006-10-28 Thread Puneet Lakhina
> know > how to resubmit the same form values from the error page. > > Any clues?? I can think of at least two ways to do this: 1) use session scope for your form bean; wheter the user decides to return and re-edit his data, or submit it, the data is still in the session-scoped form

Re: Retain Form Bean

2006-10-27 Thread Laurie Harper
;error page - >if continue ->submit data and store in Database. This continue functionality is what im unable to achieve because I dont know how to resubmit the same form values from the error page. Any clues?? I can think of at least two ways to do this: 1) use session scope for yo

Retain Form Bean

2006-10-27 Thread Puneet Lakhina
hi, I have the following scenario. I have a form that takes certain input. This in effect goes through certain validations. Now what I want to do is in case of validation errors a seprarte page is displayed that lists all the errors, and asks the user to continue submitting the data ignoring the e

Re: form bean with composition, is it possible?

2006-10-25 Thread Yujun Liang
public class MyForm extends ValidatorForm { CreditCard getCreditCard() } CreditCard has to be a bean, jsp. Regards On 10/25/06, xianwinwin <[EMAIL PROTECTED]> wrote: Hi guys, I wonder if it's possible to create a form bean with a composition. I mean, assuming I have th

form bean with composition, is it possible?

2006-10-24 Thread xianwinwin
Hi guys, I wonder if it's possible to create a form bean with a composition. I mean, assuming I have the following classes: AccountInformation ( fname, lname...) CreditCard (number, type...) I would like to know if I can create a form (registration) that is composed from AccountInformatio

RE: html form instantiating form bean

2006-10-11 Thread Dave Newton
onForm object. > Ok I think my question isnt clear. > > So basically PrepareAction has a different form bean associated with it > than formBeanName. formBeanName is associated with SubmitAction and not > PrepareAction. Hence typecasting wont work. It's not that your question isn

Re: html form instantiating form bean

2006-10-11 Thread Puneet Lakhina
> Now I have an action(PreapreAction) which I use to prepare a page for > display. This for fetches values from a Database and creates an instance of > the formbean and puts values into the form bean. Now i do > request.setAttribute("formBeanName",formBeanObject). And

RE: html form instantiating form bean

2006-10-11 Thread Dave Newton
From: Puneet Lakhina [mailto:[EMAIL PROTECTED] > The prepare action needs to prepopulate values into the form that is > displayed subsequently. How else can i do this?? Populating a form is different than instantiating one and putting it in to scope: Struts1 already instantiates and scopes forms.

Re: html form instantiating form bean

2006-10-11 Thread Ed Griebel
earning struts. Now I have an action(PreapreAction) which I use to prepare a page for display. This for fetches values from a Database and creates an instance of the formbean and puts values into the form bean. Now i do request.setAttribute("formBeanName",formBeanObject). And then forwards

Re: html form instantiating form bean

2006-10-11 Thread Puneet Lakhina
On 10/11/06, Dave Newton <[EMAIL PROTECTED]> wrote: From: Puneet Lakhina [mailto:[EMAIL PROTECTED] > the fooAction has formBeanName as its form bean defined in the struts > config. But Im not able to get any values into the fields in my form. Why are you doing this manually?

RE: html form instantiating form bean

2006-10-11 Thread Dave Newton
From: Puneet Lakhina [mailto:[EMAIL PROTECTED] > the fooAction has formBeanName as its form bean defined in the struts > config. But Im not able to get any values into the fields in my form. Why are you doing this manually? If you have configured your actions properly the framework will d

html form instantiating form bean

2006-10-11 Thread Puneet Lakhina
Hi, This has to be one of the most bewildering thing I have faced in my 3 months of learning struts. Now I have an action(PreapreAction) which I use to prepare a page for display. This for fetches values from a Database and creates an instance of the formbean and puts values into the form bean

clear form bean properties

2006-10-03 Thread fea jabi
Which method is the better/preffered way to clear the form-bean properties. have form properties as ArrayList, String and Boolean in a DynaValidatorForm. when we have to clear the form bean we are trying to remove all the form properties i.e making form-bean with no properties in it. Other

RE: form-bean is not getting updated with the values entered

2006-09-19 Thread Givler, Eric
Message- From: fea jabi [mailto:[EMAIL PROTECTED] Sent: Tuesday, September 19, 2006 9:44 AM To: user@struts.apache.org Subject: form-bean is not getting updated with the values entered Have an ArrayList in the form-bean This contains the list of row objects required for the below table

form-bean is not getting updated with the values entered

2006-09-19 Thread fea jabi
Have an ArrayList in the form-bean This contains the list of row objects required for the below table. using displaytag to display the the list of elements. requestURI="PrepareAction.do" class="table1"> ..

Re: How to set a form bean property of type HashMap in jsp

2006-09-07 Thread Puneet Lakhina
On 9/7/06, Vaneet Sharma <[EMAIL PROTECTED]> wrote: Can anybody tell me how to set a form bean property of type java.util.HashMap in a jsp page. Actually i am prepolulating this property in action and then forwarding to a jsp page. In this jsp page i need to again set this property ,so

How to set a form bean property of type HashMap in jsp

2006-09-07 Thread Vaneet Sharma
Can anybody tell me how to set a form bean property of type java.util.HashMap in a jsp page. Actually i am prepolulating this property in action and then forwarding to a jsp page. In this jsp page i need to again set this property ,so tht if there is some validation error then this HashMap is

Re: Can I Bypass using actionform? Cannot retrieve definition for form bean null on action...

2006-09-06 Thread Adam Gordon
If your "type" attribute equals "org.apache.struts.actions.ForwardAction" (and there may be others) then you don't need the name attribute. You are getting that error because you are specifying a custom action and there's no associated form bean. You can use Fo

Can I Bypass using actionform? Cannot retrieve definition for form bean null on action...

2006-09-06 Thread Mississippi John Hurt
Is there some way to not use an actionform bean in your JSP. I get the error message... Cannot retrieve definition for form bean null on action when I do not include a "name=" in my struts config action. Thanks.

RE: what's initial in form-bean ?

2006-08-28 Thread Samere, Adam J
iling List Subject: what's initial in form-bean ? what initial in this form bean means ? Thanks - Do you Yahoo!? Get on board. You're invited to try the new Yahoo! Mail. -

what's initial in form-bean ?

2006-08-28 Thread A. Lotfi
what initial in this form bean means ? Thanks - Do you Yahoo!? Get on board. You're invited to try the new Yahoo! Mail.

[SOLVED] Re: Auto render form bean as hidden fields

2006-08-23 Thread Scott Van Wart
In case anyone's curious, here's the synopsis of my solution: - Manually annotate (Java 1.5) the private fields I want to "track". - Have a base class that stores the original state (when a record is first loaded from the database, for editing, for example). - Write a class that walks through th

Re: Auto render form bean as hidden fields

2006-08-17 Thread Scott Van Wart
Laurie Harper wrote: Scott Van Wart wrote: We have a requirement that the user be prompted if any changes have been made on a form, and they try to navigate away. I've divided this up Firstly, is the requirement to detect changes to the form compared to how it was last rendered, or compared

  1   2   3   4   5   >