Ted --

I have a fairly large S1 web app now infused with S2 capabilities.  I am
experimenting with techniques for calling between the two "sides" and have
it working fine using redirect type forward and result mappings.  As an
aside, the S1 app used Tiles heavily and the modest S2 app is using T2.  I
was also able to infuse the S1 app with T2, so this modified S1 app is
running with S1/T1 and S2/T2.

Now back to my original point -- Is there a supplied facility for preserving
parameters across these redirects?  It looks like the S1 plugin might work
from new-2-old, but I am puzzled going the other direction.  Also, I'd like
to consider a solution independent of that plugin.  Granted, if S1 code is
changing it should be migrated, however, there is always that blasted time
line!  I am trying to explore all the possibilities so as to assist the
large S1 installations with the bridge.

Scott

On 10/5/07, Ted Husted <[EMAIL PROTECTED]> wrote:
>
> Technically, it's still one application. The Struts 1 framework is
> exposed by a servlet, and the Struts 2 framework is exposed by a
> filter. But, the Java Web framework is designed so that you can use as
> many servlets and filters as you need, and provides a useful "layer"
> between the two.
>
> The simplest thing is to let the Struts 1 portion answer the *.do URIs
> and let the Struts 2 portion answer the *.action URIs. Everyone can
> share session and application scope as needed. One page can submit to
> the other portion, just include the extension as part of the URI, as
> if you were calling a HTML page.
>
> If you do want to run the Struts 1 Action classes under Struts 2,
> there is the plugin that Wes mentioned. But, there is not a solution
> that lets the Struts 1 JSPs render under a Struts 2 Action. (Some tags
> would, but there would be issues with the HTML tags.)
>
> Recently, someone suggesting writing a new taglib for Struts 2 that
> used the Struts 1 tag API, which is an interesting idea. With the
> plugin, you might then be able to run Struts 1 pages and Actions under
> Struts 2. I believe people are actually working on such a thing, but
> there's no telling when it would be ready to use.
>
> -- HTH, Ted
> <http://www.husted.com/ted/blog/>
>
>
> On 10/4/07, Leena Borle <[EMAIL PROTECTED]> wrote:
> > Hi ,
> >      I have started developing my application using Struts-2. Now my
> > requirement is I need to use another application(separate WAR file) with
> > this new one.   This other application is written strut1 framework. My
> > question is how do I make calls to the actions in struts-1 from my
> > jsps/actions. my application framework tries to find these actions
> within my
> > framework only and throws error.
> >       Can anyone suggest me how could I put a layer between these two
> > application to interact with each other?  I have never worked on
> multiple
> > applications before. Is there any article on how to interact between two
> > applications ?
> >
> > Thanks,
> > Leena
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>


-- 
Scott
[EMAIL PROTECTED]

Reply via email to