• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Liutauras Vilda
  • Campbell Ritchie
  • Tim Cooke
  • Bear Bibeault
  • Devaka Cooray
Sheriffs:
  • Jeanne Boyarsky
  • Knute Snortum
  • Junilu Lacar
Saloon Keepers:
  • Tim Moores
  • Ganesh Patekar
  • Stephan van Hulst
  • Pete Letkeman
  • Carey Brown
Bartenders:
  • Tim Holloway
  • Ron McLeod
  • Vijitha Kumara

Implicit Objects in JSP 0.91?  RSS feed

 
Greenhorn
Posts: 12
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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?
TIA.
 
Ranch Hand
Posts: 541
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I don't know about .9 but getRealPath is available on the context object. getServletContext() or something like that.
 
Ranch Hand
Posts: 101
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
author
Ranch Hand
Posts: 3892
5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
Don't get me started about those stupid light bulbs.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!