Win a copy of The Little Book of Impediments (e-book only) this week in the Agile and Other Processes forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

JSTL (c:import url action)

 
Steven Colley
Ranch Hand
Posts: 290
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

Is the <c:import> url action also supposed to treat the URL rewriting?
or it�s work just for "<c:url>" ??


Tks.
 
Bryan Basham
author
Ranch Hand
Posts: 199
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello Felipe,

For internal resources, the <c:import> tag uses a RequestDispatcher to read the data from the resource. Therefore, the session information is automatically included in the REQUEST object. For external resources, it is not appropriate to perform URL-rewriting.

So, yes, the <c:url> tag is the only URL-related tag that performs URL-rewriting.

Make sense?

Cheers,
Bryan
 
Steven Colley
Ranch Hand
Posts: 290
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Bryan,

right, i guess it does.

I also saw that at JSTL spec.

Ah, btw, <c:url> + <c aram> = URL rewriting and URL enconding.

Tks
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic