This week's book giveaways are in the Java EE and JavaScript forums.
We're giving away four copies each of The Java EE 7 Tutorial Volume 1 or Volume 2(winners choice) and jQuery UI in Action and have the authors on-line!
See this thread and this one for details.
The moose likes Servlets and the fly likes Please help me in design Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of The Java EE 7 Tutorial Volume 1 or Volume 2 this week in the Java EE forum
or jQuery UI in Action in the JavaScript forum!
JavaRanch » Java Forums » Java » Servlets
Bookmark "Please help me in design" Watch "Please help me in design" New topic
Author

Please help me in design

jayram
Ranch Hand

Joined: Oct 30, 2000
Posts: 94
Hello guys
I am designing an Intranet system which has a web extension. Some users are on LAN and they access intranet thru swing based applet wheres some users are on web who use JSP generated pages for the user interface
I am supposed to develop this application. Can anyone suggest way in which this can be acheived minimizing code duplicacy and redundancy
Cheers
Jayram
Peter den Haan
author
Ranch Hand

Joined: Apr 20, 2000
Posts: 3252
The J2EE way would be to stuff as much of your application as possible in Enterprise JavaBeans. The servlets/JSPs and the Swing application would ideally be no more than thin front-ends.
How well this would work in practice depends on what you try to build, of course. Have a look in the EJB forum.
- Peter
Heath Lilley
Ranch Hand

Joined: Jan 09, 2001
Posts: 72
We are using the MVC (MOdel view Controller) method of designing our apps because the learning curve for EJBs was to great...
You can write some decently smart apps with the MVC if you dont have time to learn EJBs.
servlets beans and jsps
model = Standard java beans(businesslogic)
view = jsps(presentation)
controller = Servlets(flow control)
applets
controller and view = applet
model = Standard java beans
EJBs do seem very worth while but I just don't have a complete understanding ... yet.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Please help me in design