Two Laptop Bag*
The moose likes Swing / AWT / SWT and the fly likes how to retrieve the data entered in the HTML form from my Java application? 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 » Swing / AWT / SWT
Bookmark "how to retrieve the data entered in the HTML form from my Java application?" Watch "how to retrieve the data entered in the HTML form from my Java application?" New topic
Author

how to retrieve the data entered in the HTML form from my Java application?

Punit Jain
Ranch Hand

Joined: Aug 20, 2011
Posts: 979
    
    2
hello, i m loading a html page in JEditorPane.
the html page has a report (like table), i need to print that on paper.
i want to know can I retrieve the data (i mean field values)entered in the HTML form from my Java application. If so how..?
i mean this is my html page:
Rob Spoor
Sheriff

Joined: Oct 27, 2005
Posts: 19649
    
  18

Where do you get this HTML page from? JEditorPane allows you to set an HTML page from a String, by using setText and setContentType("text/html"). This allows you to create the HTML page any way you like, with any values you like, and then show it in the JEditorPane.


SCJP 1.4 - SCJP 6 - SCWCD 5 - OCEEJBD 6
How To Ask Questions How To Answer Questions
Punit Jain
Ranch Hand

Joined: Aug 20, 2011
Posts: 979
    
    2
this is a static html page, i created this in my project, but the values i want is dynamic from my application.
suppose client wants to print report of (say, user abc), all the details of (user abc) should filled in that html form values from database.

This allows you to create the HTML page any way you like, with any values you like, and then show it in the JEditorPane.

but how i will get values from my application/database..?
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: how to retrieve the data entered in the HTML form from my Java application?
 
Similar Threads
Fetching information from database in jsp
onchange for dynamically added rows
Cannot recognize conten type = "multipart/form-data" in JSP
Validation Issues
ArrayIndexOutOfBoundsException