Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsWhite Papers
Discussion GroupsFirst AidDatabasesJavaBeansGUIJava 3DVirtual MachineCORBASecurityToolsGeneral
Java DirectoryOpen Source ProjectsSample Book ChaptersUser GroupsWeb Resources
Related Topics
Databases.NETMore Topics ...

Java Forum / General / December 2007

Tip: Looking for answers? Try searching our database.

Can I use Struts 1.1 and 2.0 at the same time?

Thread view: 
StephaneLeFou - 10 Dec 2007 18:40 GMT
Hi,

Can I have Struts 1.1 and Struts 2.0 at the same time for my web
development?  I'm also using Eclipse 3.2, Java 1.5.

Thanks
Lew - 11 Dec 2007 01:56 GMT
> Can I have Struts 1.1 and Struts 2.0 at the same time for my web
> development?  I'm also using Eclipse 3.2, Java 1.5.

It might be possible, although I doubt the Struts folks intended for anyone to
do that.  AIUI, Struts 2 is designed to work with the JSTL (JSP Standard Tag
Library), which took over a lot of the functionality originally only available
from Struts 1 tags.

I have worked on several Struts 1 projects, but I only know about Struts 2
what I've read in their API and taglib docs.  That does reveal that they've
dropped a lot of the redundancy between their stuff and the JSTL.

Signature

Lew

Owen Jacobson - 11 Dec 2007 02:36 GMT
>> Can I have Struts 1.1 and Struts 2.0 at the same time for my web
>> development?  I'm also using Eclipse 3.2, Java 1.5.
[quoted text clipped - 8 lines]
> that they've dropped a lot of the redundancy between their stuff and
> the JSTL.

Having used both, I can't see any reason why you couldn't use them in
the same project provided you gave them different URL suffixes to work
with (eg. struts1 with .do and struts2 with .action, or similar).  The
two frameworks are essentially independant: struts 2 contains almost
nothing of the original struts, instead building on the WebWork
framework.  Even the config files have different names under struts2,
not to mention different auto-discovery mechanisms.

I've never actually tried it, though, so your mileage probably will
vary.  The best advice I can offer is to "try it and see".

-o
Arne Vajhøj - 11 Dec 2007 03:10 GMT
> Having used both, I can't see any reason why you couldn't use them in
> the same project provided you gave them different URL suffixes to work
[quoted text clipped - 3 lines]
> framework.  Even the config files have different names under struts2,
> not to mention different auto-discovery mechanisms.

One thing is whether it technical will work. Maybe it will.

Another thing is whether the resulting code will be easily
maintainable. I have some doubts about that.

Arne


Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.