This week's book giveaway is in the General Computing forum.
We're giving away four copies of Arduino in Action and have Martin Evans, Joshua Noble, and Jordan Hochenbaum on-line!
See this thread for details.
The moose likes JSP and the fly likes c:import problem. Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


JavaRanch » Java Forums » Java » JSP
Reply Bookmark "c:import problem." Watch "c:import problem." New topic
Author

c:import problem.

Micheline Dax
Greenhorn

Joined: Mar 22, 2005
Posts: 10
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.
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 56540
    
  14

"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.


[Smart Questions] [JSP FAQ] [Books by Bear] [Bear's FrontMan] [About Bear]
 
I agree. Here's the link: http://zeroturnaround.com/jrebel - it saves me about five hours per week
 
subject: c:import problem.
 
Similar Threads
on button click value is not getting
Capture exception generated by <c:import url
Assign response text from AJAX to a JSP tag attribute
lightbox Question
strange JSTL problem