myfaces-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Arch_Bytes <hermes_grif...@yahoo.com>
Subject Output Link and Command link problem
Date Thu, 26 Jul 2007 13:21:07 GMT

can't redirect a page plainly.. it gives me the error Cannot forward after
response has been committed..


<h:commandLink value="Go to this page" action="#{supplierController.link}"/>



my backing bean:

public void link(){
	HttpServletResponse response = (HttpServletResponse)
FacesContext.getCurrentInstance().getExternalContext();
	   try {
		   response.sendRedirect("http://www.shipserv.com");
	    	
	} catch (IOException e) {
		e.printStackTrace();
		}
	}



desperately in need of help..
-- 
View this message in context: http://www.nabble.com/Output-Link-and-Command-link-problem-tf4151597.html#a11810343
Sent from the MyFaces - Users mailing list archive at Nabble.com.


Mime
View raw message