freebeme
unread,Feb 5, 2009, 6:59:59 AM2/5/09Sign in to reply to author
Sign in to forward
You do not have permission to delete messages in this group
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to json-taglib
Hello,
I have jsp tags for doing certain things. I created them years ago and
sometimes use them like this e.g.:
<mytag:doSomething value="<%=v%>" />
I am now modifying my jsp's to output json.
I guess this is a a general jsp question but how can I now achieve the
following sort of thing or is it not possible or am I having a stupid
moment:
<json:object>
<jspn:property name="value" property="<mytag:doSomething value="<%=v
%>" />" />
</json:object>
You see I want to be be able to json escape whatever the doSomething
tag returns.
Alternatively, Im happy to use the java toolkit for JSON, something
like
<%
JSONObject obj = new JSONObject()
obj.put("value","<mytag:doSomething value="v"/>");
%>