I wrote a servlet which output some form in HTML, and this form is displayed in the JEditorPane at the client side. Now the question is how to make the button work. Is there any way to add action listener? Is there anybody can help me? Thanks a lot.