• 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 all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Liutauras Vilda
  • Junilu Lacar
  • Jeanne Boyarsky
  • Bear Bibeault
Sheriffs:
  • Knute Snortum
  • Devaka Cooray
  • Tim Cooke
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • Ron McLeod
  • Carey Brown
Bartenders:
  • Paweł Baczyński
  • Piet Souris
  • Vijitha Kumara

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

 
Ranch Hand
Posts: 254
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

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.

struts.xml:



JSP:



Retrieveing.action:

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


Thanks:
request.PNG
[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
  • 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.
 
If you are using a wood chipper, you are doing it wrong. Even on this tiny ad:
Java file APIs (DOC, XLS, PDF, and many more)
https://products.aspose.com/total/java
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!