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

S

StephaneLeFou

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
 
L

Lew

StephaneLeFou said:
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.
 
O

Owen Jacobson

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.

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
 
A

Arne Vajhøj

Owen said:
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.

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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,744
Messages
2,569,484
Members
44,903
Latest member
orderPeak8CBDGummies

Latest Threads

Top