• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

c:url

 
Dilshan Edirisuriya
Ranch Hand
Posts: 299
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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?
 
Christophe Verré
Sheriff
Posts: 14691
16
Eclipse IDE Ubuntu VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Nope, it's "value", not "url"
 
Dilshan Edirisuriya
Ranch Hand
Posts: 299
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thank you
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic