Re: Struts 1.3 : DynaValidatorActionForm missing input form data on errors display

2008-03-18 Thread Laurie Harper
eod wrote: Hi, I'm seeing input form data disappear if the validation fails & the page is re-displayed; have Googled around but found nothing specific to dyna forms, so I'm hoping someone has come across this & know what the issue is; I had tried setting the action's sco

Struts 1.3 : DynaValidatorActionForm missing input form data on errors display

2008-03-12 Thread eod
Hi, I'm seeing input form data disappear if the validation fails & the page is re-displayed; have Googled around but found nothing specific to dyna forms, so I'm hoping someone has come across this & know what the issue is; I had tried setting the action's scope to ses

Re: empty fields of an input form get default value after submitting

2006-09-14 Thread Scott Van Wart
Laurie Harper wrote: Sandra Reichert wrote: Hi, I have an input form in jsp. After submitting empty fields (user entered nothing in input field) are set by default with specific values depending on their data typ. So an empty Integer field is set to 0, an String field to "" an so

Re: empty fields of an input form get default value after submitting

2006-09-14 Thread Laurie Harper
Sandra Reichert wrote: Hi, I have an input form in jsp. After submitting empty fields (user entered nothing in input field) are set by default with specific values depending on their data typ. So an empty Integer field is set to 0, an String field to "" an so on. But i want to h

RE: empty fields of an input form get default value after submitting

2006-09-13 Thread Anil Kumar T
;) ; If so then you got to change it to String s = null; Then you would get it as null. Hope this helps you. Anil. -Original Message- From: Sandra Reichert [mailto:[EMAIL PROTECTED] Sent: Wednesday, September 13, 2006 1:10 PM To: Struts Users Mailing List Subject: empty fields of an in

empty fields of an input form get default value after submitting

2006-09-13 Thread Sandra Reichert
Hi, I have an input form in jsp. After submitting empty fields (user entered nothing in input field) are set by default with specific values depending on their data typ. So an empty Integer field is set to 0, an String field to "" an so on. But i want to have a null value for empty fie

Re: passing input form value to error message

2006-06-22 Thread Niall Pemberton
There isn't a way to display input values using the validator framework. Also if you did it could potentially lead to your site having an XSS vulnerability: http://wiki.apache.org/struts/StrutsXssVulnerability Niall On 6/20/06, Dhanasekaran Vivekanandhan <[EMAIL PROTECTED]> wrote: Hi All, I am

RE: passing input form value to error message

2006-06-21 Thread Mukta
You may refer http://struts.apache.org/struts-doc-1.2.4/userGuide/dev_validator.html -Original Message- From: Dhanasekaran Vivekanandhan [mailto:[EMAIL PROTECTED] Sent: Tuesday, June 20, 2006 12:28 PM To: user@struts.apache.org Subject: passing input form value to error message Hi

passing input form value to error message

2006-06-19 Thread Dhanasekaran Vivekanandhan
Hi All, I am using struts1.2.9, and one of the form input value is date field and i want to show the error message, "Date entered,0909200 is not a valid date", if the date entered in the form is 0909200. I am using the datePattern validator plugin.I dont know how to pass the user input date value

Re: ActionForward and input form

2006-04-29 Thread Pat Slater
rd( > > mapping.getInput() ); > > return mapping.findForward( > "failureDate" > > ); > > } > > // > > } > > This method is invoked on a form post of a > html-form > > (input form). > > Here everything is working as exp

Re: ActionForward and input form

2006-04-29 Thread sudip shrestha
mapping.getInput() ); > > return mapping.findForward( > "failureDate" > > ); > > } > > // > > } > > This method is invoked on a form post of a > html-form > > (input form). > > Here everything is worki

Re: ActionForward and input form

2006-04-29 Thread sudip shrestha
uest,errors ); > //return new ActionForward( > mapping.getInput() ); > return mapping.findForward( "failureDate" > ); > } > // > } > This method is invoked on a form post of a html-form > (input form). > Here everything is working as

ActionForward and input form

2006-04-28 Thread Pat Slater
errors.add( ActionMessages.GLOBAL_MESSAGE,error ); saveErrors( request,errors ); //return new ActionForward( mapping.getInput() ); return mapping.findForward( "failureDate" ); } // } This method is invoked on a form post of a html-form (input form). Here ever

Re: dynamic input form

2006-03-22 Thread Jared Blitzstein
Do a search for "Map Backed forms", it's what you want. if your form will be based on dynamic fields. You can search the archives or struts home page as they discuss it there as well. On Mar 7, 2006, at 8:46 AM, Rivka Shisman wrote: Hi friends, I need to present my user an html form whos

RE: dynamic input form

2006-03-07 Thread [EMAIL PROTECTED]
om: "Rivka Shisman" <[EMAIL PROTECTED]> To: "Struts Users Mailing List" Sent: Tue, 7 Mar 2006 16:40:47 +0200 Subject: RE: dynamic input form > Hi Niall, > > Can you please explain how do lazy dyna beans solve my problem? > > Thanks > Rivka > >

RE: dynamic input form

2006-03-07 Thread Rivka Shisman
are not only html:text? Do you have a more detailed example? Thanks Rivka -Original Message- From: Niall Pemberton [mailto:[EMAIL PROTECTED] Sent: Tuesday, March 07, 2006 5:16 PM To: Struts Users Mailing List Subject: Re: dynamic input form The link I gave does that - it also has a link to

Re: dynamic input form

2006-03-07 Thread Niall Pemberton
PM To: Struts Users Mailing List Subject: Re: dynamic input form You could use lazy dyna beans: http://struts.apache.org/struts-action/userGuide/building_controller.htm l#lazy_action_form_classes Niall - Original Message - From: "Rivka Shisman" <[EMAIL PROTECTED]> Sent:

RE: dynamic input form

2006-03-07 Thread Rivka Shisman
Hi Niall, Can you please explain how do lazy dyna beans solve my problem? Thanks Rivka -Original Message- From: Niall Pemberton [mailto:[EMAIL PROTECTED] Sent: Tuesday, March 07, 2006 3:54 PM To: Struts Users Mailing List Subject: Re: dynamic input form You could use lazy dyna beans

Re: dynamic input form

2006-03-07 Thread Niall Pemberton
You could use lazy dyna beans: http://struts.apache.org/struts-action/userGuide/building_controller.html#lazy_action_form_classes Niall - Original Message - From: "Rivka Shisman" <[EMAIL PROTECTED]> Sent: Tuesday, March 07, 2006 1:46 PM Hi friends, I need to present my user an html fo

dynamic input form

2006-03-07 Thread Rivka Shisman
Hi friends, I need to present my user an html form whose fields are built dynamically using data I get from the database. I need your advice on how to do that. Thanks Rivka

Re: why Input form is skipped

2006-01-04 Thread Michael Jouravlev
"input" form is not an input form, it is an error form. Bad naming. Michael. On 1/4/06, PC Leung <[EMAIL PROTECTED]> wrote: > If the user clicks the submit button, then configuration > tells where "success" URL to go. > But user has no chance to click the sub

Re: why Input form is skipped

2006-01-04 Thread PC Leung
If the user clicks the submit button, then configuration tells where "success" URL to go. But user has no chance to click the submit button, because the form does not display at all. And it is forwarded to "success" URL automatically! On 1/1/06, Laurie Harper <[EMAIL PROTECTED]> wrote: > What do

Re: why Input form is skipped

2005-12-31 Thread Laurie Harper
What do you mean by 'the form is skipped'? The configuration has one action mapping with two logical outcomes, each of which is mapped to different actions. The code for that action always returns the outcome 'success'. Thus, whenever your request /selectUser.do, Struts should forward to the /s

why Input form is skipped

2005-12-30 Thread PC Leung
I just want the control passing to a form with a dropdown box so that user can click. The form does not have a chance to display and it is skipped to the subsequent form. Why is it so? The following is the action class associated with the form being skipped. Thanks public final class SelectUs

RE: input form

2004-10-05 Thread Robin Mannering
"); } -Original Message- From: Robin Mannering [mailto:[EMAIL PROTECTED] Sent: 05 October 2004 17:55 To: Struts Users Mailing List Subject: RE: input form Hi All, Just chewing over this problem myself since it was brought up. The solution is here I believe, yet to implem

RE: input form

2004-10-05 Thread Freddy Villalba A.
Thanx Allen! Your explanations is clear enough. -Mensaje original- De: Fogleson, Allen [mailto:[EMAIL PROTECTED] Enviado el: martes, 05 de octubre de 2004 18:30 Para: 'Struts Users Mailing List' Asunto: RE: input form Freddy, You want to use the formName that you gave in

RE: input form

2004-10-05 Thread Robin Mannering
--Original Message- From: Fogleson, Allen [mailto:[EMAIL PROTECTED] Sent: 05 October 2004 17:32 To: 'Struts Users Mailing List' Subject: RE: input form Wendy, True enough, the original question though revolved around prepopulating the form from the DB before getting to the view of th

RE: input form

2004-10-05 Thread Fogleson, Allen
, October 05, 2004 12:05 PM To: Struts Users Mailing List Subject: Re: input form From: "Freddy Villalba A." <[EMAIL PROTECTED]> > I have a similar question: when you say create the action form and put it > into request scope... I suppose you refer to the same ActionForm th

RE: input form

2004-10-05 Thread Fogleson, Allen
send it to you direct, just let me know. -Original Message- From: Freddy Villalba A. [mailto:[EMAIL PROTECTED] Sent: Tuesday, October 05, 2004 11:28 AM To: Struts Users Mailing List Subject: RE: input form Hi, Allen... I have a similar question: when you say create the action form and put it into

Re: input form

2004-10-05 Thread Wendy Smoak
From: "Freddy Villalba A." <[EMAIL PROTECTED]> > I have a similar question: when you say create the action form and put it > into request scope... I suppose you refer to the same ActionForm that will > be used when, say, saving that prepopulated form again (the changes you've > made). Struts will

RE: input form

2004-10-05 Thread Freddy Villalba A.
ng List' Asunto: RE: input form Anna, What I would do is start with an action (lets call it PopulateCreateAction) that gets the collection from the DB, creates a new ActionForm and populates that action form with the collections. I would place that in the request scope and then do a standa

Re: input form

2004-10-04 Thread Wendy Smoak
From: "Anna Kerekes" <[EMAIL PROTECTED]> > I have a jsp (create.jsp), a form-bean (CreateMessageForm.java), > and an action (CreateMessageAction.java). > Currently, the user inputs their info into create.jsp, hits 'submit', > and the action gets the info from the form-bean > and does stuff with it.

Re: input form

2004-10-04 Thread Shyam Anand
Hello, Your CreateMessageAction class should extend DispatchAction class, and then you should be able to accomplish your requirement. See this link: http://struts.apache.org/api/org/apache/struts/actions/DispatchAction.html You can have different methods in your DispatchAction class like "get",

RE: input form

2004-10-04 Thread Durham David R Jr Contr 805 CSPTS/SCE
> Hello, > > I have a jsp (create.jsp), a form-bean (CreateMessageForm.java), and > an action (CreateMessageAction.java). > > Currently, the user inputs their info into create.jsp, hits 'submit', > and the action gets the info from the form-bean and does stuff with > it. Instead, I would like

RE: input form

2004-10-04 Thread Fogleson, Allen
. You should then come into create.jsp with the form prefilled and everything works normally from there. :) Al -Original Message- From: Anna Kerekes [mailto:[EMAIL PROTECTED] Sent: Monday, October 04, 2004 3:58 PM To: Struts Users Mailing List Subject: input form Hello, I have a jsp

input form

2004-10-04 Thread Anna Kerekes
Hello, I have a jsp (create.jsp), a form-bean (CreateMessageForm.java), and an action (CreateMessageAction.java). Currently, the user inputs their info into create.jsp, hits 'submit', and the action gets the info from the form-bean and does stuff with it. Instead, I would like to get some in