wood burning stoves 2.0*
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


Win a copy of OCM Java EE 6 Enterprise Architect Exam Guide this week in the OCMJEA forum!
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: 12769
    
    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 agree. Here's the link: http://aspose.com/file-tools
 
subject: Reusing code in different applications?