Skip to Main Content

Java EE (Java Enterprise Edition) General Discussion

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

how to remove attribute from session

843836Jan 27 2005 — edited Feb 3 2005
hi!!
i am making a shoppingcart where following jsp i have made to display all the selected items.

<%@ page import="java.util.*" %>
<html>
<body link="#FF00F0" bgcolor="#CCFFCC" text="#FF0000">
<form name="cartdetail" method="post" action="cartdetail.jsp">
<h2>Shopping Cart</h2>
<br>
<h3>Currently you have following in your card</h3>
<%
if(session.getValue("engineering")!=null)
{
Vector eng=null;
eng=(Vector)session.getValue("engineering");
out.println("test1");
Enumeration enum=eng.elements();
while(enum.hasMoreElements())
{
String engbk=(String)enum.nextElement();
out.println("<li>"+engbk);
}

}
%>
<table>
<tr>
<th>
Continue
</th>
<th>
Finish
</table>
</form>
</body>
</html>

now i want to add a button with every selected item so that when that button is clicked the adjacent item be removed from session.can anybdy tell me how to do this .is this possible by javascript?if yes please tell me how to do it.
thanks in advance.
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Mar 3 2005
Added on Jan 27 2005
8 comments
843 views