Originally posted by Srinivas Kalvala:
Can you tell me, how can we test that one ?
?
Use the scriptlet expression in a page and see if a new
servlet is generated on behalf of the JSP whenever it is accessed. You will find that it will not.
Can you tell me, the problems that can occur with the use of request.getContxtPath() in jsp directly
None. In fact, you
must use the context path when creating correct server-relative URLs.
Though I do recommend that scriplet expression be avoided under the JSP 2.0 environment in favor of the EL equivalents.