how to redirect the session from j_security_check(--action) in login page( login page is having 2 radio buttons, eg: dashboard and project)defaultly its redirecting to Dashboard but sme times even i checked project also..its redirecting to dashborad only how to redorect to project screen....
Maneesh Godbole wrote:The Ranch is NotACodeMill Tell us what you have tried so far, where you are stuck and we will be more than happy to help you out.
Hi Maneesh, can you please look in to this issue....its an urgent issue
You misunderstand how servlet security works. You would never submit a form to j_security_check directly, you would submit it to wherever it's supposed to go, and the servlet/portal container handles security transparently.
can you please send me code sample for this... redirecting from servlet/jsp to....
thanks
bharath
Tim Moores
Rancher
Joined: Sep 21, 2011
Posts: 2407
posted
0
My point was that there is no code sample - you would code the form as if no security was in place, and then set up web.xml accordingly. You will need to read up on servlet security about how to do that. I'm having a hard time believing that a portal server wouldn't have centralized authentication handling, though.
how can i get the httpServletRequest in portlets(we have renderRequest), see below code
public void doView(RenderRequest request, RenderResponse response)
throws PortletException, IOException {----
HttpServletRequest httpRequest = (HttpServletRequest) request.getParameter("j_username");// we tried this senario but the geting value is null always.
.
.
.
}