• Post Reply Bookmark Topic Watch Topic
  • New Topic

EPractice Lab mock exam 1 the url of getRequestDispatch methods

 
Himai Minh
Ranch Hand
Posts: 1400
8
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

For example, in a context rooted at "/" and a request to /myWebFolder/index.html, a request dispatch obtained via
ServletRequest.getRequestDispatch("index.html") will behave exactly like a call to ServletContext.getRequestDispatch("/myWebFolder/index.html")


First of all, the NetBean platform does not let me set / as a context path. I have to set it as /aName.
Secondly, if the index.html is in myWebFolder directory,
or


should be used.
 
What are you doing? You are supposed to be reading this tiny ad!
the new thread boost feature brings a LOT of attention to your favorite threads
https://coderanch.com/t/674455/Thread-Boost-feature
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!