Implementation of PRePMain

    The PRePMain stays mostly in its old structure.There are some methods which are not used anymore, removed (as for instance the method setDatabaseConnection()) and some other may be slightly changed.

    Constructor:

    default constructor, which creates a Session object

    Methods:

    setPrintWriter(PrintWriter pWriter)
    sets the specified PrintWriter

    getSession()
    returns the Session object

    putFile(File file)
    gets all tags from this file

    putField(String name, String value)
    creates a PRePTag with the name and the value and adds it to the TagList

    putField(PRePTag)
    adds the PRePTag to the TagList

    output(PrintWriter pwClient)
    compiles the __TEMPLATE__ in the specified PrintWriter

    output()
    compiles the __TEMPLATE__ tag

    getValue(String strTagName)
    returns the value of the specified tag. If it does not exist, it returns null

Back