Gonzalo Jose wrote:

> Hi All.
> How can I store an object in the application scope,  and how can I access
> and modify it from a JSP page.
> I've read that you can do it using
> getServletContext().setAttribute("MyNean", mybean) but I've tried it and I
> get an error message saying that getServletContext() doesn't have a method
> named setAttribute().
>

This means that the servlet library you are using is based on the 2.0 servlet API,
which did not include this call (it was added in 2.1).  If you're stuck with this,
you'll need to check the WebSphere docs for any unique functionality they provide
for this purpose.

>
> Can I access objects stored in the application and at the same time access
> to other objects stored in the session scope?
> I'm using WebSphere A.S. 2.0 (JSP 0.92).
> Thanks in advance.
>

Craig McClanahan

===========================================================================
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
FAQs on JSP can be found at:
 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.html

Reply via email to