This week's book giveaway is in the OO, Patterns, UML and Refactoring forum.
We're giving away four copies of Refactoring for Software Design Smells: Managing Technical Debt and have Girish Suryanarayana, Ganesh Samarthyam & Tushar Sharma on-line!
See this thread for details.
The moose likes Servlets and the fly likes Reusing code in different applications? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


JavaRanch » Java Forums » Java » Servlets
Bookmark "Reusing code in different applications?" Watch "Reusing code in different applications?" New topic
Author

Reusing code in different applications?

Ivan Jouikov
Ranch Hand

Joined: Jul 22, 2003
Posts: 269
Say, for instance, I have an account system in 1 application, and I want to implement an exact same account system in another application.

I'd have to copy my .jsps, but do I really have to copy my .java's?

Isn't there a way to share code between applications without packing it into jars and putting it into common/lib ?
William Brogden
Author and all-around good cowpoke
Rancher

Joined: Mar 22, 2000
Posts: 12999
    
    5
Web applications are intentionally kept separate for security reasons - thats why you have to take extra steps to share compiled .class (not .java source) files between applications.
Bill
Ivan Jouikov
Ranch Hand

Joined: Jul 22, 2003
Posts: 269
Makes sense... Thanks..

Ant it is
 
I’ve looked at a lot of different solutions, and in my humble opinion Aspose is the way to go. Here’s the link: http://aspose.com
 
subject: Reusing code in different applications?
 
It's not a secret anymore!