tdmcginley

BaseAction.java

May 13th, 2011
90
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.60 KB | None | 0 0
  1. package actions.base;
  2.  
  3.  
  4. import services.Services;
  5.  
  6. import com.opensymphony.xwork2.ActionSupport;
  7.  
  8. public class BaseAction extends ActionSupport {
  9. /**
  10. *
  11. */
  12. private static final long serialVersionUID = -8300474991048337515L;
  13.  
  14. // So that spring can inject the business singleton
  15. protected Services services;
  16. public void setServices(Services value) {
  17. services=value;
  18. }
  19.  
  20. // For redirect results
  21. protected String redirectUrl;
  22. public String getRedirectUrl() {
  23. return redirectUrl;
  24. }
  25. public String redirect(String to) {
  26. redirectUrl = to;
  27. return "redirect";
  28. }
  29.  
  30. }
Advertisement
Add Comment
Please, Sign In to add comment