The set methods are not getting called when you delete data. (It is part of
the specs on the set method and when it is called). What you need to do is
write a small method in your bean that sets all fields to "" (no value).
Then call this method after the usebean tag but before the set method tag.
That should take care of your problem.
Here is an example of how the jsp code should look:
<jsp:useBean id="_GRReqGradesBean" class="GRReqGradesBean" scope="session">
</jsp:useBean>
<% _GRReqGradesBean.reset(); %>
<jsp:setProperty name="_GRReqGradesBean" property="*"/>
Here is an example of the reset method:
public void reset ()
{
String emptyValue = "";
gwStreet1 = emptyValue;
gwStreet2 = emptyValue;
gwCity = emptyValue;
gwState = emptyValue;
gwZipCode5 = emptyValue;
gwZipCode4 = emptyValue;
gwHomePhone1 = emptyValue;
gwHomePhone2 = emptyValue;
gwHomePhone3 = emptyValue;
noAddrEmail = null;
addrEmail = null;
rsdm = null;
rLogOff = null;
}
Sandi A.
-----Original Message-----
From: Ajay Ejantkar [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, September 26, 2001 9:31 AM
To: [EMAIL PROTECTED]
Subject: deleting data from bean
I have a session bean that is collecting data from a jsp form. I enter some
data in the textbox, and the bean collects the information. After the data
has been set, I can edit the data that bean has collected, but I can't
delete it. Does anyone know why this is happening, and how to fix it? Thanks
for your help.
___________________________________________________________________________
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff SERVLET-INTEREST".
Archives: http://archives.java.sun.com/archives/servlet-interest.html
Resources: http://java.sun.com/products/servlet/external-resources.html
LISTSERV Help: http://www.lsoft.com/manuals/user/user.html
___________________________________________________________________________
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff SERVLET-INTEREST".
Archives: http://archives.java.sun.com/archives/servlet-interest.html
Resources: http://java.sun.com/products/servlet/external-resources.html
LISTSERV Help: http://www.lsoft.com/manuals/user/user.html