Win a copy of Testing JavaScript Applications this week in the HTML Pages with CSS and JavaScript 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
  • Bear Bibeault
  • Ron McLeod
  • Jeanne Boyarsky
  • Paul Clapham
Sheriffs:
  • Tim Cooke
  • Liutauras Vilda
  • Junilu Lacar
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • fred rosenberger
  • salvin francis
Bartenders:
  • Piet Souris
  • Frits Walraven
  • Carey Brown

c:import problem.

 
Greenhorn
Posts: 10
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi folks,

I have a problem using the <c:import /> tag.

Here is my code :
<c:import url="../fetch.do?id=25" var="titi" />
<c:import url="../fetch.do?id=245" var="toto" />

When I try to access titi and toto, they both contains the same content (the two included pages of course returns differents one).

So I tried this :

<c:import url="../fetch.do" var="titi">
<c:param name="id">25</c:param>
</c:import>

<c:import url="../fetch.do" var="titi">
<c:param name="id">255</c:param>
</c:import>

Same result !

Can anyone provide me a solution to this caching by url problem ?

Thanks in advance,

Sne.
 
Marshal
Posts: 67425
173
Mac Mac OS X IntelliJ IDE jQuery Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
"Micheline Dax", two things:

Firstly, you signed your post "Sne." so you've revealed that "Micheline Dax" is not a real name. As fictituous names are not allowed under Ranch policy I'm going to have to ask you to change your display name to your real name that matches your signature.

Secondly, I'm not understanding what the problem you are seeing is. Please explain in more detail what you expceted to happen, what did happen, and why you feel the behavior is wrong.

OK, and a 3rd thing, relying on relative adressing using ".." when addressing resources is asking for trouble. It's probably not a cause of whatever issue you are currently having, but may cause you headaches in the future. I'd suggest you ditch the relative addressing to save yourself problems later on.
 
You don't know me, but I've been looking all over the world for. Thanks to the help from this tiny ad:
Thread Boost feature
https://coderanch.com/t/674455/Thread-Boost-feature
    Bookmark Topic Watch Topic
  • New Topic