[jboss-user] [JBoss Seam] - Re: How to Handle POST Callbacks from a third party appliati

nynymike do-not-reply at jboss.com
Mon Sep 10 10:49:35 EDT 2007


Actually, the solution was quite simple:

pages.xml

  |     <page view-id="/jbillingCallbackHandler.xhtml"
  |         action="#{jBillingCallbackHandlerAction.processPost}">
  |     </page>
  | 

Action

  | @Stateless
  | @Scope(ScopeType.STATELESS)
  | @Name("jBillingCallbackHandlerAction")
  | public class JbillingCallbackHandlerAction implements
  | 		IJbillingCallbackHandlerAction {
  | 	
  | //	@In(required=false)
  | //	JbillingCallbackEntity callback;
  | 	
  | 	@RequestParameter("cmd")
  | 	private String cmd;
  | 	
  | 	@RequestParameter("user_id")
  | 	private String user_id;
  | 	
  | 	@RequestParameter("login_name")
  | 	private String login_name;
  | 
  | 	@RequestParameter("from_status")
  | 	private String from_status;
  | 
  | 	@RequestParameter("to_status")
  | 	private String to_status;
  | 	
  | 	@Override
  | 	public String processPost() {
  | 		System.out.println("**********" + cmd);
  | 		System.out.println("**********" + user_id);
  | 		System.out.println("**********" + login_name);
  | 		System.out.println("**********" + from_status);
  | 		System.out.println("**********" + to_status);
  | 		return "home";
  | 	}
  | 
  | }
  | 



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

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



More information about the jboss-user mailing list