wood burning stoves 2.0*
The moose likes Servlets and the fly likes Submit buttons in JEditorPane from Servlet Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Java » Servlets
Bookmark "Submit buttons in JEditorPane from Servlet" Watch "Submit buttons in JEditorPane from Servlet" New topic

Submit buttons in JEditorPane from Servlet

Tracy Lu

Joined: Nov 23, 2001
Posts: 4
The servlet writes out a html form to an JEditorPane, the question is how to handle the button clicked event in the JEditorPane? Could anybody help me? Thanks a lot.
David O'Meara

Joined: Mar 06, 2001
Posts: 13459

OK, I'm a bit confused (my fault, I'm not much of an AWT/Swing person)
So, you are using a JEditorPane to display a HTML page. The HTML page contains a button (no, I'm assuming its an HTML button and not an AWT or Swing button).
You want this button to execute some code in the JEditorPane as well as performing the HTML required action?
I'm guessing this is a JEditorFrame-specific problem and you might want to ask the question in the Swing / JFC / AWT forum. (ie, I have no idea )
subject: Submit buttons in JEditorPane from Servlet
Similar Threads
Display problem in JFrame
HTML Content in a JPanel
Buttons in JEditorPane
Does JPG Java Class Exist
Creating a web browser with Java