aspose file tools*
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 Spring in Action this week in the Spring forum!
JavaRanch » Java Forums » Java » Servlets
Bookmark "Submit buttons in JEditorPane from Servlet" Watch "Submit buttons in JEditorPane from Servlet" New topic
Author

Submit buttons in JEditorPane from Servlet

Tracy Lu
Greenhorn

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
Rancher

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 )
Dave
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Submit buttons in JEditorPane from Servlet