File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
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
Author

c:url

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

Problem

Which of the following code correctly performs URL rewriting?


Options

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'/>
</c:url>">
View Cart</a>

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


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

Joined: Nov 24, 2005
Posts: 14687
    
  16

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
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: c:url