Solved

Display JSON Data in JSP - Struts Framework - By Avoiding JQuery

Posted on 2011-02-18
3
1,061 Views
Last Modified: 2012-05-11
We are currently developing a Web Application on Struts 1.2.9 framework.

It is required therein that data available in JSON format be rendered in the form of a report. However, it is desired that Javascript be avoided and the data be rendered and routed through Beans on JSP Page.

How is this doable?

Thanks in advance
0
Comment
Question by:achitaley
  • 2
3 Comments
 
LVL 1

Assisted Solution

by:kommu
kommu earned 500 total points
ID: 34925900
JSON.org has provided libraries to create/parse JSON data through Java code. These libraries can be used in any Java/J2EE project including Servlet, Struts, JSF, JSP etc and JSON data can be created.

0
 

Accepted Solution

by:
achitaley earned 0 total points
ID: 34926108
@kommu - I do not intend to create JSON data and display it on page.

I need to USE JSON data from a datasource and use it to display it in report format from JSP using Beans. This I want to do to avoid any client side coding using tools like.. jquery's jtemplate etc. which exposes a portion of code.
0
 

Author Closing Comment

by:achitaley
ID: 36293528
I have found a way to avoid using json. However, your answer was well leading.
0

Featured Post

Better Security Awareness With Threat Intelligence

See how one of the leading financial services organizations uses Recorded Future as part of a holistic threat intelligence program to promote security awareness and proactively and efficiently identify threats.

Join & Write a Comment

Hi,      I've been learning Spring and Jersey for the past few months and to say in simple, i am pretty much impressed with these frameworks. Many developers feel it awkward to implement a RESTful Web Services with such a popular Web Application Fr…
In this article you'll learn how to use Ajax calls within your CodeIgniter application. To explain this, I'll illustrate how to implement a simple contact form to allow visitors to send you an email through your web site.
The viewer will learn how to implement Singleton Design Pattern in Java.
This tutorial covers a practical example of lazy loading technique and early loading technique in a Singleton Design Pattern.

708 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

13 Experts available now in Live!

Get 1:1 Help Now