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 happens successfully and my page navigated to the success page (here portfolio) but the only problem is domain name changed to IP address in the address bar This is a routing issue and need to be fixed by network admin, however I was asked to give a workaround for this issue through application so tried the below logic: In the onActivate method, checked the value of header HOST and if it is an IP address then redirect to domain address with the response page void onActivate() { String domain = request.getHeader("Host"); if(null != domain) { if(!domain.contains("webapp.m.sample")) { try { response.sendRedirect("http://webapp.m.sample/Registration/portfolio"); } catch (final IOException e) { logger.error("Exception: " + e); } } } } This works cool in UI but in the background it throws the above mentioned error [ERROR] TapestryModule.RequestExceptionHandler Processing of request failed with uncaught exception: getWriter() has already been called for this response java.lang.IllegalStateException: getWriter() has already been called for this response For this scenario please give me a suggestion to resolve this? Thanks, Karthi. -- View this message in context: http://tapestry.1045711.n5.nabble.com/How-to-resolve-getWriter-has-already-been-called-for-this-response-tp5714111p5714130.html Sent from the Tapestry - User mailing list archive at Nabble.com. --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail: users-h...@tapestry.apache.org