• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Design Issue

 
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
Ranch Hand
Posts: 1514
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Search this forum or the web at large for MVC.
 
author
Posts: 288
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
reply
    Bookmark Topic Watch Topic
  • New Topic