A friendly place for programming greenhorns!
Big Moose Saloon
Register / Login
Portals and Portlets
Redirecting to a portlet on clicking a button
Joined: Sep 08, 2011
Dec 27, 2012 00:26:07
I want to redirect from one portlet to another. I know we can redirect in handlePostbackData method in portlet's backing file (on click of submit button for e.g)
But is there a way to redirect in forms action tag or onClick of a button? I tried this below technique but its not successful.
<form method="post" name="test" action="<render:windowUrl windowLabel='bPortlet' />">
Preferrably I want to create a URL as follows,
WindowURL url = WindowURL.createWindowURL(request, response, "/bPortlet");
And based on this url, I want to redirect in jsp's button control. Please let me know how this can be done.
I agree. Here's the link:
subject: Redirecting to a portlet on clicking a button
ActionResponse.sendRedirect to parent frame outside of iFrame
[solved] struts 2 mapping for .action
Redirecting or Forwarding to another Portlet with Params
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2014