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 |
When i am useing useBean tag of JSP in weblogic server It show compiletion error..Like bad class file: C:\bea\user_projects\domains\Mahesh\applications\UseBean\WEB-INF\classes\user\UserData.class class file has wrong version 49.0, should be 48.0 Please remove or make sure it appears in the correct subdirectory of the classpath. user.UserData user1 = null; //[ /SaveName.jsp; Line: 4]
Give an example of using your own tags.
What is the purpose of creating custom tags?
What are the different types of jsp tags?
Explain jsp and tell its uses?
What are the ways to insert java code into jsp page?
Explain the <jsp:param> action?
What is the difference between java servlet and jsp?
What is full api?
What is jsp language?
What are jsp elements?
Why jsp is used instead of html?