• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Generating Servlets Using forms

 
Greenhorn
Posts: 25
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi, I have to write a program for my database class that generates servlets using FORM files. We were not taught this process in class; rather we were expected to learn it on our own time. I've written servlets before directly, but I've never had to automate the process. I'm having a lot of trouble understanding where to start on this project. I'm not looking for someone to write the code for me; rather, I'd like someone to explain very clearly and unambiguously what steps I should take to accomplish this project. I've sought help from the professor with no luck.

Here are the directions he's given us; thanks for your help.

1. write a program that parses a FORM file, collecting its information into internal data structures. Question: I've written code to search a directory for .form files which then stores them into a list:



I don't understand where to go from here. How do I process these forms? Do I parse each form and store it in a list or an array? If so, what does this accomplish?

2. write another program that uses these data structures to create (via JDBC) a relational table in Oracle to contain tuples that will be submitted via this form. Question: I'm assuming this program is used to actually execute the form's actions?

3. write a third program that generates a Java file containing the genform, procform, and aggform methods, as prescribed in the Survey Specification Files]Survey Specification Files (http://www.cs.utexas.edu/users/dsb/CS347/Projects/SurveyFiles.html). Question: I am completely lost as to how I'm supposed to write these methods. Is there even any documentation of these methods in Java? Or are these methods user-defined?

4. automate the creation of Project 1's gateway web site. Question: This step could be cleared up if I understood steps 1-3.

5. automate the creation of a web site given the following FORM specifications. An example set of forms is here (http://www.cs.utexas.edu/~hamid/cs347/form-examples.html). Question: Same as above.
[ April 25, 2006: Message edited by: Bear Bibeault ]
 
reply
    Bookmark Topic Watch Topic
  • New Topic