[jboss-user] [JBoss Seam] - Re: keeping context using external webapp

ollix do-not-reply at jboss.com
Thu Mar 29 16:56:51 EDT 2007

just in case someone needs to do the same, I wrap up my last post.

I created that ugly helper, to enable to use the web container's jsessionid. I use it to create a simple link, that contains both the jsessionid and the conversation id. The remote server uses this information to setup a callback URL : 
The cid component is a second ugly helper, that returns the current conversationId:

  | @Name("cid")
  | public class ConversationIdHelper {
  | 	@Override
  | 	public String toString() {
  | 		return Conversation.instance().getId(); 
  | 	}
  | }
The remote server calls this URL, retrieves the resulting HTML and injects some payment information using predefined provider specific tags. The resulting HTML is than represented to the user. The URL seen by the user will be a payment provider one, but the content looks just like the stuff from our website. The only "problem" left is the need to use absolute URLs for all Images, stylesheets etc. I used a second template for this.

If somebody knows a more elegant way to do the same, I would be happy to get some feedback.

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

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

More information about the jboss-user mailing list