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
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
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
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
;) ;
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
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
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
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
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
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
mapping.getInput() );
> > return mapping.findForward(
> "failureDate"
> > );
> > }
> > //
> > }
> > This method is invoked on a form post of a
> html-form
> > (input form).
> > Here everything is worki
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
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
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
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
>
>
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
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:
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
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
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
"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
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
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
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
");
}
-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
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
--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
, 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
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
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
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
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.
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",
> 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
.
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
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
36 matches
Mail list logo