[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Gnumed-devel] appointments in oscar

From: Syan Tan
Subject: [Gnumed-devel] appointments in oscar
Date: Fri, 30 Jun 2006 16:30:44 +0800

oscar in the cvs still looks a little messy, but it works I suppose.

the rschedule and appointments stuff is thinly wrapped sql  queries and updates in jsp pages

and java beans ( basically java server pages abstraction of stateful data referencing). is found in oscar_mcmaster/WEB-INF/classes/src/oscar  directory.

This is the global reference used to store a lot of the session state data.

e.g.   the jsp page,  providercontrol.jsp  is  the main initialization page for the AppointmentMainBean.

It hardcodes sets an associative array , for name -> sql statements in setDBOperations() on the

bean, which is later used in other pages like scheduletemplateapply.jsp in the oscar_mcmaster/web/schedule

directory. Basically this page has all the validation and persistence code embedded as java in jsp,

and it uses AppointmentMainBean which has the sql update and query overloaded methods ,

such as  and executeQueryUpdate(... and queryResults(...   which combines various forms of parameter types,

with looking up the named query array in AppointMainBean set by the providercontrol jsp.

Not very satisfying , intellectually I suppose, but it works.


reply via email to

[Prev in Thread] Current Thread [Next in Thread]