[jboss-user] [JBoss Portal] - Re: sendRedirect and setRenderParameter

sohil.shah@jboss.com do-not-reply at jboss.com
Tue Aug 8 12:27:14 EDT 2006


Pedro-

As an alternate approach for redirect, you can still set the render parameter for your view and forward to the appropriate view.


Then you can use a javascript redirect to get to the next screen instead of using the sendRedirect method.

sample code for the view:


  | <form name="redirect" action="location to go to" method="post"/>
  | <!-- perform a sendRedirect to the above resource -->
  | <script type="text/javascript" language="javascript">
  | 	document.redirect.submit();
  | </script>
  | 

Thanks
Sohil

View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3963854#3963854

Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3963854



More information about the jboss-user mailing list