• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Struts1 and Struts2

 
Greenhorn
Posts: 7
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
All,

We have an large application which is currently implemented in Struts 1.2. but we need to implement using DOJO for new screen.
As we all know that Struts 2 has in-built DOJO support.

I want to implement only one link/tab in Struts2 remaining should use Struts1 .

To do the above . WHat are files I need to change and how (web.xml, struts.xml) and How many Jar files ( i already know Struts - core, OGNL, XWORK)

is struts2-struts1 plugin.jar will help us?

I am sorry to post BIG query?


Your help will be appreciated.
 
Author
Posts: 12617
IntelliJ IDE Ruby
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Personally, I'd be wary of using the S2 Dojo plugin: it's been deprecated, and uses a *very* old version of Dojo.

If you're creating new functionality in S2 there's no reason to use the S2-S1 plugin; that's specifically for using S1 action classes in an S2 app.
 
vijay kumar rani
Greenhorn
Posts: 7
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
SO we cannot integrate both S1 and S2 .. Is it impossible ? if want to implement accordian bar and my custom select boxes Shall i implement those by using S1 with DOJO?
 
David Newton
Author
Posts: 12617
IntelliJ IDE Ruby
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Sure, they can be integrated; I'm not sure how you got the impression they couldn't. What I meant was that the S1-S2 plugin has a specific purpose and is of pretty limited value, and doesn't really apply to your situation.
 
vijay kumar rani
Greenhorn
Posts: 7
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Ok thanks.

Can you provide any example?
 
David Newton
Author
Posts: 12617
IntelliJ IDE Ruby
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Example of what?

The Struts 1 plugin documentation describes how to use it--but again, I caution you that this really isn't what you're trying to do. Running S2 alongside S1 is fairly trivial--just set them both up, make sure the mappings don't conflict, and you're basically done.

Personally I'd just use native Dojo in the S1 app--you get a *substantially* improved version of Dojo, are able to craft your JavaScript code better since you're not working around any possible tag library issues, and so on. I'm a little biased, though; I'm not a fan of tag-based JavaScript libraries. I don't like the power and expressiveness of JavaScript being taken out of my hands. I feel that JS tag libraries are best for *very* simple usecases or when people don't know how to program JavaScript effectively.
 
Time flies like an arrow. Fruit flies like a banana. Steve flies like a tiny ad:
a bit of art, as a gift, that will fit in a stocking
https://gardener-gift.com
reply
    Bookmark Topic Watch Topic
  • New Topic