vsendhil

Forum Replies Created

Viewing 3 replies - 1 through 3 (of 3 total)
  • Author
    Replies
  • in reply to: Obtaining JSON object from struts action response #100176
    vsendhil
    Participant

    vsendhil said:What are the java libraries (jar) required for json?

    I tried the above with json-lib-2.2.2-jdk15.jar and I am getting “java.lang.NoClassDefFoundError: net.sf.ezmorph.Morpher” error.


    I downloaded the JARs and fixed this

    in reply to: Obtaining JSON object from struts action response #100175
    vsendhil
    Participant

    aarati said:

    Hello,

    Finally got it to work Smile.

    Made slight modifications to the existing code:

    Struts Action:

    1) Earlier was returning to an empty jsp page with no specific code. Now returning null.

    2) Using the write method of the jsonObj to write the response data.

    The action method now looks like the following:

    public ActionForward getJSONData(ActionMapping mapping, ActionForm form,

    in reply to: Obtaining JSON object from struts action response #100173
    vsendhil
    Participant

    What are the java libraries (jar) required for json?

    I tried the above with json-lib-2.2.2-jdk15.jar and I am getting “java.lang.NoClassDefFoundError: net.sf.ezmorph.Morpher” error.

Viewing 3 replies - 1 through 3 (of 3 total)

Stay connected with us in your favorite flavor!