File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Struts and the fly likes Struts 2 JSON double select Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "Struts 2 JSON double select" Watch "Struts 2 JSON double select" New topic
Author

Struts 2 JSON double select

Armando Da Costa Microsse
Greenhorn

Joined: Nov 06, 2011
Posts: 1
Hi ppl..

I'm trying to run an example I took from the net using JSON. I am using Netbeans 6.9

I followed all the steps of the example, I put all plugin lib folder and everything, but when I run I catch this error:


Classe JsonSample.java


index.jsp


Struts.xml


Any help...
Amos Matt
Greenhorn

Joined: Mar 30, 2007
Posts: 17
Any help on this issue please?
Joe Ess
Bartender

Joined: Oct 29, 2001
Posts: 8997
    
    9

Are you getting the exact error message as above? Does your code look exactly like Armondo's? Since he posted this three years ago he probably isn't coming back to help and I don't want to spend my time debugging his problem if your problem is different.
As for Armondo's situation, the error states that the return type "json" is unknown:
Caused by: The Result type [json] which is defined in the Result annotation on the class [class struts2.actions.JsonSample] or determined by the file extension or is the default result type for the PackageConfig of the action, could not be found as a result-type defined for the Struts/XWork package [struts2.actions#convention-default#]

His configuration is wrong somewhere. What does your code look like?


[How To Ask Questions On JavaRanch]
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Struts 2 JSON double select