• 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 ...
  • Tim Cooke
  • Campbell Ritchie
  • Ron McLeod
  • Liutauras Vilda
  • Jeanne Boyarsky
  • Junilu Lacar
  • Rob Spoor
  • Paul Clapham
Saloon Keepers:
  • Tim Holloway
  • Tim Moores
  • Jesse Silverman
  • Stephan van Hulst
  • Carey Brown
  • Al Hobbs
  • Piet Souris
  • Frits Walraven

Struts.xml mapping, receiving Array-collection from action to JSP.

Ranch Hand
Posts: 254
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

I'm using AJAX, JSON, with struts-2. I want to retrieve Array-collection from action to JSP (I've only one JSP which behaves as input.JSP & output.JSP). I can insert the data, update the data but when I'm trying to retrieve data, service class to action class data retrieving. But retrieving Array-collection from action to JSP not getting. I want those Array-collection in my JSP. My Struts.xml mapping is wrong. I'm not getting how to map in this case. Below is my code. Please see and correct my problem as soon as possible.




In this action, I'm getting arraycollection in str. Iwant to return to the JSP. This is the issue.

[Thumbnail for request.PNG]
In broser, when I sent request the through JSON, It is showing like this.
Ranch Hand
Posts: 237
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
You may want to consider making use of a recently released library of classes supporting the Java Platform for DataTables. If you are looking for CRUD (Create,Read,Update,and Delete) functionality on the server side for the Java platform, JED has just been released. Check it out: http://jed-datatables.ca . You can create whatever tables in your database and JED will retrieve them for you and send the appropriate JSON string to the client side. JED has all the same functionality as the original PHP Editor.
WHAT is your favorite color? Blue, no yellow, ahhhhhhh! Tiny ad:
Building a Better World in your Backyard by Paul Wheaton and Shawn Klassen-Koop
    Bookmark Topic Watch Topic
  • New Topic