Instead of the spec, I have the the JSP Syntax charts posted to my bulletin
board...it has all of these nice shortcuts on two sheets of paper:

http://java.sun.com/products/jsp/pdf/card11.pdf

or the more lengthy version:

http://java.sun.com/products/jsp/tags/11/syntaxref11.html

regards,

the elephantwalker



-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]]On Behalf Of Marcel Schutte
Sent: Friday, June 01, 2001 1:50 AM
To: Orion-Interest
Subject: Re: Problem with jsp pages


Hi Antonio,

The way you wrote it right now, getServletContext() should be a method of
your current jsp and it isn't. That's what the error is telling you.

The correct way to access the servlet context is to use the implicit object
'application'. This is a predefined variable in every jsp.

For a complete list of these implicit objects, see the jsp 1.1
specification, section 2.8. It's at <orion>\docs\jsp\jsp1_1-spec.pdf

Good luck,
Marcel

----- Original Message -----
From: "Antonio Vazquez" <[EMAIL PROTECTED]>
To: "Orion-Interest" <[EMAIL PROTECTED]>
Sent: Friday, June 01, 2001 9:39 AM
Subject: Problem with jsp pages


> Hi all,
> I'm a newbie using Orion and I have a problem.
> I need to get Servlet Context to get an attribute, but when I use
> getServletContext().getAttribute("Attribute") I receive the follow error:
>
> /jsp/adestadoc.jsp.java:35: Method getServletContext() not found in class
> /jsp/adestadoc.jsp. (JSP page line 9)
>         Vector vectorUsuarios =
> (Vector)getServletContext().getAttribute("vu");
>
> I've put tools.jar and rt.jar in the Orion directory. I haven�t any other
> problems executing servlets and jsp pages.
> Can anybody help me?
>
> Thanks in advance.
>
> Antonio
>
>




Reply via email to