On Fri, 24 Jan 2014 02:28:03 -0200, Anbazhagan.G
<anbazhaga...@snovabits.net> wrote:
Hi All,
Hi!
From test2.java, I make a http connetion to test.java for getting olny
test.java return value (welcome) in test2.java.
You requested the page, not the result from getGenerateJson(), so it is
absolutely correct that you get the whole page as the result of your HTTP
GET.
Is chance to get only welcome from test.java. Please give me your
valuable suggestion or idea to achieve like that.
Add this method to Test.java:
Object onActivate() {
return new TextOutputStream("application/json", getGenerateJson());
}
Tapestry pages don't need to have a template, as long as you return
content in an onActivate() content.
Also take a look at the JSONObject and JSONArray classes from Tapestry.
--
Thiago H. de Paula Figueiredo
Tapestry, Java and Hibernate consultant and developer
http://machina.com.br
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
For additional commands, e-mail: users-h...@tapestry.apache.org