Hello everyone, I am new to this website and so I would like to say "hi!"
I am preparing my SCWCD exam and I have a few questions qhich I am quite confused about. (I have 2 different answers from different sources!)
If anyone knows, could you possibly post a reply for me? Thanks a lot!
1. Given in a single
JSP page:
<%@ taglib prefix='
java' uri='myTags' %>
<%@ taglib prefix='JAVA' uri='moreTags' %>
Which two are true? (Choose two.)
A. The prefix 'java' is reserved.
B. The URI 'myTags' must be properly mapped to a TLD file by the web container.
C. A translation error occurs because the prefix is considered identical by the web container.
D. For the tag usage <jave:tag1/>, the tag1 must be unique in the union of tag names
in 'myTags' and 'moreTags'.
(Answer: one says A,C and one says A,B)
Anyone knows if the content of prefix is case sensitive?
2. Given that a scoped attribute cart exists only in a user's session, which two, taken independently, ensure the scoped attribute cart no longer exists? (choose two)
A. ${cart = null}
B. <c:remove var = "cart" />
C. <c:remove var = "${cart}" />
D. <c:remove var = "cart" scope = "session" />
E. <c:remove scope = "session"> cart </c:remove>
F. <c:remove var = "${cart}" scope = "session" />
G. <c:remove scope = "session"> ${cart} </c:remove>
(Answer: one says B,D and one says D,E)
3. A JSP page needs to set the property of a given JavaBean to a value that is calculated with the JSP page. Which three jsp:setProperty attributes must be used to perform this initialization? (Choose three)
A. id
B. val
C. name
D. param
E. value
F. property
G. attribute
(Answer: one says C,E,F and one says D,E,F)
I think it is C,E,F since according to the book Im working on, it says param and value cannot be set at the same time
Thank you for replying in advance!