try:

request.getAttribute("STH");
page.getServletContext().getAttribute("STH");

in JSP pages you have severial classes such page, request, session from them
you have access to what you want.


----- 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