File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
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 EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "Get json data" Watch "Get json data" New topic

Get json data

nuwan wickramanayaka

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?
jQuery in Action, 2nd edition
subject: Get json data
Similar Threads
link problem
URL parameter ~~howto ?
jQuery not working on page
document.forms[0].submit(); throws Invalid Argument in IE
how to copy the data one form field to another form field by using check box