aspose file tools*
The moose likes Struts and the fly likes Struts1 and Struts2 Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "Struts1 and Struts2 " Watch "Struts1 and Struts2 " New topic
Author

Struts1 and Struts2

vijay kumar rani
Greenhorn

Joined: Aug 21, 2009
Posts: 7
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

Joined: Sep 29, 2008
Posts: 12617

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

Joined: Aug 21, 2009
Posts: 7
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

Joined: Sep 29, 2008
Posts: 12617

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

Joined: Aug 21, 2009
Posts: 7
Ok thanks.

Can you provide any example?
David Newton
Author
Rancher

Joined: Sep 29, 2008
Posts: 12617

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
 
subject: Struts1 and Struts2