• 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

Best Design

 
Ranch Hand
Posts: 73
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi,

I have some web applicationd design question to ask. My web application basically provide add, modify and delete customer information. My program flow is :

add customer information jsp page -- > Server side Java Validator to check the input parameter from the jsp form --> forward to the original customer information jsp page if any errors occurred --> forward to the confirmation page when no errors --> invoke the adaptor if the inputed information is ok --> return to the jsp page if any information need to be changed

so in term of java, it's : jsp --> validator --> adaptor to insert data to db, or I need a form bean to store the form data ?

any better ideas ?

THanks for your advises

Transistor
[ April 25, 2006: Message edited by: YuenLian Wu ]
 
Ranch Hand
Posts: 1847
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Typically you'd go JSP->Servlet->{whatever else, maybe EJB, other servlets, other services}->Servlet->JSP.

The first and last Servlet could be the same one, and there might be nothing in between them (but usually there is).

More generic:
View->Dispatcher(controller)->Businesslogic->Dispatcher->View
 
author and iconoclast
Posts: 24207
46
Mac OS X Eclipse IDE Chrome
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
To expand on what Jeroen said: our own Bear Bibeault wrote a nice article on this topic in the last issue of the JavaRanch Journal. Give it a read -- I guarantee you'll find it useful!
 
Consider Paul's rocket mass heater.
reply
    Bookmark Topic Watch Topic
  • New Topic