• 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 Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

c:import problem.

 
Greenhorn
Posts: 10
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
Sheriff
Posts: 67747
173
Mac Mac OS X IntelliJ IDE jQuery TypeScript Java iOS
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
reply
    Bookmark Topic Watch Topic
  • New Topic