dcsimg
Forwarding to a servlet
1 posts in topic
Flat View  Flat View
TOPIC ACTIONS:
 

Posted By:   Abhinav_Srivastava
Posted On:   Wednesday, November 13, 2002 05:49 AM

While forwarding to a servlet
in getRequestDispatcher(java.lang.String path)
should the path argument be there as one of the url-paterns mapped in the web.xml (it occured to me).
But then why is this not the case while forwarding to a jsp.

Re: Forwarding to a servlet

Posted By:   Bozidar_Dangubic  
Posted On:   Wednesday, November 13, 2002 09:08 AM

there is no mapping to JSPs in the web.xml. Perhaps an overlook in the specification. just so you know, you do not have to put the path argument in the getRequestDispatcher as one of the url-patterns mapped in the web.xml. you can forward to a servlet that does not have a mapping similar to what you would do in case of JSP
About | Sitemap | Contact