A.<c:import url="foo.jsp"/> B.<c:import page="foo.jsp"/> C.<c:include url="foo.jsp"/> D.<c:include page="foo.jsp"/>
You have been contracted to create a web site for a free dating service. One feature is the ability for oneclient to send a message to another client, which is displayed in the latter client’s private page. Your contract explicitly states that security is a high priority. Therefore, you need to prevent cross-site hacking inwhich one user inserts JavaScript code that is then rendered and invoked when another user views thatcontent. Which two JSTL code snippets will prevent cross site hacking in the scenario above? ()
A.<c:out>${message}</c:out> B.<c:out value=’${message}’ /> C.<c:out value=’${message}’ escapeXml=’true’ /> D.<c:out eliminateXml=’true’>${message}</c:out> E.<c:out value=’${message}’ eliminateXml=’true’ />
In a JSP-centric shopping cart application, you need to move a client’s home address of the Customerobject into the shipping address of the Order object. The address data is stored in a value object classcalled Address with properties for: street address, city, province, country, and postal code. Which two JSPcode snippets can be used to accomplish this goal?()
A.<c:set var=’order’ property=’shipAddress’value=’${client.homeAddress}’ /> B.<c:set target=’${order}’ property=’shipAddress’value=’${client.homeAddress}’ /> C.<jsp:setProperty name=’${order}’ property=’shipAddress’ value=’${client.homeAddress}’ /> D.<c:set var=’order’ property=’shipAddress’><jsp:getProperty name=’client’ property=’homeAddress’ /> </c:store> E.<c:set target=’${order}’ property=’shipAddress’><jsp:getProperty name=’client’ property=’homeAddress’ /> </c:set>