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]

Reply via email to