Re: Struts2 json-plugin - issue setting nested bean?

2014-10-29 Thread JOSE L MARTINEZ-AVIAL
So, you are using the JSONInterceptor, right? Share your package definition so we can check that, it is not clear from your mail that you are using it. And actually, the log line: DEBUG: Setting params testValue => [ yes ] contact[firstName] => [ Bean ] contactId => [ 100 ] seems to indicate that

Re: Struts2 json-plugin - issue setting nested bean?

2014-10-28 Thread Burton Rhodes
Actually, I just notice that if I use the jquery method serialize() as opposed to serializeArray() it works out of the box. On Tue, Oct 28, 2014 at 9:31 PM, Burton Rhodes wrote: > That's it... thank you! However, the docs mention that the JSON string > must be "well formed" and it specifically

Re: Struts2 json-plugin - issue setting nested bean?

2014-10-28 Thread Burton Rhodes
That's it... thank you! However, the docs mention that the JSON string must be "well formed" and it specifically demonstrates that my first attempt should have worked in the "nestedBean" example (see below). Plus jQuery serializes the form that why by default accommodating for the dot notation ;-

Re: Struts2 json-plugin - issue setting nested bean?

2014-10-28 Thread JOSE L MARTINEZ-AVIAL
Unless you use the json inteceptor to map the request boy to the action, you need to send the contact firstName as "contact.firstName", so Struts will invoke setContact(new Contcat()); getContact().setFirstName("John"); -- JSON TEST SUBMISSION -- $.ajax({ ... other ajax settings ... // manuall

Struts2 json-plugin - issue setting nested bean?

2014-10-28 Thread Burton Rhodes
I am having issues setting nested parameters on an object using the json-plugin. I've created a basic example that I'm currently testing. When debugging at the "return SUCCESS" line, both the testValue and contactId variables are set correctly. The contact variable, however, is null. The relevan

[S2] Type Coversion in nested bean.

2007-08-29 Thread Boon Leng
Hi, I'm trying to use type conversion for nested bean. I have no problem populating the bean if the List is not nested inside another bean. Does struts 2 able to perform type conversion for nested bean? Any help would be appreciated. Thanks.

[S2] Type Coversion in nested bean.

2007-08-29 Thread Boon Leng
Hi, I'm able to use type conversion to populate bean into List in the Action. But when I tried to populate bean into a List nested inside another bean, is not working and there's no error printed. May I know how can I implement type conversion for nested bean? Any help would be a

[SOLVED?] Re: Map-based nested bean--No bean specified?

2006-08-14 Thread Scott Van Wart
I thought I'd post a more concrete example this time. I'm using a map-based nested bean, and I'm getting the following error: java.lang.IllegalArgumentException: No bean specified org.apache.commons.beanutils.PropertyUtilsBean.getPropertyDe

Map-based nested bean--No bean specified?

2006-08-14 Thread Scott Van Wart
I posted on this before, so I thought I'd post a more concrete example this time. I'm using a map-based nested bean, and I'm getting the following error: java.lang.IllegalArgumentException: No bean specified org.apache.commons.beanutils.PropertyUtilsBean.getPro

Map-based nested bean

2006-08-09 Thread Scott Van Wart
(Struts 1.2.9, Tomcat 5.5.17) I have something similar to the following in my ActionForm: public class MyForm extends ActionForm { public static class NestedBean { private String name; private String value; // String getName(), String getValue(), void

Cannot set value of a nested bean

2006-03-03 Thread Michael Jouravlev
This question actually is more related to commons and BeanUtils, but I ask it here first. So, I have an ActionForm with a property: private Part part; public Part getPart() {return part;} public void setPart(Part part) {this.part = part;} Part contains part name field: public MyProperty myPa

Re: Fwd: Re: Fwd: Re: Re: RE: how to represent nested bean properties in a jsp form

2005-09-10 Thread Laurie Harper
temp temp wrote: I solved the problem by creating an instance of AddressVO in the formbean. Here is my code after modifications. public class ServiceSelectionForm extends ActionForm { private AddressVO addressVO = new AddressVO(); public AddressVO getAddressVO() { r

Fwd: Re: Fwd: Re: Re: RE: how to represent nested bean properties in a jsp form

2005-09-09 Thread temp temp
ed. thanks & regards __ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com Subject: Re: Re: RE: how to represent nested b

Re: Fwd: Re: Re: RE: how to represent nested bean properties in a jsp form

2005-09-08 Thread Laurie Harper
mail.yahoo.com Subject: Re: Re: RE: how to represent nested bean properties in a jsp form From: Michael Jouravlev <[EMAIL PROTECTED]> Date: Thu, 8 Sep 2005 12:05:36 -0700 To: Struts Users Mailing List To: Struts Users Mailing List So, what happens if you use Put a de

Re: how to represent nested bean properties in a jsp form

2005-09-08 Thread Van
On 9/8/05, temp temp <[EMAIL PROTECTED]> wrote: > public class ServiceSelectionForm extends > ActionForm { > >private AddressVO addressVO; >public AddressVO getAddressVO() { >return addressVO; >} >public void setAddressVO(AddressVO addressVO) { >this.addressVO =

Fwd: Re: Re: RE: how to represent nested bean properties in a jsp form

2005-09-08 Thread temp temp
arded message attached. > thanks & regards > > > > > > __ > Click here to donate to the Hurricane Katrina relief effort. > http://store.yahoo.com/redcross-donate3/ > > > -- Forwarded message -

Re: Re: RE: how to represent nested bean properties in a jsp form

2005-09-08 Thread Michael Jouravlev
/redcross-donate3/ > > > -- Forwarded message -- > From: Michael Jouravlev <[EMAIL PROTECTED]> > To: Struts Users Mailing List > Date: Thu, 8 Sep 2005 11:50:06 -0700 > Subject: Re: RE: how to represent nested bean properties in a jsp form > What, i

Fwd: Re: RE: how to represent nested bean properties in a jsp form

2005-09-08 Thread temp temp
here is my struts config Note: forwarded message attached. thanks & regards __ Click here to donate to the Hurricane Katrina relief effort. http://store.yahoo.com/redcross-donate3/--- Begin Message -

Re: RE: how to represent nested bean properties in a jsp form

2005-09-08 Thread Michael Jouravlev
What, it does not work? How about setting form name explicitly: You have defined the formbean in the struts config, have you? Michael. On 9/8/05, temp temp <[EMAIL PROTECTED]> wrote: > This is my jsp > > > > > >I want input textfield from jsp to represent porperty st

RE: RE: how to represent nested bean properties in a jsp form

2005-09-08 Thread temp temp
Are you getting any errors? > > -Greg > > -Original Message- > From: temp temp [mailto:[EMAIL PROTECTED] > Sent: Thursday, September 08, 2005 10:54 AM > To: user@struts.apache.org > Subject: Fwd: RE: how to represent nested bean > properties in a jsp form > > >

RE: RE: how to represent nested bean properties in a jsp form

2005-09-08 Thread Greg Pelly
EMAIL PROTECTED] Sent: Thursday, September 08, 2005 10:54 AM To: user@struts.apache.org Subject: Fwd: RE: how to represent nested bean properties in a jsp form No I have no problem with property NEWSEARCH . I want to know how can my jsp represent nested property state (property from AddressVO ) ? t

Fwd: RE: how to represent nested bean properties in a jsp form

2005-09-08 Thread temp temp
ublic int getWindowHeight(){    return _windowHeight;  }HTH - If you are getting a specific error I might be able to help more.Greg-Original Message-From: temp temp [mailto:[EMAIL PROTECTED]]Sent: Thursday, September 08, 2005 10:37 AMTo: user@struts.apache.orgSubject: how to represent ne

how to represent nested bean properties in a jsp form

2005-09-08 Thread temp temp
textfiled.How can I acheive this. or How can I represent nested bean porperties in a jsp form. thanks®ards __ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com

Re: Nested Bean Validation

2005-07-18 Thread Van
On 7/18/05, Scott Purcell <[EMAIL PROTECTED]> wrote: > So my question is as follows: > When using struts, is a nested bean common? And if so, how do you validate > just one bean from the parent? > > eg: Lets say that the bean lets call it "checkout" and insi

Nested Bean Validation

2005-07-18 Thread Scott Purcell
struts, is a nested bean common? And if so, how do you validate just one bean from the parent? eg: Lets say that the bean lets call it "checkout" and inside it has the users shipping information. So that bean will be called "shippinginfo" So the bean checkout has a shipping

Nested Bean

2004-08-26 Thread Mariano García
Hi all, I have a problem and i don't know how to solve it. I am going to explain it you in order you may help me. I have a bean (A BEAN) with several private attributes. One of them is a ID attribute that references another bean class (B BEAN) (i can get this bean using a getBClassById method).

Re: Problem setting nested bean properties on ActionForms

2004-08-06 Thread Ricardo Gladwell
ost more information - how about posting the form definition from your struts-config.xml. Niall - Original Message - From: "Ricardo Gladwell" <[EMAIL PROTECTED]> To: "Jakarta Struts Users" <[EMAIL PROTECTED]> Sent: Friday, August 06, 2004 2:02 PM Subject: Problem

Re: Problem setting nested bean properties on ActionForms

2004-08-06 Thread Ricardo Gladwell
04 9:03 AM To: Jakarta Struts Users Subject: Problem setting nested bean properties on ActionForms Hi All, I'm having some problems with nested properties in Strust. Struts seems to loose property values when specifying nested bean properties in an action form. For example, the following fragm

Problem setting nested bean properties on ActionForms

2004-08-06 Thread Ricardo Gladwell
Hi All, I'm having some problems with nested properties in Strust. Struts seems to loose property values when specifying nested bean properties in an action form. For example, the following fragment is an example of attempting to set a value in a view JSP: When Struts attempts to se

RE: Problem setting nested bean properties on ActionForms

2004-08-06 Thread Robert Taylor
l:text tag would look like: robert > -Original Message- > From: Ricardo Gladwell [mailto:[EMAIL PROTECTED] > Sent: Friday, August 06, 2004 10:57 AM > To: Struts Users Mailing List > Subject: Re: Problem setting nested bean properties on ActionForms > > > Hi N

Re: Problem setting nested bean properties on ActionForms

2004-08-06 Thread Kishore Senji
erties in Strust. Struts seems > to loose property values when specifying nested bean properties in > an action form. For example, the following fragment is an example of > attempting to set a value in a view JSP: > > > > When Struts attempts to set the webdav.url nested bean

Re: Problem setting nested bean properties on ActionForms

2004-08-06 Thread Niall Pemberton
then stop confusing struts and drop the period/full stop. Niall - Original Message - From: "Niall Pemberton" <[EMAIL PROTECTED]> To: "Struts Users Mailing List" <[EMAIL PROTECTED]> Sent: Friday, August 06, 2004 4:37 PM Subject: Re: Problem setting nested bean

Re: Problem setting nested bean properties on ActionForms

2004-08-06 Thread Niall Pemberton
So my guess was correct - so see my previous answer. Niall - Original Message - From: "Ricardo Gladwell" <[EMAIL PROTECTED]> To: "Struts Users Mailing List" <[EMAIL PROTECTED]> Sent: Friday, August 06, 2004 3:56 PM Subject: Re: Problem setting neste

RE: Problem setting nested bean properties on ActionForms

2004-08-06 Thread Robert Taylor
Mailing List > Subject: Re: Problem setting nested bean properties on ActionForms > > > Not if hes using a servlet container that supports el. > > Niall > > - Original Message - > From: "Robert Taylor" <[EMAIL PROTECTED]> > To: "Struts Us

Re: Problem setting nested bean properties on ActionForms

2004-08-06 Thread Ricardo Gladwell
AM To: Struts Users Mailing List Subject: Re: Problem setting nested bean properties on ActionForms I'm already using the EL versions of the tag libraries and using other EL expressions successfully in other parts of the application. The example works successfully when I do not use a n

RE: Problem setting nested bean properties on ActionForms

2004-08-06 Thread Robert Taylor
Just out of curiosity, does render a none null value? robert > -Original Message- > From: Ricardo Gladwell [mailto:[EMAIL PROTECTED] > Sent: Friday, August 06, 2004 10:12 AM > To: Struts Users Mailing List > Subject: Re: Problem setting nested bean properties on ActionFo

Re: Problem setting nested bean properties on ActionForms

2004-08-06 Thread Ricardo Gladwell
ation - how about posting the form definition from your struts-config.xml. Niall - Original Message - From: "Ricardo Gladwell" <[EMAIL PROTECTED]> To: "Jakarta Struts Users" <[EMAIL PROTECTED]> Sent: Friday, August 06, 2004 2:02 PM Subject: Problem setting n

Re: Problem setting nested bean properties on ActionForms

2004-08-06 Thread Niall Pemberton
Not if hes using a servlet container that supports el. Niall - Original Message - From: "Robert Taylor" <[EMAIL PROTECTED]> To: "Struts Users Mailing List" <[EMAIL PROTECTED]> Sent: Friday, August 06, 2004 2:25 PM Subject: RE: Problem setting neste

Re: Problem setting nested bean properties on ActionForms

2004-08-06 Thread Ricardo Gladwell
04 9:03 AM To: Jakarta Struts Users Subject: Problem setting nested bean properties on ActionForms Hi All, I'm having some problems with nested properties in Strust. Struts seems to loose property values when specifying nested bean properties in an action form. For example, the following fragm

Re: Problem setting nested bean properties on ActionForms

2004-08-06 Thread Niall Pemberton
Message - From: "Ricardo Gladwell" <[EMAIL PROTECTED]> To: "Jakarta Struts Users" <[EMAIL PROTECTED]> Sent: Friday, August 06, 2004 2:02 PM Subject: Problem setting nested bean properties on ActionForms > Hi All, > > I'm having some problems with nest

RE: Problem setting nested bean properties on ActionForms

2004-08-06 Thread Robert Taylor
ROTECTED] > Sent: Friday, August 06, 2004 9:03 AM > To: Jakarta Struts Users > Subject: Problem setting nested bean properties on ActionForms > > > Hi All, > > I'm having some problems with nested properties in Strust. Struts seems > to loose property values when

Problem setting nested bean properties on ActionForms

2004-08-06 Thread Ricardo Gladwell
Hi All, I'm having some problems with nested properties in Strust. Struts seems to loose property values when specifying nested bean properties in an action form. For example, the following fragment is an example of attempting to set a value in a view JSP: When Struts attempts to se

Cannot set nested bean properties on ActionForms

2004-08-05 Thread Ricardo Gladwell
Hi All, Struts looses property values when specifying nested bean properties in an action form. For example, the following fragment is an example of attempting to set a value in a view JSP: When Struts attempts to set the webdav.url nested bean property for, example, a DynaActionForm the