Hi all,
I have also faced same problem in my application so i
solved this problem using Custom converter successfully.
but i have a question, using custom converter may be some issue in our
system performance ?
It may be slow response.
Is it true ?
Thanks,
Abhijeet Tomar
--
View this messa
Problem solved: I was using a wrong type in form-properties:
java.lang._b_oolean
sledge wrote:
>
> Struts 1.1; There's something I think I am doing not right.. Here is the
> code:
>
> action .java:
> public class EditColActionInit extends Action {
> public ActionForward execute(ActionMap
John, what version of Struts?
On 9/10/07, Dave Newton <[EMAIL PROTECTED]> wrote:
>
> Possibly because there's no "input" attribute, so it's
> bombing since it doesn't know what the input forward
> for the form is?
>
> d.
>
> --- john lee <[EMAIL PROTECTED]> wrote:
>
> > i have an DynaValidatorForm
Possibly because there's no "input" attribute, so it's
bombing since it doesn't know what the input forward
for the form is?
d.
--- john lee <[EMAIL PROTECTED]> wrote:
> i have an DynaValidatorForm as following:
>
> inside struts-config.xml
>
>
> type"java.lang.String[] "/>
s it does this for you:
http://struts.apache.org/1.x/userGuide/building_controller.html#lazy_action_form_classes
Niall
-Original Message-
From: Niall Pemberton [mailto:[EMAIL PROTECTED]
Sent: maandag 12 maart 2007 14:49
To: Struts Users Mailing List
Subject: Re: DynaValidatorForm with java.util.Date
Original Message-
From: Niall Pemberton [mailto:[EMAIL PROTECTED]
Sent: maandag 12 maart 2007 16:46
To: Struts Users Mailing List
Subject: Re: DynaValidatorForm with java.util.Date
On 3/12/07, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
> Where do I register such a convertor? Simp
x/userGuide/building_controller.html#lazy_action_form_classes
Niall
-Original Message-
From: Niall Pemberton [mailto:[EMAIL PROTECTED]
Sent: maandag 12 maart 2007 14:49
To: Struts Users Mailing List
Subject: Re: DynaValidatorForm with java.util.Date
On 3/12/07, [EMAIL PROTECTED] <[EMAIL PROTECTED]>
enter the page, this ArrayList is gone.
What am I doing wrong here?
-Original Message-
From: Niall Pemberton [mailto:[EMAIL PROTECTED]
Sent: maandag 12 maart 2007 14:49
To: Struts Users Mailing List
Subject: Re: DynaValidatorForm with java.util.Date
On 3/12/07, [EMAIL PROTECTED] &l
TECTED]
Sent: maandag 12 maart 2007 14:06
To: Struts Users Mailing List
Subject: Re: DynaValidatorForm with java.util.Date
The fields of action forms, including DynaValidatorForms are populated
from request parameters, and these values are all in String variables.
I suggest using a String variabl
EMAIL PROTECTED]
Sent: maandag 12 maart 2007 14:06
To: Struts Users Mailing List
Subject: Re: DynaValidatorForm with java.util.Date
The fields of action forms, including DynaValidatorForms are populated
from request parameters, and these values are all in String variables.
I suggest using a String var
ble, then I'm in deep :)
-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
Sent: maandag 12 maart 2007 10:26
To: user@struts.apache.org
Subject: RE: DynaValidatorForm with java.util.Date
Ok, I did some tests and debugging and this is the result:
The errormsg is &q
AIL PROTECTED]
Sent: maandag 12 maart 2007 10:26
To: user@struts.apache.org
Subject: RE: DynaValidatorForm with java.util.Date
Ok, I did some tests and debugging and this is the result:
The errormsg is "Cannot assign value of type 'java.lang.String' to property
'txtFieldName&
Ok, I did some tests and debugging and this is the result:
The errormsg is "Cannot assign value of type 'java.lang.String' to property
'txtFieldName' of type 'java.util.Date'".
I fill that field with following code: modifyForm.set("txtFieldName",new
Date());
So the object I'm assigning to that
ish Bank plc
24 Mount Street
Manchester
M2 3LS
-Original Message-
From: news [mailto:[EMAIL PROTECTED] On Behalf Of Laurie Harper
Sent: Thursday, March 01, 2007 8:40 PM
To: user@struts.apache.org
Subject: Re: DynaValidatorForm and BigDecimal problem
Bear in mind that this way, if the use
lto:[EMAIL PROTECTED]
Sent: Thursday, March 01, 2007 4:13 PM
To: Struts Users Mailing List
Subject: Re: DynaValidatorForm and BigDecimal problem
It has nothing to do with Struts, the error message is saying that
commons BeanUtils cannot convert the string from the form submit into
a BigDecimal.
ginal Message-
From: Ed Griebel [mailto:[EMAIL PROTECTED]
Sent: Thursday, March 01, 2007 4:13 PM
To: Struts Users Mailing List
Subject: Re: DynaValidatorForm and BigDecimal problem
It has nothing to do with Struts, the error message is saying that
commons BeanUtils cannot convert the string fro
Bank plc
24 Mount Street
Manchester
M2 3LS
-Original Message-
From: Ed Griebel [mailto:[EMAIL PROTECTED]
Sent: Thursday, March 01, 2007 4:13 PM
To: Struts Users Mailing List
Subject: Re: DynaValidatorForm and BigDecimal problem
It has nothing to do with Struts, the error message is saying
It has nothing to do with Struts, the error message is saying that
commons BeanUtils cannot convert the string from the form submit into
a BigDecimal. Turns out that your issue is BigDecimal is not as
permissive as Double when it converts a non-numeric string to a
BigDecimal. If a string is not a
Christopher Schultz wrote:
> Philippe,
>
> Pille wrote:
how can i set a property of a dyna form from within an action?
>>> That's easy: just do the same thing you do in your SaveAction to get a
>>> reference to the form bean. Then, instead of just calling accessors to
>>> get the data our,
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
Philippe,
Pille wrote:
>>> how can i set a property of a dyna form from within an action?
>>
>> That's easy: just do the same thing you do in your SaveAction to get a
>> reference to the form bean. Then, instead of just calling accessors to
>> get the
le [mailto:[EMAIL PROTECTED]
> Sent: Monday, December 18, 2006 5:48 AM
> To: Struts Users Mailing List
> Subject: Re: DynaValidatorForm - cannot find bean
>
> how can i access the getters and setters in of a DynaValidatorForm from
> within an action method?
>
Christopher Schultz wrote:
> Philippe,
>
> Pille wrote:
>> how can i set a property of the form, that is used and needed in the jsp
>> of the form after editing?
>
> I usually add that property to the form bean itself and then use a
> hidden parameter. For instance, if I'm editing a database reco
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
Philippe,
Pille wrote:
> how can i access the getters and setters in of a DynaValidatorForm from
> within an action method?
You can use them as before.
> when i had a own form class i could do the following in a action method:
>
> productForm = (My
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
Philippe,
Pille wrote:
> how can i set a property of the form, that is used and needed in the jsp
> of the form after editing?
I usually add that property to the form bean itself and then use a
hidden parameter. For instance, if I'm editing a databas
/org/apache/struts/util/PropertyUtils.html#getSimpleProperty(java.lang.Objec
t,%20java.lang.String)
Regards,
Mano
-Original Message-
From: Pille [mailto:[EMAIL PROTECTED]
Sent: Monday, December 18, 2006 5:48 AM
To: Struts Users Mailing List
Subject: Re: DynaValidatorForm - cannot find bean
how can i
how can i access the getters and setters in of a DynaValidatorForm from
within an action method?
when i had a own form class i could do the following in a action method:
productForm = (MyOwnForm)form;
productForm.setComboArrayList(comboArrayListWithBeans);
with a dynamic form i cannot cast anym
Christopher Schultz wrote:
> Philippe,
>
> Pille wrote:
>> but after submitting the form with wrong input and returning
>> to the jsp-page i get the following exception:
>> javax.servlet.jsp.JspException: Cannot find bean under name countries at
>> org.apache.struts.taglib.html.OptionsTag.getIte
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
Philippe,
Pille wrote:
> but after submitting the form with wrong input and returning
> to the jsp-page i get the following exception:
> javax.servlet.jsp.JspException: Cannot find bean under name countries at
> org.apache.struts.taglib.html.OptionsTa
Hi,
Are you resetting the property correctly in your action class?
Using,
PropertyUtils.setSimpleProperty(form, "obj", List);?
Regards,
Mano
-Original Message-
From: Mallik [mailto:[EMAIL PROTECTED]
Sent: Tuesday, November 21, 2006 11:58 AM
To: user@struts.apache.org
Subject: DynaValidat
MAIL PROTECTED]>
To:
Sent: Tuesday, November 21, 2006 10:38 AM
Subject: Re: DynaValidatorForm help?
Hi friends
i don't have idea about DTO
can you give me some idea please
ur's
Mallik
nuwan chandrasoma-2 wrote:
Hi,
The loop is wrong, your are overwriteing the same form
e the DTO and add create
> a
> list of those DTO's, and set it to the from or request from there you can
> get the list and can easily iterate this list
>
> Regards,
>
> Nuwan.
>
> - Original Message -
> From: "Mallik" <[EMAIL PROTECTED]>
>
: Tuesday, November 21, 2006 12:51 PM
To: user@struts.apache.org
Subject: RE: DynaValidatorForm help?
hi friend
i have no idea about resetting
this is my source code
please help me in finding worng..
Action Class
-
public
Hi,
Can i see the you jsp code, are you iterateing the list propertly
Thanks,
Nuwan
- Original Message -
From: "Mallik" <[EMAIL PROTECTED]>
To:
Sent: Tuesday, November 21, 2006 6:28 AM
Subject: DynaValidatorForm help?
Hi friends
first of all thanks for your great help
situation
hi friend
i have no idea about resetting
this is my source code
please help me in finding worng..
Action Class
-
public ActionForward execute(ActionMapping mapping, ActionForm form,
HttpServletRequest request, HttpServl
leo mj wrote:
mallik,
use java.lang.Integer for integer and java.util.GregorianCalendar for Time.
Yeah, but you don't really want to do that, either. You're best bet is
to use String types for form-bean values, and convert to a different
type while handing off to a model layer. Reasoning
mallik,
use java.lang.Integer for integer and java.util.GregorianCalendar for Time.
Regards,
Leo
Mallik <[EMAIL PROTECTED]> wrote:
Hi friends
i am using DynaActionForm and client side validations using Validator
fromework
i can specify java.lang.String for type of form field in struts-config
On 4/25/06, Asad Habib <[EMAIL PROTECTED]> wrote:
> Does DynaValidatorForm have to be explicitly instantiated in an action?
No this is one of the things that Struts does for you. All you should
need to do is define it, along with the properties you want in the
struts-config.xml:
http://struts.apa
thanks, Laurie.
Now I can think of an alternative way to do this. I filed an enhancement
request in Bugzilla.
From: Laurie Harper <[EMAIL PROTECTED]>
Reply-To: "Struts Users Mailing List"
To: user@struts.apache.org
Subject: Re: DynaValidatorForm and nested tags.
Date: Tue
an't we do this?
From: Rick Reumann <[EMAIL PROTECTED]>
Reply-To: "Struts Users Mailing List"
To: Struts Users Mailing List
Subject: Re: DynaValidatorForm and nested tags.
Date: Mon, 19 Dec 2005 20:25:54 -0500
On 12/19/05, fea jabi <[EMAIL PROTECTED]> wrote:
>
>
]>
Reply-To: "Struts Users Mailing List"
To: Struts Users Mailing List
Subject: Re: DynaValidatorForm and nested tags.
Date: Mon, 19 Dec 2005 20:25:54 -0500
On 12/19/05, fea jabi <[EMAIL PROTECTED]> wrote:
>
> Thanks. I sure can see the difference.
>
> can we use a
On 12/19/05, fea jabi <[EMAIL PROTECTED]> wrote:
>
> Thanks. I sure can see the difference.
>
> can we use a DynaValidatorForm as an attribute in another
> DynaValidatorForm?
I'm guessing you could just simply nest DynaValidatorForms (but I'm sure
you'll want to use 'Lazy' ones otherwise you'll
Thanks. I sure can see the difference.
can we use a DynaValidatorForm as an attribute in another DynaValidatorForm?
Thanks.
From: Rick Reumann <[EMAIL PROTECTED]>
Reply-To: "Struts Users Mailing List"
To: Struts Users Mailing List
Subject: Re: DynaValidatorForm and nested
Slight correction to above (copy and past problems when trying to make it
generic):
On 12/19/05, Rick Reumann <[EMAIL PROTECTED]> wrote:
>
> On 12/19/05, fea jabi <[EMAIL PROTECTED]> wrote:
> >
> >
> >
> > Also, when exactly do we have to use the
On 12/19/05, fea jabi <[EMAIL PROTECTED]> wrote:
>
>
>
> Also, when exactly do we have to use the nested tags?
You don't have to use them, but they make things easier/cleaner when you
need to display fields that are updatable that are nested. For example here
are two ways.. one with JSTL and one
Hi List,
I got my mistake it was the wrong package given for the Class
DynaValidatorForm
Amol
-Original Message-
From: Amol Yadwadkar [mailto:[EMAIL PROTECTED]
Sent: Friday, August 05, 2005 11:13 AM
To: user@struts.apache.org
Subject: DynaValidatorForm problem
Hello List,
I am usin
Michael Klaene wrote:
name="loginForm" input="login.page" scope="request">
Woudln't you need a validate="true" attribute?
Dave
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
Sorry, classpath problem :-(
Orange Caraibe
IMPORTANT.
CONFIDENTIEL : Les informations contenues dans ce message sont confidentielles et peuvent etre protegees par la loi. Ce message est etabli a l'intention exclusive de ses destin
From: "Scott Purcell" <[EMAIL PROTECTED]>
> DynaValidatorForm theForm = (DynaValidatorForm)form;
> String catalogID = theForm.getCatalogID();
> Boolean checkbox = theForm.getCovers();
> But it will not compile. How do I get the values from the form? I usually
create my own physical bea
27;t work you should research further into how DynaForms
operate.
Sorry for the limited reply, but maybe it will help anyway.
Mike
> -Original Message-
> From: Scott Purcell [mailto:[EMAIL PROTECTED]
> Sent: Wednesday, March 30, 2005 11:40 AM
> To: Struts Users Mailing List
>
physical bean.
Thanks,
Scott
-Original Message-
From: Wendy Smoak [mailto:[EMAIL PROTECTED]
Sent: Wednesday, March 30, 2005 10:13 AM
To: Struts Users Mailing List
Subject: Re: DynaValidatorForm and Checkbox
From: "Scott Purcell" <[EMAIL PROTECTED]>
> I have a couple
From: "Scott Purcell" <[EMAIL PROTECTED]>
> I have a couple of jsp pages where there is a single checkbox on the page.
> But as a newbie, I am not sure what type in the creation to make it? A
String? A Boolean?
I usually use Boolean for checkboxes. (Read the docs about using the
'reset' method to
At 11:31 AM + 11/24/04, Adam Hardy wrote:
On 11/23/2004 02:20 PM Joe Germuska wrote:
Your action isn't executed if validation fails. However, the
validation is performed on a second request, so the object placed
into the scope before the form was presented is no longer there.
If your catego
On 11/23/2004 02:20 PM Joe Germuska wrote:
Your action isn't executed if validation fails. However, the validation
is performed on a second request, so the object placed into the scope
before the form was presented is no longer there.
If your categories are really relatively static, consider ma
The problem is, that the given form actually edits the categories-tree
and as it is presented to the user after editing it, it should be
updated after the form is submitted.
Alexander
Joe Germuska wrote:
Your action isn't executed if validation fails. However, the validation
is performed on a
Alexander Czernay wrote:
I have a simple DynaValidatorForm
that is called whtin an action
that inserts so data into the request inside its execute method
public ActionForward execute(
ActionMapping mapping,
Your action isn't executed if validation fails. However, the
validation is performed on a second request, so the object placed
into the scope before the form was presented is no longer there.
If your categories are really relatively static, consider managing
them in Application scope rather th
From: "Brian Kuhn" <[EMAIL PROTECTED]>
> I'm using struts 1.1
> Is it possible to use a multibox with a DynaValidatorForm?
Sure. I use a String[] property in the dynamic form, and it works fine.
If you're having trouble with it, post the relevant parts of the config
files and JSP and someone wil
Hi,
Wild guess (not so wild, It happened to me more than
One time)
The fact that you declare your form (ticketForm I suppose) thru
Struts tag does not make it
'visible' to scriptlet code
so, you would have do do
<%
DynaActionForm ticketForm =
(DynaActionForm)request.getAttribute("
I read the article but IMO the arguments he makes don't stand up - and I
believe two of the six points are wrong.
I've posted a reply to his blog going into detail.
Niall
On Tuesday, May 11, 2004 12:20 AM Eric Noel wrote..
>
> i asked something like this before and matthias provided a useful
> o
On 5/8/2004 2:03 AM, Zhang, Larry (L.) wrote:
When using DynaValidatorForm, you just put the fields in the struts configuration xml file, and you don't need a formbean to set all the fields manually, which in turn saves your developing time. I am asking in struts community, is there any reason/enc
Zhang, Larry (L.) wrote:
When using DynaValidatorForm, you just put the fields in the struts configuration xml file, and you don't need a formbean to set all the fields manually, which in turn saves your developing time. I am asking in struts community, is there any reason/encouragement for not us
Thanks for the responses. I was using the way that you showed. I
figured out that my problem was with my struts-config.xml where I should
have been using:org.apache.struts.validator.DynaValidatorForm instead of
org.apache.struts.action.DynaValidatorForm.
Adam Hardy wrote:
DynaValidatorForm d
DynaValidatorForm dynaForm = (DynaValidatorForm) form;
String value = (String) dynaForm.get("myFieldName");
On 04/09/2004 02:52 PM Brad Balmer wrote:
Using the DynaValidatorForm, how do you get the form variable data out
of the form inside the action? All examples I've seen are purely the
setu
Cast the ActionForm to a DynaBean and then use get(String property)
Niall
- Original Message -
From: "Brad Balmer" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Friday, April 09, 2004 1:52 PM
Subject: DynaValidatorForm help
> Using the DynaValidatorForm, how do you get the form va
64 matches
Mail list logo