response object in included jsp

K

Konstantin

Hello,

I have a page that "jsp: includes" header and footer.
I also have a jsp page that sets a cookie; when I access the page
directly cookie is being set just fine.
However, when I "include" it in my footer, although I see debug info
from that jsp, cookie itself is not being set. As if
response.addCookie is not there.

Any Ideas?

/kostya

p.s.
I tried <%@ include; same result
 
E

Eki Y. Baskoro

G'Day Kostya,

If you are including static pages, you should use include directive instead.

If you are including dynamic pages then you should use jsp:include tag. Make
sure that the included pages are not flushed.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,755
Messages
2,569,536
Members
45,012
Latest member
RoxanneDzm

Latest Threads

Top