Win a copy of Testing JavaScript Applications this week in the HTML Pages with CSS and JavaScript forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Bear Bibeault
  • Ron McLeod
  • Jeanne Boyarsky
  • Paul Clapham
Sheriffs:
  • Tim Cooke
  • Liutauras Vilda
  • Junilu Lacar
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • fred rosenberger
  • salvin francis
Bartenders:
  • Piet Souris
  • Frits Walraven
  • Carey Brown

A problem about the usage of tag jsp:param

 
Greenhorn
Posts: 7
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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?
 
Ranch Hand
Posts: 108
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
Hari Peng
Greenhorn
Posts: 7
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi,Raju
glad to know your opions same with me,and your remind is right,when I
post this,I drop the "/".
 
The problems of the world fade way as you eat a piece of pie. This tiny ad has never known problems:
Building a Better World in your Backyard by Paul Wheaton and Shawn Klassen-Koop
https://coderanch.com/wiki/718759/books/Building-World-Backyard-Paul-Wheaton
    Bookmark Topic Watch Topic
  • New Topic