aspose file tools*
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 The Java EE 7 Tutorial Volume 1 or Volume 2 this week in the Java EE forum
or jQuery UI in Action in the JavaScript 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?
 
 
subject: Get json data