Forums Register Login
Struts 2 JSON double select
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



Any help...
Any help on this issue please?
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?
Montana has cold dark nights. Perfect for the heat from incandescent light. Tiny ad:
ScroogeXHTML 7.1 - RTF to HTML5 / XHTML converter

This thread has been viewed 2190 times.

All times above are in ranch (not your local) time.
The current ranch time is
Feb 22, 2018 23:47:04.