RE: How to resolve: getWriter() has already been called for this response

2012-06-27 Thread karthi
I misunderstood previously, it works now. Thanks. -- View this message in context: http://tapestry.1045711.n5.nabble.com/How-to-resolve-getWriter-has-already-been-called-for-this-response-tp5714111p5714132.html Sent from the Tapestry - User mailing list archive at Nabble.com. ---

RE: How to resolve: getWriter() has already been called for this response

2012-06-27 Thread Poder, Jacob
Try this: Object onActivate() { String domain = request.getHeader("Host"); if(null != domain) { if(!domain.contains("webapp.m.sample")) { try { return new URL("http://webapp.m.sample/Registration/portfolio";);

Re: How to resolve: getWriter() has already been called for this response

2012-06-27 Thread karthi
My issue is: Whenever a button click is happened in my tapestry page the address bar changed like below: For E.g., http://webapp.m.sample/Registration/login ---> After clicked on the login button address bar value changed to http://174.58.25.24/Registration/portfolio Login happen

Re: How to resolve: getWriter() has already been called for this response

2012-06-27 Thread Thiago H de Paula Figueiredo
On Wed, 27 Jun 2012 10:15:23 -0300, karthi wrote: However the page gets re-directed successfully also am using a given API only Yes, but you're still doing something that shouldn't be done. Do the right thing and nothing will go to your log. -- Thiago H. de Paula Figueiredo --

Re: How to resolve: getWriter() has already been called for this response

2012-06-27 Thread karthi
However the page gets re-directed successfully also am using a given API only org.apache.tapestry5.services.Response response; response.sendRedirect(""); Can you please tell me how to turn off this log? -- View this message in context: http://tapestry.1045711.n5.nabble.com/How-to-resolve-getW

Re: How to resolve: getWriter() has already been called for this response

2012-06-27 Thread Thiago H de Paula Figueiredo
On Wed, 27 Jun 2012 07:46:08 -0300, karthi wrote: Hi, Hi! I have a page and inside that page's onActivate method called like below servletResponse.sendRedirect("link"); You're using the wrong way of doing redirects in Tapestry event handler methods. Instead, you should return a Link o