Invoking a backing bean from another servlet

Hello All,

I have a project where there is an old servlet that was developed using a home-grown framework (as in, not Struts or any other public api). It is using servlets and JSP.

I am converting this application to JSF. That's the good news. But what I have to do in the mean time is to create the new application so that it looks exactly like the legacy app, bring up the new app with links that link over to the other servlet, then one by one, replace each link with ones that do it the new way.

So far, it is really slick. I can link from the JSF app over to the legacy app and nobody can tell what I've done. Both servlets are running in the same context, and I can pass what I need back and forth easily using the context attributes.

Fine.

But what I can't figure out how to do, is to call back from the old servlet to JSF so that a backing bean is invoked. Take a logout call for instance. My sidebar allows the user to logout. So if someone is in the legacy app page ( a JSP page on the legacy system ), I want to be able to format that link such that it calls my backing bean call which I have registered in the JSF servlet with an action = "#{logoutBean.doLogout}"

I looked at the generated javascript for links and made my own javascript function that I could show you, but I'll hold out for now. Is what I am trying to do even possible? I don't care what hoops I have to jump through. This is a temporary solution until my entire port is completed.

[1509 byte] By [jackett_dada] at [2007-11-15]