File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
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 Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Java » JSP
Bookmark "JSTL Tag c:url and "var" attribute" Watch "JSTL Tag c:url and "var" attribute" New topic
Author

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.

GoodPage.jsp


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
Marshal

Joined: Jan 10, 2002
Posts: 60810
    
  65

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


[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: JSTL Tag c:url and "var" attribute
 
Similar Threads
How to open report builder form(oracle) while clicking the jsp page(Online) link
c:url tag example in HFSJ
<c:url>
Using EL expresion in c:url
Difference between URLs: /? and /login?