Page 1 of 1

About Question enthuware.jwpv6.2.947 :

Posted: Tue Jun 21, 2016 7:41 am
by himaiMinh
The correct given answer is :
<jsp:include page="/WEB-INF/jsp/userdetail.jsp">
<jsp:param name="userType" value="PRIORITY"/>
</jsp:include>
But the userType is always set to PRIORITY.

I think the value should be ${param.userType}

Re: About Question enthuware.jwpv6.2.947 :

Posted: Tue Jun 21, 2016 10:34 am
by admin
Yes, the value will always be set as PRIORITY but that is ok because the calling page can set any userType (even a hardcoded value) while passing the request to userdetail.jsp. It is the userdetail.jsp which will use ${param.userType} in its code to retrieve the value set by the caller jsp.