Portlet Redirect with Spring MVC Portlets
779514Jul 25 2010 — edited Jul 26 2010Hi,
I'm relatively new to portal development and I have a very specific set of questions if you could help me out with?
We have are developing a Portal using Spring MVC Portlets (Java Portlet) and it was decided that we'd have a single Portlet to serve up all module specific content. Basically, we only have a single portlet on a page.
What we're trying to do is perform a user authentication. From what I've been reading it is best practice to perform this programmatically and once done perform a redirect. Currently, I'm doing this in the Action phase of the portlet and using the reference to the HttpServletResponse to perform the redirect, which I hope is correct/ok.
What I need now is a way to redirect users to specific URLs, one of the most important would be the previous rendered portlet. The only thing I can think of is using the HTTP_REFERER to somehow generate a url to redirect back to but I'm not having any luck figuring this out. It's also difficult since we only have one portlet for all our content.
Is there anything I can do to accomplish this? Any references?
Thank you in advance,
Tim