File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes JSP and the fly likes JSTL Tag c:url and Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Make it so: Java DB Connections & Transactions this week in the JDBC forum!
JavaRanch » Java Forums » Java » JSP
Bookmark "JSTL Tag c:url and "var" attribute" Watch "JSTL Tag c:url and "var" attribute" New topic

JSTL Tag c:url and "var" attribute

Vishnu Prakash
Ranch Hand

Joined: Nov 15, 2004
Posts: 1026
I am testing this after disabling cookies in FireFox Browser.


If I use "var" attribute in c:url tag with "value" attribute denoting different page and after I click the link it is opening the same page again. Why it is happening. Isn't it supposed to open the resource in the "value" attribute?
[ November 11, 2005: Message edited by: Vishnu Prakash ]

Servlet Spec 2.4/ Jsp Spec 2.0/ JSTL Spec 1.1 - JSTL Tag Documentation
Bear Bibeault
Author and ninkuma

Joined: Jan 10, 2002
Posts: 63548

Look at the HTML that is generated by this. What do you see?

[Asking smart questions] [About Bear] [Books by Bear]
I agree. Here's the link:
subject: JSTL Tag c:url and "var" attribute
jQuery in Action, 3rd edition