Thursday, June 24, 2010

Difference between request scopes

<%= request.getAttribute("method") %> - 12
coz. request object will call the getAttribute method and get the exact value.

${requestScope.method } - 12
request scope same as above, it will get the value from the requestScope map.

${pageContext.request.method} - POST/GET
page context will give the request object and .method will define wht sort of request is it.

No comments:

Post a Comment