Saturday, March 14, 2009

The following are the contents of test.jsp

Question :The following are the contents of test.jsp

Welcome to my web page

This example demonstrates the output of test.jsp

<%! String name=request.getParameter(``name``); %>

Name is <%=name %>

If the user types http://localhost:8080/test.jsp?name=JavaGalaxy, What

will the output be? (JSP)

Answer :Compilation error as all the implict objects (request,session,out,...) are

not available in

declarative part.Since we are trying to declare


it gives us compilation error as stating undefined variable or class name :


No comments: