Help coderanch get a
new server
by contributing to the fundraiser
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Ron McLeod
  • Paul Clapham
  • Devaka Cooray
  • Liutauras Vilda
Sheriffs:
  • Jeanne Boyarsky
  • paul wheaton
  • Henry Wong
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Tim Moores
  • Carey Brown
  • Mikalai Zaikin
Bartenders:
  • Lou Hamers
  • Piet Souris
  • Frits Walraven

Struts 2 JSON double select

 
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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...
 
Greenhorn
Posts: 17
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Any help on this issue please?
 
Bartender
Posts: 9626
16
Mac OS X Linux Windows
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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?
reply
    Bookmark Topic Watch Topic
  • New Topic