| # JZOS Servlet and JSP Examples

These servlets and JSPs demonstrate how a web container interacts with JZOS and z/OS facilities.

Note: These examples will only work when viewed via an http URL. They will not work if you are viewing these pages via a "file://..." URL.

Example | Execute | Notes
Hello World | Execute | Servlet that displays "Hello World".
JZOS Environment Info | Execute | Servlet that shows the current MVS user and current Jobname along with other status information.
File attribute test | Execute | JSP that displays the attributes for the specified HFS filename, DSN or DD.
WTO test | Execute | JSP that sends a message to the system log. After invoking, check the job log for the results.
DB/2 JDBC test | Execute | Servlet that tests DB2. This example will run only if DB2 and JDBC have been properly configured. See Configuring a DB/2 JNDI datasource for details.
SAF Security test | Execute | JSP that tests SAF authentication and authorization. This example will run only if SAF has been properly configured. See Configuring SAF security for details.