File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
Win a copy of Clojure in Action this week in the Clojure forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Struts1 and Struts2

 
vijay kumar rani
Greenhorn
Posts: 7
  • 0
  • Mark post as helpful
  • send pies
  • 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.
 
David Newton
Author
Rancher
Posts: 12617
IntelliJ IDE Ruby
  • 0
  • Mark post as helpful
  • send pies
  • 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
  • 0
  • Mark post as helpful
  • send pies
  • 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
Rancher
Posts: 12617
IntelliJ IDE Ruby
  • 0
  • Mark post as helpful
  • send pies
  • 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
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Ok thanks.

Can you provide any example?
 
David Newton
Author
Rancher
Posts: 12617
IntelliJ IDE Ruby
  • 0
  • Mark post as helpful
  • send pies
  • 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.
 
I agree. Here's the link: http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic