iTP Secure WebServer System Administrator's Guide (iTPWebSvr 5.1+)

Using NonStop Servlets for JavaServer Pages With
The iTP Secure WebServer
iTP Secure WebServer System Administrator’s Guide522659-001
9-38
Logs and Error Conditions
HTML design. The JSP container and iTPWebServer then send the revised JSP page
back to the client, where the user can view the results in the web browser.
How To Create a Form
To write the HTML form in a JSP source file, you can use JSP tags to pass data between
the form and the server-side object. These are the basic steps:
Write a JSP source file, creating an HTML form and giving each form element a
name.
Write the bean in a java source file, defining properties, GET, and SET methods that
correspond to the form element names.
Add a <jsp:usebean> tag in the JSP source code to create or locate an instance of the
bean.
Add a <jsp:setProperty> tag in the JSP source code to set properties in the bean
from the HTML form. The bean needs a matching SET method.
Add a <jsp:getProperty> tag to retrieve the data from the bean. The bean needs a
matching GET method.
Logs and Error Conditions
Servlet Logging
SSC processes report configuration and status information to the standard output
(stdout) file, and report errors and exceptions to the ems log and server log files.
Configuration and Status Information
NSJSP processes report the following kinds of information to the standard output file:
A message indicating that the NSJSP process has started up, or failed to start.
Any message written to the standard output file by a servlet or servlet method. For
example, the default init( ) method writes a message reporting that it was invoked.
Exception Message Format
When an error occurs during startup, the container reports an ems message consisting of
the following elements:
A line that reports the date, the time, the process name, and the syslog severity
category, as described in the OSS manual set.
The prefix (SSC). SSC is the "older" name for the NSJSP process, still used in error
messages.
A field identifying the SSC—matching the SSC name (ssc-name) part of the
URL— if the servlet was loaded in response to a URL reference. This field is not
present if the error occurred while the SSC process was starting up.