now my concern is - that the answer is 4 6 451 1 2 i was puzzled by the order 451, and i thought that the parameters passed to the included.jsp using jsp aram enjoy preceedence over the request parameters. so inside included.jsp, the areay will hold 4,5,1 in that order.
i cross checked this with jsp spec, and felt nice that it too conformed the same !
SCJP 1.4 - 95% [ My Story ] - SCWCD 1.4 - 91% [ My Story ] Performance is a compulsion, not a option, if my existence is to be justified.
I understand what you mean --> 1 --> 4, 1 --> 5, 4, 1
It is also written to refer to "SRV.8.1.1". There, it is written that Parameters specified in the query string used to create the RequestDispatcher take precedence over other parameters of the same name passed to the included servlet.. So now we are left wondering what's the actual order for request parameters. Looking at "SRV.4.1 HTTP Protocol Parameters", it says : if a request is made with a query string of a=hello and a post body of a=goodbye&a=world, the resulting parameter set would be ordered a=(hello, goodbye, world).
So we may deduce that the result of the question is 4,5,1.
Anyway, that's unclear And I don't think you'll get such tricky question at the exam.