• Post Reply Bookmark Topic Watch Topic
  • New Topic

RequestDispatcher question

 
Promod kumar
Ranch Hand
Posts: 90
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I have the following JSP and a html file, forw.html with text, "This is static content"

When I request the JSP, I get an illegal state exception. The stack trace is copied. If I use forw.jsp(when getting the request dispatcher) which has the same contents as forw.html, the code works (The browser displays "This is static content"). I looked at the API and did not find anything, Can someone explain this.

Source of the question: HFSJ Final Mock, based on Question 22



 
Gravity is a harsh mistress. But this tiny ad is pretty easy to deal with:
the new thread boost feature: great for the advertiser and smooth for the coderanch user
https://coderanch.com/t/674455/Thread-Boost-feature
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!