File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Servlets and the fly likes Implicit Objects in JSP 0.91? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Servlets
Bookmark "Implicit Objects in JSP 0.91?" Watch "Implicit Objects in JSP 0.91?" New topic

Implicit Objects in JSP 0.91?

Marc Santiago

Joined: Dec 11, 2003
Posts: 12
I'm trying to make a call to application.getRealPath() on a WAS server that appears to be running JSP 0.91, and failing miserably. The same code works fine on a Tomcat 5 server running JSP 1.2. The error messages seem to be indicating that the application implicit object is undefined.
Were implicit objects available in 0.91? If not, does anyone have a suggestion as to how I might acquire the real path of a file under 0.91?
Tim Baker
Ranch Hand

Joined: Oct 04, 2003
Posts: 541
I don't know about .9 but getRealPath is available on the context object. getServletContext() or something like that.

Kim Jong II (North Korea's Dear Leader) said:Nuclear weapons don't kill people, people kill people.
Ken Robinson
Ranch Hand

Joined: Dec 23, 2003
Posts: 101
If it's still running 0.91 then it may not implement everything required. Do some test. If it's failing, it's probably just not implemented.
Kyle Brown
Ranch Hand

Joined: Aug 10, 2001
Posts: 3892
AFAIK, this was not supported in JSP 0.91. I just did a quick search of the JSP 0.91 spec and could not even find a reference to implicit objects -- I think this was actually first introduced in JSP 1.0.
BTW, though, if you're running on a version of WAS that supports 0.91, either you're using WAS 3.5, which also supported JSP 1.0 through a switch, or your running WAS 3.0. In any case both products have gone out of service, so I'd advocate upgrading as soon as possible.

Kyle Brown, Author of Persistence in the Enterprise and Enterprise Java Programming with IBM Websphere, 2nd Edition
See my homepage at for other WebSphere information.
I agree. Here's the link:
subject: Implicit Objects in JSP 0.91?
It's not a secret anymore!