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
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
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 ;-
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
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
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.
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
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
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
(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
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
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
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
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
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 =
arded message attached.
> thanks & regards
>
>
>
>
>
> __
> Click here to donate to the Hurricane Katrina relief effort.
> http://store.yahoo.com/redcross-donate3/
>
>
> -- Forwarded message -
/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
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 -
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
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
>
>
>
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
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
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
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
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
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).
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
43 matches
Mail list logo