How can a cookie is deleted with JSP?
Answer / venkat
<%
Cookie killMyCookie = new Cookie("mycookie", null);
<%-- mycookie is the cookie instance which we have to
delete%>
killMyCookie.setMaxAge(0);
killMyCookie.setPath("/");
response.addCookie(killMyCookie);
%>
| Is This Answer Correct ? | 1 Yes | 0 No |
What are scripting elements?
Which tag is used for error handling in jsp pages?
Show attributes of page directives.
What are stored procedures? How is it useful?
What is jsp application?
What is a javaserver pages (jsp)?
What are the advantages of jsp over servlet?
What is session object in jsp?
Java Server Page I can use a function in two ways: Either I declare <jsp:useBean id="myBean" scope="session" class="mypack.mysubpack.MyClass" /> or I declare <%@ page import = "mypack.mysubpack.MyClass" %> In each case I can call a function later by coding MyClass.myFunction(); So what is the difference between the two variantes? Why are Beans invented if we don't need them because we have the import statement ? please guide me its an humble request to you reader if u know n i'll be thankful to you...........
how to extends one jsp page to another jsp page with realtime example?
Why are jsp pages the preferred api for creating a web-based client program?
Can you explain what is jsp page life cycle?