This week's book giveaway is in the OO, Patterns, UML and Refactoring forum. We're giving away four copies of Refactoring for Software Design Smells: Managing Technical Debt and have Girish Suryanarayana, Ganesh Samarthyam & Tushar Sharma on-line! See this thread for details.
hi, in my application there is a link(href) and when it is clicked a servlet is invoked.now,i don't want any response from that servlet,it should just do some session tracking tasks.so, i didn't do anything with HttpServletResponse in doGet(). so, when i click 'href' it is giving the message - document contained no data.but servlet is doing the session tracking written in it. any response is welcome. thank you sri
Browsers expect to send a request and get a response, so its going to be tricky to get around that. Why don't you use an HTML FrameSet, with one Frame being hidden - your URL can specify the invisible Frame as the target of the response so it won't matter that there is no response. Bill
The usual trick for this is to return the same page as the one which invoked the servlet, either by a redirect or by building the same page again. That way the browser/server interaction works as expected, but the user still sees the same page..
thank you both.well! the problem was resolved using Response.sendRedirect() and a little bit of URLRewriting. every doubt has an answer/answers and every answer leads to new doubt(s). how can i make a frame invisible/hidden.is it by leaving the src attribute blank ? correct me if i am wrong. regards, sri
Author and all-around good cowpoke
Joined: Mar 22, 2000
You can make a Frame invisible by setting the size of the visible frame using 100%. It is a handy way to conceal an applet among other things. Bill
hi sri (BMW) can you drop the source code, how u solved the problem. i am awaiting for the response from you, as i am also facing the same problem. please help me. thanks in advance surya ------------------