A JSP page called test.jsp is passed a parameter name in the URL using http://localhost/Final/test.jsp?name=John. The test.jsp contains the following code.
<% String myName=request.getParameter("name");%>
<% String test= "Welcome " + myName; %>
<%=test%>
What is the output?
a. The page display "Welcome John"
b. The program gives a syntax error because of the statement
<% String myName=request.getParameter("name");%>c. The program gives a syntax error because of the statement
<% String test= "Welcome " + myName; %>d. The program gives a syntax error because of the statement
<%=test%>
Answer: A
If the answers is incorrect or not given, you can answer the above question in the comment box. If the answers is incorrect or not given, you can answer the above question in the comment box.