Win a copy of Design for the Mind this week in the Design forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Design Issue

 
Harpreet Wala
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 1510
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Search this forum or the web at large for MVC.
 
ak pillai
author
Ranch Hand
Posts: 288
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic