Win a copy of Machine Learning Systems: Designs that scale this week in the Scala forum
or Xamarin in Action: Creating native cross-platform mobile apps in the Android forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

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
 
What are your superhero powers? Go ahead and try them on this tiny ad:
Rocket Oven Kickstarter - from the trailboss
https://coderanch.com/t/695773/Rocket-Oven-Kickstarter-trailboss
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!