Advertisement
Guest User

processAction method

a guest
Sep 30th, 2014
196
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.92 KB | None | 0 0
  1. public void processAction(
  2. StrutsPortletAction originalStrutsPortletAction,
  3. PortletConfig portletConfig, ActionRequest actionRequest,
  4. ActionResponse actionResponse)
  5. throws Exception {
  6. ThemeDisplay themeDisplay =
  7. (ThemeDisplay)actionRequest.getAttribute(WebKeys.THEME_DISPLAY);
  8.  
  9. Long currentuser = themeDisplay.getUserId();
  10.  
  11. if (currentuser != null) {
  12. log.info("Wrapped /admin_server/edit_user action");
  13.  
  14. }
  15.  
  16.  
  17. l
  18. log.info("User Email : "+actionRequest.getParameter("emailAddress"));
  19.  
  20.  
  21. originalStrutsPortletAction.processAction(
  22. originalStrutsPortletAction, portletConfig, actionRequest,
  23. actionResponse);
  24.  
  25. User selUser = (User) actionRequest.getAttribute("USER");
  26.  
  27. log.info("User : "+selUser.getUserId);
  28.  
  29. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement