json with atg

864 views
Skip to first unread message

mahalingam

unread,
Dec 10, 2008, 2:23:03 AM12/10/08
to json-taglib
hi,am using json with atg,i am trying to execute the example.when the
form submits it goes to formhanlder and it didnt show any result at
result.jsp page.the content s of the results.jsp page here,

<%@ taglib uri="/WEB-INF/taglib/dspjspTaglib1_0.tld" prefix="dsp" %>
<%@ taglib uri="/WEB-INF/taglib/json.tld" prefix="json" %>

<%@ page contentType="text/json" %>

<dsp:page>
<dsp:importbean bean="/example/base/AjaxExampleFormHandler"/>
<% System.out.println("the result page called up"); %>


<json:object>
<json:property name="error" value="${false}"/>

<json:property name="id">
<dsp:valueof bean="AjaxExampleFormHandler.id"/>
</json:property>

<json:property name="title">
<dsp:valueof bean="AjaxExampleFormHandler.title"/>
</json:property>

<json:property name="description">
descr <dsp:valueof bean="AjaxExampleFormHandler.description"/>
</json:property>

<json:property name="time">
<dsp:valueof bean="/atg/dynamo/service/CurrentDate.secondAsDate"/>
</json:property>
</json:object>

</dsp:page>

Jeremy Sears

unread,
Dec 10, 2008, 11:34:27 AM12/10/08
to json-...@googlegroups.com
Does your page get called and "the result page called up" gets printed
to the log, or does this not get printed to the log at all? Trying to
sort out whether this is an ATG issue or a JSON-taglib issue.

If you don't see your message in your log, then you likely need to set
either an action on your ATG <dsp:form> tag, or you need to set a
success URL on your form-handler.
--
Jeremy Sears

mahalingam

unread,
Jan 27, 2009, 5:28:01 AM1/27/09
to json-taglib
it was worked out am forgot to reply sorry

On Dec 10 2008, 9:34 pm, "Jeremy Sears"
> > </dsp:page>- Hide quoted text -
>
> - Show quoted text -
Reply all
Reply to author
Forward
0 new messages