I have set initparam to a jsp file . once a request is made from the html the request is sent to a Servlet from where i call the JSP using REQUESTDISPATCHER. When i do so the page is dynamically loaded on the client side but i am unable to retrieve the parameter whihc was set in the web.xml for jsp.
If you need result for the first case define parameters for that
Joined: Oct 14, 2005
hey Gaurav, Thanks for your reply.The solution that you gave was for setting init-param to a servlet and retrieve it through config object. But the thing is i am going to add init-param only for a JSP, which should be retrieved when the Request is forwarded to a JSP.
I got the solution for it ..the jsp file name has to be given in the URL-PATTERN element in web.xml, so that the init param value set for a jsp can be retrieved in the same URL that servlet was called