Two Laptop Bag*
The moose likes Struts and the fly likes Get json data Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "Get json data" Watch "Get json data" New topic
Author

Get json data

nuwan wickramanayaka
Greenhorn

Joined: Sep 06, 2012
Posts: 5
I am developing change password screen using jquery / struts2 with annotations
Which contains fields oldpassword, new password, confirmpassword

This is my html with jquery



This is my changepassword java script



This is my struts 2 action class



When i click save button of chnagepassword html the save method of java script is executing and 'dat' varitable popolated with data.

So what i want is, how to get the json object data in java side?

help me

Richard Golebiowski
Ranch Hand

Joined: May 05, 2010
Posts: 213

Why are you submitting the form using JSON instead of just submitting the form?
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Get json data
 
Similar Threads
document.forms[0].submit(); throws Invalid Argument in IE
URL parameter ~~howto ?
jQuery not working on page
how to copy the data one form field to another form field by using check box
link problem