The Author Online Book Forums are Moving

The Author Online Book Forums will soon redirect to Manning's liveBook and liveVideo. All book forum content will migrate to liveBook's discussion forum and all video forum content will migrate to liveVideo. Log in to liveBook or liveVideo with your Manning credentials to join the discussion!

Thank you for your engagement in the AoF over the years! We look forward to offering you a more enhanced forum experience.

helmers (7) [Avatar] Offline
2nd edition, Section 4.7: ServletContext: A Closer Look

P.53: getResource(String path)... For instance, if you pass a path to a JSP file, it will give you the unprocessed data, i.e. in this case the JSP source code, when you read the contents.

Here are the limitations of the getResource method:
You cannot pass a URL of any active resource - for example, a JSP page or servlet - to this method.

--> Sounds contradictory? Perhaps you mean to say 'You can pass a URL of an active resource, but it will be treated as if it were a static resource' or something like that? Or am I missing something here? An example would be great then...