Supposes i m passing a query string to a RequestDispatcher.... and the request object contains a parameter with the same name as a parameter in query String.. So which parameter (Query String/Request) would be overwritten by the other..?
RequestDispatcher rd = context.getRequestDispatcher("/abc.jsp?myparam=aaa"); rd.include(request, response); the myparam Parameter is also paramter in request
Share Knowledge to gain it.
SCJP 2, SCWCD 2, SCDJWS, IBM 141 (In Progress), IBM 486 (Next)
No it will append the parameter values to the array of String... The first index of the parameter will be "aaa", and the second and so on will be parameter values from the request... You can use getParameterValues method of the request... But if you use getParameter method, the string on the first index will be returned...