This week's book giveaway is in the OO, Patterns, UML and Refactoring forum.
We're giving away four copies of Refactoring for Software Design Smells: Managing Technical Debt and have Girish Suryanarayana, Ganesh Samarthyam & Tushar Sharma on-line!
See this thread for details.
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

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 )
I’ve looked at a lot of different solutions, and in my humble opinion Aspose is the way to go. Here’s the link:
subject: Submit buttons in JEditorPane from Servlet
It's not a secret anymore!