Java Mailing List Archive

http://www.gg3721.com/

Home » Struts Users Mailing List »

user Digest 31 Aug 2010 11:08:51 -0000 Issue 9159

user-digest-help

2010-08-31


Author LoginPost Reply

user Digest 31 Aug 2010 11:08:51 -0000 Issue 9159

Topics (messages 207327 through 207329):

struts/utils.js included twice
 207327 by: Robert Taylor

Re: Running Struts1 and Struts2 together?
 207328 by: Stephen Turner
 207329 by: Andrew Foltan (afoltan)

Administrivia:

---------------------------------------------------------------------
To post to the list, e-mail: user@(protected)
To unsubscribe, e-mail: user-digest-unsubscribe@(protected)
For additional commands, e-mail: user-digest-help@(protected)

----------------------------------------------------------------------


Attachment: user_207327.ezm (zipped)
Greetings,

I'm using Struts 2.1.8.1 and have noticed that the <s:head /> will output <script ......src="/webapp/struts/utils.js"></script> even when <s:form ....theme="xhtml"/> is used which does the same thing. So i end up with 2 requests for struts/utils.js.

Probably harmless, but also probably not a good idea.
Does anyone else see the same behavior or care to elaborate?


/robert

Attachment: user_207328.ezm (zipped)
On Mon, 23 Aug 2010 14:22:54 -0400, Greg Lindholm
<greg.lindholm@(protected):

> Is there any issues with running Struts1 and Struts2 together in the
> same application?
>
> I have a couple old Struts1 applications which I plan on converting to
> Struts2 over time, but would like to start doing new development in
> Struts2 immediately while converting the Struts1 screens and action
> over bit-by-bit as needed.
>

How is this going Greg? I'm interested because I have a project that could
use this solution, but I've no idea how big a job it is, what the pitfalls
are etc.

Thanks,
Steve


Attachment: user_207329.ezm (zipped)
Hello,
 We're currently successfully running a combined Struts1 / Struts2
environment in some of our products. This allows us to leverage legacy
S1 pages in new products without investing in rewriting as S2. Its
accomplished by starting the S2 controller from the web.xml file. Not
too difficult or problematic.
Cheers,
 Andrew


  <!-- Struts2 Controller Startup -->
  <filter>
    <filter-name>struts2</filter-name>

<filter-class>org.apache.struts2.dispatcher.ng.filter.StrutsPrepareAndEx
ecuteFilter</filter-class>
  </filter>

  <filter-mapping>
    <filter-name>struts2</filter-name>
    <url-pattern>/*</url-pattern>
  </filter-mapping>




-----Original Message-----
From: Stephen Turner [mailto:sturner@(protected)]
Sent: Monday, August 30, 2010 11:06 AM
To: Struts Users Mailing List; Greg Lindholm
Subject: Re: Running Struts1 and Struts2 together?

On Mon, 23 Aug 2010 14:22:54 -0400, Greg Lindholm
<greg.lindholm@(protected):

> Is there any issues with running Struts1 and Struts2 together in the
> same application?
>
> I have a couple old Struts1 applications which I plan on converting to
> Struts2 over time, but would like to start doing new development in
> Struts2 immediately while converting the Struts1 screens and action
> over bit-by-bit as needed.
>

How is this going Greg? I'm interested because I have a project that
could
use this solution, but I've no idea how big a job it is, what the
pitfalls
are etc.

Thanks,
Steve

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@(protected)
For additional commands, e-mail: user-help@(protected)


©2008 gg3721.com - Jax Systems, LLC, U.S.A.