IDRSParams Usage
The IDRSParams servlet may be used in several ways. The IDRSParams
servlet is used to generate a valid HTML <form> for the calling of the
main IDRS servlet (IDRSServlet). It is designed so that it ONLY returns
the <form> html and nothing else. While it can be dirrectly called
(http://someserver/IDRS/IDRSParams?doc_ID=23), it is better to call it
from a jsp page with a JSP include (<jsp:include page="IDRSParams?doc_ID=23"
flush="true">). This allows for the input form to be part a full
document.
IDRSParams only supports GET and may have one of two parameters :
-
doc_ID: the docID field in the tblDoc table of the IDRS database coresponding
to the id of the desired document
-
doc_Name: the docName field in the tblDoc table of the IDRS database coresponding
to the name of the desired document
IDRSParams checks to see if a user has logged in, and if not then it also
adds a username and password field to the returned <form>.
These are the parts that should be included in to the DocVarSrc field
of the tblDoc table in the IDRS database:
-
All needed input information. NOTE: the names of the <input>
tags MUST be the same as those in the DocParams field of the tblDoc table
in the IDRS database.
-
A hidden <input> tag that tells the IDRS wether or not a report should
be made into a JSP page. This tag should apear as follows :
<input type="hidden" name="isJSP" value="[true |
false]">
Where the value is true if the report is to be processed
as a JSP page or false if the report is a standard HTML page.
-
All extra information that may be needed by a JSP page produced by the
IDRS
-
submit and reset buttons
Username and password input should NOT be included