I have built numerous webapps in php/mysql over the years that allow insert/modify/delete of db content...however, I am having some difficulty wrapping my brain around the java approach... I'm still not clear on what a "flow-chart" of the process would look like..(i.e. jsp form > servlet > bean > servlet > db > bean > servlet > jsp display ???)
Can anyone point me to a very simple example (employee data, cd collection, event calendar, etc...) that could help make this clear for me?
I had the j2ee structure thrust upon me due to my company purchasing websphere and all anyone could tell me was that I need to use the following code
I guess I'll still need to figure out the necessary "package imports" and all the "exception handling", but I'm hoping to find something that will allow me to "drop in" this code and make minor edits to the db queries (which I DO understand...)
All replies will be greatly appreciated -- Thanks in advance!!!
Glad that you're here with us on the good ol' JavaRanch and I reckon that you'll find this a helpful and useful site, but we do got us a few rules that y'all got to play by. One of these is that proper ID is required before you can belly on up to the bar. Please take a gander at the JavaRanch Naming Policy and adjust your display name to match it.
The particulars is that your display name must be a first and a last name separated by a space character, and must not be obviously pulling our legs!
For my apps, the usual flow of this kind of deal is usually along the lines of
1) JSP form submits to servlet 2) Servlet utilizes business layer to perform appropriate action 3) Servlet gathers info for display, data (usually beans) is placed in scoped variables on the request 4) Servlet forwards to JSP page
Sometimes there's a 3b where the processing servlet fowards to a "display prep" servlet if appropriate.
Joined: Jan 10, 2005
Sorry about the "alias" there... I try to set up accounts so that when the time comes for me to leave the job, my successor can continue using the accounts... Anyway... I should be showing up as "Sean McKernan" now....Web Producer at Bryant University in Smithfield, RI... Thanks for the chance to make it right....