-->
-->
 


.java Guidelines for Midterm Exam in JSP

April 30, 2008

 

April 30, 2008

Controller
—————-

-handles incoming web requests
-ControllerServlet
-converts requests to business functions
-parameter/s sent to the (request object, URL)
-RequestDispatcher (forward the request object to the calling/source JSP)

Remember:
Pure Logic - placed the managers
data/data structure - placed in the objects


database.java
—————–

-this helps your connect to the database
-inside the connections class
-don’t forget to do the DNS mapping
-change the values of string URL & string driver, as needed
-DSN is only for ODBC
-individual htmls should have "page"
    hidden fields & corresponding value,
    forms should have "post" as actions.
-contains the target pages(documents)
-use relative paths

Subscriber.java
—————–

-hold info about a subscriber
-no program logic
-private variables
-represents an object in a system
-toString() method (used for debugging)

SubscriberUsage.java
———————

- holds usage info

SubscriberManager.java
———————–

-gives data to Subscriber

UsageManager.java
——————-

-gives data to SubscriberUsage



Filed under JSP |

Comments »

No comments yet.

RSS feed for comments on this post.

Leave a comment

Line and paragraph breaks automatic, e-mail address never displayed, HTML allowed: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <code> <em> <i> <strike> <strong>



Anti-spam measure: please retype the above text into the box provided.