Win a copy of 97 Things Every Java Programmer Should Know this week in the Java in General 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
  • Paul Clapham
  • Jeanne Boyarsky
  • Junilu Lacar
  • Henry Wong
Sheriffs:
  • Ron McLeod
  • Devaka Cooray
  • Tim Cooke
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Frits Walraven
  • Tim Holloway
  • Carey Brown
Bartenders:
  • Piet Souris
  • salvin francis
  • fred rosenberger

JSTL doubt

 
Ranch Hand
Posts: 74
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
which two JSTL URL-related tags are used for URL rewiting? (choose two)
A. url
B. link
C. param
D. import
E. redirect

the correct options are A and E.

but the documentation (http://java.sun.com/products/jsp/jstl/1.1/docs/tlddocs/index.html) says that redirect is used only for redirecting.

Please help :?:
 
Greenhorn
Posts: 28
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Minu,
the javadoc is a little concise on this, but you can read the full description for the jsp:redirect tag in the jstl specification
(http://jcp.org/aboutJava/communityprocess/final/jsr052/index.html).
This says:

<c:redirect> follows the same rewriting rules as defined for <c:url>



Matteo
 
Ranch Hand
Posts: 132
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
When I read this question I thought the answers are A (url) and C (param), because when I want to rewrite an url, and if the browser doesn't accept cookies, then I 've to encode the parameters of the url in <c:param>-Tags.

In HFSJ 2end edition I've not found any information about the redirect-Tag. Does the exam cover this tag ?
 
Matteo Palmieri
Greenhorn
Posts: 28
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Objective 9.3 of the SCWCD exam says:

Given a design goal, use an appropriate JSP Standard Tag Library (JSTL v1.1) tag from the "core" tag library


The c:redirect tag is part of the "core" subset of JSTL (JSTL v1.1 core )

Matteo
 
Joel Salatin has signs on his property that say "Trespassers will be Impressed!" Impressive tiny ad:
Devious Experiments for a Truly Passive Greenhouse!
https://www.kickstarter.com/projects/paulwheaton/greenhouse-1
    Bookmark Topic Watch Topic
  • New Topic