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

Design Issue

Harpreet Wala
Greenhorn

Joined: Mar 26, 2006
Posts: 1
Hello Everyone,

I am new to Java and would like to know the pest practice how to acomplish follow using Servlet, Bean, XSLT, JSP:

Read the data from the database (may be using servlet or Entity bean or any other method?) and present it to client in HTML format.

Is there any reliable article available to find the best practice to accomplish this kind of task.

Thanks,
Harpreet
Bosun Bello
Ranch Hand

Joined: Nov 06, 2000
Posts: 1510
Search this forum or the web at large for MVC.


Bosun (SCJP, SCWCD)
So much trouble in the world -- Bob Marley
ak pillai
author
Ranch Hand

Joined: Feb 11, 2006
Posts: 288
You should use a model 2 MVC architecture. Strongly recommend you to read any article on J2EE MVC pattern:

MVC design pattern

Also,sugge as sted, google for "J2EE MVC"

commercial code:

Use some of the frameworks which uses this MVC 2 architecture like Struts (request based), JSF or Tapestry (component based) for this purpose. If it is a new application, my recommendation is Tapestry or JSF. The above mentioned frameworks give you
the controller and the view.

For model you can use O-R mapping tool like Hibernate along with EJB session beans.

If you could provide more info like where you are going to use XSLT, Is it a commercial project or a practice project etc, ranchers can guide you a bit better.


java j2ee job interview questions with answers | Learn the core concepts and the key areas
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Design Issue