<s3>

Trivial page using Servlets.

</s3> <s3> <a href="basic/snoop?a=b">Servlet Parameters</a>

Shows the servlet environment: parameters and attributes. Servlet and application init parameters are defined in resin.conf

</s3> <s3> <a href="basic/hello.jsp">Hello, World (Java)</a>

hello.jsp
Example of a trivial page.

</s3> <s3> <a href="basic/env.jsp?foo=bar+baz&test=test1">Environment (Java)</a>

env.jsp
Displays information about the web request.

</s3> <s3> <a href="basic/counter.jsp">Counter (Java)</a>

counter.jsp
How to implement a simple counter.

</s3> <s3> <a href="login/index.jsp">Login (Java)</a>

web.xml, TestAuthenticator
Authentication and simple page protection.

</s3> <s3> <a href="basic/form.html">Form (JavaScript)</a>

form.jsp
Retrieving form information.

</s3> <s3> <a href="basic/session.jsp">Session (JavaScript)</a>

session.jsp
Information persistent between requests. Reload the page to see the state change.

</s3> <s3> <a href="basic/dir.jsp">Directory (JavaScript)</a>

dir.jsp
Displays the contents of the directory.

</s3> <s3> <a href="basic/file.jsp">File (JavaScript)</a>

file.jsp
A fortune program, randomly choosing a file to display.

</s3> <s3> <a href="navigation/navigation.jsp">Navigation (JavaScript)</a>

toc.xml navigation.jsp Navigation.js header.js
Generates web page navigation automatically, using a simple XML site map file.

</s3> <s3> <a href="tictactoe/tictactoe.jsp">Tic-Tac-Toe (JavaScript)</a>

tictactoe.jsp score.js
A simple tic-tac-toe game with simulated intelligence. Illustrates breaking up projects into different files.

</s3> <s3> <a href="xsl/basic.xtp">Basic</a>

basic.xtp basic.xsl
Trivial example of using XTP to automatically rewrite <a href> to deal with non-cookie browsers.

</s3> <s3> <a href="xsl/vary.xml">Vary</a>

vary.xml
Using multiple stylesheets to vary XTP formatting.

</s3> <s3> <a href="xsl/navigation.xtp">Navigation</a>

navigation.xtp header.xsl Navigation.js
Basic navigation and site headers.

</s3> <s3> <a href="xsl/counter.xtp">Counter</a>

counter.xtp counter.xsl
A simple counter.

</s3> <s3> <a href="xsl/verify-bad.xtp">Verify</a>

verify-bad.xtp verify.xsl
Verifies an XTP file against an expected XML format.

</s3> <s3> <a href="templates/guestbook.jsp">Simple JSP Guest Book</a>

guestbook.jsp
A simple guest book implemented with flat JSP.

</s3> <s3> <a href="templates/guestbook.xtp">Simple XTP Guest Book</a>

guestbook.xtp simple-format.xsl
A simple XTP guest book with a basic XSL stylesheet.

</s3> <s3> <a href="templates/guestbook_bean.jsp">JSP Bean Guest Book</a>

guestbook_bean.jsp guestbook_inc.jsp GuestBook.java Guest.java
Using beans and included pages to factor the guestbook.

</s3> <s3> <a href="templates/GuestJsp">JSP Template Guest Book</a>

GuestJsp.java login.jsp add.jsp admin.jsp
A simple guest book using JSP templates to format the results.

</s3> <s3> <a href="templates/GuestXtp">XTP Template Guest Book</a>

GuestXtp.java login.xtp add.xtp admin.xtp guestbook.xsl form.xsl
A simple guest book using XTP templates to format the results.

</s3>