Read cookies from Tapestry5

2008-06-20 Thread IT.Adviser
I need to read cookies. In simple Java servlet I can use next code: protected void doPost(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException { HttpSession userSession = req.getSession(true); String currentRootUrl = (String) userSession

Read arguments from current page

2008-06-20 Thread IT.Adviser
I use GoogleAuth call, that opens my page and add some arguments to page url: http://localhost:8080/Test?token=CKF50YzIHxCT85KMAg How (and where in class Test, in constructor, or something else?) I can read arguments (token=CKF50YzIHxCT85KMAg) ? -- View this message in context: http://www.nabb

Re: Google API:AuthSubRequest && Tapestry

2008-06-20 Thread IT.Adviser
I use next code: public Object onSubmitFromTestForm() { String testLink; testLink = AuthSubUtil.getRequestUrl("http://localhost:8080/Test";, "http://www.google.com/calendar/feeds/";,

Re: How to change url of active page to external link from Tapestry 5

2008-06-20 Thread IT.Adviser
; Em Fri, 20 Jun 2008 09:45:44 -0300, IT.Adviser <[EMAIL PROTECTED]> > escreveu: > > Return an URL object: > > public Object onSubmitFromTestForm() { > return new URL("http://somethingelse.com";); > } > > -- View this message in context: http://

How to change url of active page to external link from Tapestry 5

2008-06-20 Thread IT.Adviser
I had submit event handler. I need to return external link (external to site). Example: i work under site mysite.com, and need to change url (load page into browser) from somethingelse.com. As I understand I can use next code: @InjectPage private TestPage _test; public O

Google API && Tapestry

2008-06-17 Thread IT.Adviser
Is there are any examples with GoogleAPI usage throught Tapestry? Can you gice me such examples, or link? -- View this message in context: http://www.nabble.com/Google-APITapestry-tp17898838p17898838.html Sent from the Tapestry - User mailing list archive at Nabble.com. --

Google API:AuthSubRequest && Tapestry

2008-06-16 Thread IT.Adviser
I need to call http://code.google.com/apis/accounts/docs/AuthForWebApps.html#AuthSubRequest AuthSubRequest throught Tapestry. I has Java examples, that use this function. But I can't understand how change this code with Tapestry usage. -- View this message in context: http://www.nabble.com/Goo