Hi,

use the form's reset()-methode.

why: 
- check out the links in the Struts resource area
- search the mailing list archive

regards
Alexander Jesse

-----Original Message-----
From: Hong Xing [mailto:[EMAIL PROTECTED]]
Sent: Monday, December 17, 2001 4:06 PM
To: [EMAIL PROTECTED]
Subject: Checkbox's question.


Hi all,
        I am a newbie.
        I used <html:checkbox> in my work. But it worked strange. When I
first view the page and submit the form, the checkbox is OK. Then if I
view the page again and change the checkbox's state, the checkbox is not
ok. It's always checked. How to fix it?
<html:checkbox property="openWindow" value="on"/>

public void setOpenWindow(String openWindow)
{
        this.openWindow=openWindow;
}
public String getOpenWindow()
{
        return openWindow;
}
private String openWindow="on";

Please help me!!!

Sincerely,     Hong Xing 


==============================                                 
Bioinformatics Department          
Beijing Genomics Institute         
Beijing Center                     
Beijing Airport Industrial Zone B6 
Beijing 101300
Tel: 0086-10-80494199-3306(Office)      
Email : [EMAIL PROTECTED]
==============================    




--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

Reply via email to