• Post Reply Bookmark Topic Watch Topic
  • New Topic

Correct usage of printStackTrace() in JSP  RSS feed

 
Mark Fletcher
Ranch Hand
Posts: 897
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
Im learning JSP using Marty Halls excellent Coreservlets book. Im trying to understand the example in section 11.10, listing 11.6, "SpeedErrors.jsp" Im getting an error around the printStackTrace line?
Heres the code

When I run the page that redirects to the this page (known as SpeedErrors.jsp), I get the following error.

Could anyone point me to examples in JSP where printStackTrace is used?
Best Regards,
Mark
 
Mark Fletcher
Ranch Hand
Posts: 897
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
Nevermind, a quick search on google reveals that

Is the solution... perhaps if I had imported the java.util.* package I would have been able to use PrintWriter as is?
Sorry to trouble you all.
Mark
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!