Forums Register Login

json and jsp?

+Pie Number of slices to send: Send
hi

iam wondering can i use json with only jsp without servlet or struct ... if yes how can i see example?
thanks
+Pie Number of slices to send: Send
What's a "struct"?

The use of JSON is independent of any underlying technology. Why you'd *want* to use it with only JSP is a little beyond me.
+Pie Number of slices to send: Send
He probably meant 'struts', but yeah, like David mentioned - JSON is a JavaScript notation which is independent of any underlying server side technology. So using ASP, JSP, Servlet, etc - won't make any difference!
+Pie Number of slices to send: Send
well yes i mean struts ,,,thanks Anirvan Majumdar (notice iam she not he)...
coz when i search over the internet all the jsp example for json include servlet too
so i was just wondering
David Newton dont be angry
+Pie Number of slices to send: Send
I'm rarely angry :)

Most examples won't be just JSP because using just JSP is considered an older, discounted practice. Just ask Bear--he'll tell you.
+Pie Number of slices to send: Send
 

asa dos wrote:coz when i search over the internet ...


Please use real words when posting to the forums. Abbreviations such as "coz" in place of "because" only serve to make your posts more difficult to read and less likely to generate useful responses.

Please read this for more information.

thanks,
bear
JavaRanch sheriff
+Pie Number of slices to send: Send
P.S. I'm not angry either.
+Pie Number of slices to send: Send
why people here get angry so easily ...
any how thanks all people and try to cheer up
+Pie Number of slices to send: Send
I use JSP to generate JSON. I'm using Ext JS, which has "data stores" that are populated via JSON returned from an a-sync call. I use JSPs because I already have a standard MVC framework, and some of my controllers are used to fetch business objects used by "normal" JSPs, and those generating JSON. The JSON itself is created using this json tag library.
+Pie Number of slices to send: Send
GSON is a great library for generating JSON without the overhead of JSP.
+Pie Number of slices to send: Send
weeeelll - at least I can assure you that I wasn't 'angry' in the least :] And please accept my apologies for making such a grossly presumptuous mistake.
I at least hope you got your answer.
+Pie Number of slices to send: Send
People see what they want to see. If anyone wants to see anger in these posts, well, no one is going to be able to stop them.
+Pie Number of slices to send: Send
thanks so much people , i tried this example
Example


but i get error say JSONObject not found , note that i put the library in WEB_INF\lib
+Pie Number of slices to send: Send
i solve it thanks
Tomorrow is the first day of the new metric calendar. Comfort me tiny ad:
a bit of art, as a gift, the permaculture playing cards
https://gardener-gift.com


reply
reply
This thread has been viewed 7046 times.
Similar Threads
How to return an object instance by JSP
encoding - decoding JSON objects in JSP page
How to pass JSON Object to another window using window.open
JSON in JSP
Adding JSON tag library to Websphere RSA 7.0
More...

All times above are in ranch (not your local) time.
The current ranch time is
Apr 15, 2024 22:43:41.