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 ;-
Have you tried to use firebug or some http proxy or sniffer to check the
reponse sent to the browser?
2014-10-28 20:50 GMT-04:00 john lee :
> After click the button, the value of partid is passed to action
> class, and see the output '123' from the console.the assigned value of
> dummym
After click the button, the value of partid is passed to action class,
and see the output '123' from the console. the assigned value of dummymesg
is displayed on the console as well.
but the dummymesg never return to front javascript. looks like success or
error function call never
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
Using the above steps,
1.Start server.
2.Remove the EAR file from servers tab in eclipse.
3.Restart server
4.The error will be gone on loading login page of application server.
5.Deploy your application(EAR file ) again.
--
View this message in context:
http://struts.1045723.n5.nabble.com/java-
7 matches
Mail list logo