Advertisement
mindfriction

Liferay Login Hook

Jun 28th, 2012
94
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.54 KB | None | 0 0
  1. public class LoginAction extends Action {
  2.     public void run(HttpServletRequest req, HttpServletResponse res) {
  3.         HttpServletRequest originalRequest = PortalUtil.getOriginalServletRequest(req);
  4.         String origUrl = HttpUtil.getCompleteURL(originalRequest);
  5.         String foo = HttpUtil.getParameter(origUrl, "foo");
  6.         System.out.println("## origUrl: " + origUrl);
  7.         System.out.println("## foo: " + foo);
  8.     }
  9. }
  10. ------------------------------------------------
  11. OUTPUT
  12. ## origUrl: http: //localhost:8080/c
  13. ## foo:
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement