Hi all,
Please answer the following two questions for me.
1)Is there a way to specify a package for a particular JSP page?
2)If I use a RequestDispatcher to forward to another servlet/JSP, is there a way to determine who (what page) forwarded to me?
Thanks,
Anuj
Discussions
Web tier: servlets, JSP, Web frameworks: Is there a way to specify a package for a particular JSP pag?
-
Is there a way to specify a package for a particular JSP pag? (1 messages)
- Posted by: Anuj Goswami
- Posted on: August 29 2000 10:46 EDT
Threaded Messages (1)
- Is there a way to specify a package for a particular JSP pag? by Paul Jones on September 01 2000 14:32 EDT
-
Is there a way to specify a package for a particular JSP pag?[ Go to top ]
- Posted by: Paul Jones
- Posted on: September 01 2000 14:32 EDT
- in response to Anuj Goswami
You can specify a package name (and class name) if you precompile to servlets. BTW, since ostensibly the *transparency* of JSP is a virtue, what is your interest in identifying a package?
As to identifying the *sender* of a servlet dispatch, one way is to record such state in an appropriately scoped location. It appears that the RequestDispatcher *updates* the ServletRequest in the dispatch process.
Paul Jones