• 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 Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Implicit Objects in JSP 0.91?

 
Greenhorn
Posts: 12
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
Posts: 3892
5
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
reply
    Bookmark Topic Watch Topic
  • New Topic