[jboss-user] [JBoss Seam] - Re: Querystring param from remote application

monkeyden do-not-reply at jboss.com
Thu Oct 12 18:15:21 EDT 2006


For posterity sake:

@RequestParameter
  | private String id;
  | 
  | @Create
  | public void login() {
  |     ...
  |     user = getUser(userId);            
  |     if(user == null){
  |         FacesMessages.instance().add("Unable to log you in.  Try again.");
  |         Redirect redirect = Redirect.instance();
  |         redirect.setViewId("/login.jsp");
  |         redirect.execute();
  |     }else{
  |         Context session = Contexts.getSessionContext();
  |         session.set("user", user);
  |     }
  |     ...
  | }
  | 

Anyone know if there is a way to invoke a Seam action using HTTP GET, instead of using @Create?

View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3978022#3978022

Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3978022



More information about the jboss-user mailing list