This week's book giveaway is in the Mac OS forum.
We're giving away four copies of a choice of "Take Control of Upgrading to Yosemite" or "Take Control of Automating Your Mac" and have Joe Kissell on-line!
See this thread for details.
The moose likes Web Component Certification (SCWCD/OCPJWCD) and the fly likes c:url Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

JavaRanch » Java Forums » Certification » Web Component Certification (SCWCD/OCPJWCD)
Bookmark "c:url" Watch "c:url" New topic


Dilshan Edirisuriya
Ranch Hand

Joined: Apr 22, 2006
Posts: 299
Question No: 6 (Question ID: 2404) Building JSP Pages Using Tag Libraries : Tough
Contributed By: Enthuware


Which of the following code correctly performs URL rewriting?


Select 1 correct option.

1 <a href="<c:url url='/cart.jsp?userid='ramesh'/>">View Cart</a>

2 <a href="<c:url url='/cart.jsp' userid='ramesh'/>">View Cart</a>

3 <a href="<c:url url='/cart.jsp' attr='userid' value='ramesh'/>">View Cart</a>

4 <a href="<c:url url='/cart.jsp'>
<c aram name='userid' value='ramesh'/>
View Cart</a>

can <c:url> tag get "url" as an attribute?

Dilshan Edirisuriya SCJP1.4, SCWCD1.4, SCBCD 5
Christophe Verré

Joined: Nov 24, 2005
Posts: 14688

Nope, it's "value", not "url"

[My Blog]
All roads lead to JavaRanch
Dilshan Edirisuriya
Ranch Hand

Joined: Apr 22, 2006
Posts: 299
Thank you
GeeCON Prague 2014
subject: c:url