• Post Reply Bookmark Topic Watch Topic
  • New Topic

JSP causing error (is it ServletContext causing it?)

 
jesse taron
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello everyone;
I took the following code from a servlet and placed it into a JSP...when it was in the Servlet, everything worked as expected ( I was able to get the cookie I was expecting)...but when I place this code into my JSP, it compiles fine, but always throws the catch (even though I know the cookie is in the browser)...any ideas? Basically the code is taking a cookie (NOT a regular Java Cookie, but a different type of cookie created by others) from the browser, calling methods to expire it, and returning it to the browser:



I am at a loss...any help would be greatly appreciated...
Thanks,
Jesse
 
ib idris
Greenhorn
Posts: 29
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
JSP's have built in servlet context object called application. Use that instead of context.
http://galileo.spaceports.com/~ibidris/
[ September 14, 2003: Message edited by: ib idris ]
 
Consider Paul's rocket mass heater.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!