Win a copy of Functional Reactive Programming this week in the Other Languages forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Best Design

 
YuenLian Wu
Ranch Hand
Posts: 73
  • Mark post as helpful
  • send pies
  • 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 ]
 
Jeroen T Wenting
Ranch Hand
Posts: 1847
  • Mark post as helpful
  • send pies
  • 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
 
Ernest Friedman-Hill
author and iconoclast
Marshal
Pie
Posts: 24212
35
Chrome Eclipse IDE Mac OS X
  • Mark post as helpful
  • send pies
  • 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!
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic