I am new to this list, however I'm very familiar with Java/servlets and JDBC.
 
I apologize if this is slightly off topic, however I have searched the archives with no luck.
 
My dilemma is this. I have a fairly extensive application based completely on servlets. It's quite robust. However, it is very difficult to maintain due to 30,000 lines of HTML, which are embedded directly my software. The great majority however, is in a separate class, simply called HTML. Yet I imagine some 1000+ lines of HTML are coded into my JDBC class which returns a StringBuffer back to my HTML class and ultimately back to the user.
 
Over the last two days I have read a great deal about JSP. Everything from JRuns implementation to Netscape's DevEdge Online(which I might add is a GREAT previously undiscovered wealth of information). JSP sounds great, but how do I go about yanking 1000 lines of HTML out of my JDBC class and implementing them into JSP? My thoughts are as follows.
 
What I would like to do is create a hashtable which would hold vector objects. Then I could use this Hastable to store all information produced from my resultset, which is generally less than 10 rows/10 columns. I could then store this hash in another class that could contain my presentation formatting methods, for which I could access through a JSP page by using either a servlet or an EJB. My problem with EJB is all the containers I have found thus far are quite expensive. I may consider leaning in this direction if I could find a free or less expensive container app. Anyone have any ideas?
 
Until such time that EJB's become feasible(with regards to cost of implementation) I think that a servlet, which will query my class which contains my previously created hastable, is the answer. I can simply return HTML from this "formatting" class that will contain all the data required for that particular page.
 
I guess my questions are:
 
Is all this worth it? (Has anyone else done something similar to this?)
Does anyone have better ideas, than my aforementioned thoughts?
 
Any help would be greatly appreciated.
 
  
John D. McDonald
CipherStream Systems
email: [EMAIL PROTECTED]
web: www.cipherstream.com
-------------------------------------------------------
Secure E-Business Is Our Business
-------------------------------------------------------

Reply via email to