Win a copy of Programmer's Guide to Java SE 8 Oracle Certified Associate (OCA) this week in the OCAJP forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Submit buttons in JEditorPane from Servlet

 
Tracy Lu
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Rancher
Posts: 13459
Android Eclipse IDE Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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 )
Dave
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic