/servlet-interest Paula Lumby wrote:

> Can you shed light on the following problems I experienced with the JSP1.0
> reference implementation:
> 1.
> I thought the variables "request", "session", and some others were implicitly
> defined in JSPs.. However the page compile objects when I use them.  Should I
> declare them somehow?

Check out the examples that came with the reference implementation for samples of
correct usage -- in particular the example at $JSP_HOME/examples/snp/snoop.jsp.

>
> 2.
> According to the JSP-1_0-public-draft-1.pdf file, the import directives of jsp
> list package names. However, when use a package name, the page compile complains
> that a class of that name is not found.

>
> In short, does the JSP1.0 reference implementation conform to pages 39/40 and
> 47/48 of the spec. Are there examples anywhere?
>

I have not played with the reference implementation much, but 99.9% of the problems
people have with packages is that they don't set their classpath correctly.  Be
sure that your servlet classes are properly nested in the directories indicated by
their package names, and be sure that the top-level directory (that is, the
directory that contains the top-level package name directory) is on your class
path.

If you don't understand how class paths work, start with the Java Language Tutorial
at JavaSoft's web site (http://www.javasoft.com/docs/books/tutorial). or the tools
documentation that comes with the JDK.

>
> 3.
> What methods are involved in the arrow labelled "redirect request" in the
> diagram on page 28 of the spec (section 1.6.5). This page is a terrible tease.
> It says "This programming model is supported by the underlying Servlet API".
> So, what are those API?
>

See the RequestDispatcher class in the version 2.1 servlet API
(http://www.javasoft.com/products/servlet).  There is also a good servlet trail in
the Java Language Tutorial mentioned above.

> Paula Lumby
> IBM VisualAge for Java/C++/RPG Services
> tel:   448-2517        (T/L) 778-2517
> Room:  2G42C      2G/KB4/1150/TOR
> e-mail:                     [EMAIL PROTECTED]
>
> External Address:
> IBM Toronto Laboratory
> 1150 Eglinton Avenue East
> Toronto, Ontario, Canada, M3C 1H7
>
> FAX:  (416) 448-4414
>

Craig McClanahan

___________________________________________________________________________
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff SERVLET-INTEREST".

Archives: http://archives.java.sun.com/archives/servlet-interest.html
Resources: http://java.sun.com/products/servlet/external-resources.html
LISTSERV Help: http://www.lsoft.com/manuals/user/user.html

Reply via email to