Which of the following JSP expressions is valid? <%= request.getParameter(\"occu
ID: 3891528 • Letter: W
Question
Which of the following JSP expressions is valid?
<%= request.getParameter("occupation"); %>
<%= request.getParameter("occupation") %>
<%= String occupation = request.getParameter("occupation"); %>
<%= String occupation = request.getParameter("occupation") %>
None of the above
a.<%= request.getParameter("occupation"); %>
b.<%= request.getParameter("occupation") %>
c.<%= String occupation = request.getParameter("occupation"); %>
d.<%= String occupation = request.getParameter("occupation") %>
e.None of the above
Explanation / Answer
<%= String occupation = request.getParameter("occupation"); %>
Option c correct