| Author |
A problem about the usage of tag jsp:param
|
Hari Peng
Greenhorn
Joined: Jun 25, 2004
Posts: 7
|
|
Hi,every one, I am doing a mock exam(Whizlabs) on SCWCD.there is one problem confusing me. <================================= q: which is correct way to pass parameter to a dynamically included page? A: a.... b.... c.<jsp:include page="includedPage.jsp"> <jsp aram> <param:name>paramName</param:name> <param:value>paramValue</param:value> <jsp aram> </jsp:include> d.<jsp:include page="includedPage.jsp"> <jsp aram name="paramName" value="paramValue"> </jsp:include> e.... =======================>> I omit the answers have obvious mistakes,I think d has no problem, and c is wrong: its tag <jsp aram> is not end; but the answer is c.is this answer right?
|
 |
Raju Sri
Ranch Hand
Joined: Mar 10, 2004
Posts: 108
|
|
Hi Hari, Yes D is the the correct answer. C is definetly wrong option. But Option D also have some typo error (jsp aram should be closed as per XML syntax). It should be like below d) <jsp:include page="includedPage.jsp"> <jsp aram name="paramName" value="paramValue"/> </jsp:include> Cheers
|
SCJP 1.4<br />SCWCD 1.4<br />SCBCD 1.3<br />SCDJWS 1.4
|
 |
Hari Peng
Greenhorn
Joined: Jun 25, 2004
Posts: 7
|
|
hi,Raju glad to know your opions same with me,and your remind is right,when I post this,I drop the "/".
|
 |
 |
I agree. Here's the link: jrebel
|
|
subject: A problem about the usage of tag jsp:param
|
|
|