Forums Register Login

Best Design

+Pie Number of slices to send: Send
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 ]
+Pie Number of slices to send: Send
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
+Pie Number of slices to send: Send
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!
Can you smell this for me? I think this tiny ad smells like blueberry pie!
a bit of art, as a gift, that will fit in a stocking
https://gardener-gift.com


reply
reply
This thread has been viewed 930 times.
Similar Threads
Validator
branching webapp using single DynaValidatorForm
DynaValidatorActionForm not working
???en_US.errors.required??? instead of fileds names
about struts
More...

All times above are in ranch (not your local) time.
The current ranch time is
Mar 29, 2024 03:31:18.