Memory leak in Jeditorpane.setText method while displaying html content

I tried to display a larger size html page using JeditorPane. But I found that there as a huge memory leak after JEditorPane's setText method was called.
Refering to the below code there was a difference of about 40 MB after the setText method was called.This does not happen if we display the page in rtf format.This finally results in Out Of memry error.
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
import java.awt.BorderLayout;
import java.io.BufferedReader;
import java.io.File;
import java.io.FileReader;
import java.io.IOException;
import javax.swing.JEditorPane;
import javax.swing.JFrame;
public class SampleProgram extends JFrame{
public JEditorPane pane;
static public String getContents(File aFile) {
StringBuffer contents = new StringBuffer();
try {
BufferedReader input = new BufferedReader(new FileReader(aFile));
try {
String line = null;
while (( line = input.readLine()) != null){
contents.append(line);
contents.append(System.getProperty("line.separator"));
finally {
input.close();
catch (IOException ex){
ex.printStackTrace();
return contents.toString();
public SampleProgram() {
pane = new JEditorPane();
pane.setContentType("text/html");
pane.setEditable(false);
pane.setCaretPosition(0);
pane.setAutoscrolls(true);
getContentPane().add(pane, BorderLayout.CENTER);
setSize(400,400);
File file = new File("D:/Audit_Log.html");
String summary = getContents(file);
System.out.println("Memory used Before setText invoke ==>" +((Runtime.getRuntime().totalMemory()- Runtime.getRuntime().freeMemory())/1000000)+"M");
pane.setText(summary);
System.out.println("Memory used after setText invoke ==>" +((Runtime.getRuntime().totalMemory()- Runtime.getRuntime().freeMemory())/1000000)+"M");
setVisible(true);
* @param args
public static void main(String[] args) {
new SampleProgram () ;
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
The html i am trying to display is similar to the one below.But the original content almost 10 times bigger than this html content and it has only td and tr tags. and for this file the leak is about 4 MB and if I use the file 10 times bigger than this it is 40M .
Any suggestions how to avoid this memory leak?
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
<html>
<body>
<h1 align="center">Test HTML</h1>
<table align="center" border="0" width="90%">
<tr>
<td>
<h3>10-Sep-2008 08:11:32 GMT - <i>User</i>
</h3>
<h4>Employee 1 - <i>Create</i>
</h4>
<table border="0" width="100%">
<th align="left" width="40%"><u>Field Name</u></th><th align="left" width="30%"><u>From Value</u></th><th align="left" width="30%"><u>To Value</u></th>
<tr>
<td>Name</td><td></td><td>xyzxyz</td>
</tr>
<tr>
<td>Place</td><td></td><td>Mangalore</td>
</tr>
<tr>
<td>State</td><td></td><td>Karnataka</td>
</tr>
<tr>
<td>Country</td><td></td><td>India</td>
</tr>
<tr>
<td>Continent</td><td></td><td>Asia</td>
</tr>
<tr>
<td>Indicator</td><td></td><td>Green</td>
</tr>
<tr>
<td>vision</td><td></td><td>Asia</td>
</tr>
</table>
<br>
<h4>Employee 2 - <i>Create</i>
</h4>
<table border="0" width="100%">
<th align="left" width="40%"><u>Field Name</u></th><th align="left" width="30%"><u>From Value</u></th><th align="left" width="30%"><u>To Value</u></th>
<tr>
<td>Name</td><td></td><td>xyzxyz</td>
</tr>
<tr>
<td>Place</td><td></td><td>Mangalore</td>
</tr>
<tr>
<td>State</td><td></td><td>Karnataka</td>
</tr>
<tr>
<td>Country</td><td></td><td>India</td>
</tr>
<tr>
<td>Continent</td><td></td><td>Asia</td>
</tr>
<tr>
<td>Indicator</td><td></td><td>Green</td>
</tr>
<tr>
<td>vision</td><td></td><td>Asia</td>
</tr>
</table>
<br>
<h4>Employee 3, - <i>Create</i>
</h4>
<table border="0" width="100%">
<th align="left" width="40%"><u>Field Name</u></th><th align="left" width="30%"><u>From Value</u></th><th align="left" width="30%"><u>To Value</u></th>
<tr>
<td>Name</td><td></td><td>xyzxyz</td>
</tr>
<tr>
<td>Place</td><td></td><td>Mangalore</td>
</tr>
<tr>
<td>State</td><td></td><td>Karnataka</td>
</tr>
<tr>
<td>Country</td><td></td><td>India</td>
</tr>
<tr>
<td>Continent</td><td></td><td>Asia</td>
</tr>
<tr>
<td>Indicator</td><td></td><td>Green</td>
</tr>
<tr>
<td>vision</td><td></td><td>Asia</td>
</tr>
</table>
<br>
<h4>Employee 4, - <i>Create</i>
</h4>
<table border="0" width="100%">
<th align="left" width="40%"><u>Field Name</u></th><th align="left" width="30%"><u>From Value</u></th><th align="left" width="30%"><u>To Value</u></th>
<tr>
<td>Name</td><td></td><td>xyzxyz</td>
</tr>
<tr>
<td>Place</td><td></td><td>Mangalore</td>
</tr>
<tr>
<td>State</td><td></td><td>Karnataka</td>
</tr>
<tr>
<td>Country</td><td></td><td>India</td>
</tr>
<tr>
<td>Continent</td><td></td><td>Asia</td>
</tr>
<tr>
<td>Indicator</td><td></td><td>Green</td>
</tr>
<tr>
<td>vision</td><td></td><td>Asia</td>
</tr>
</table>
<br>
<h4>Employee 5, - <i>Create</i>
</h4>
<table border="0" width="100%">
<th align="left" width="40%"><u>Field Name</u></th><th align="left" width="30%"><u>From Value</u></th><th align="left" width="30%"><u>To Value</u></th>
<tr>
<td>Name</td><td></td><td>xyzxyz</td>
</tr>
<tr>
<td>Place</td><td></td><td>Mangalore</td>
</tr>
<tr>
<td>State</td><td></td><td>Karnataka</td>
</tr>
<tr>
<td>Country</td><td></td><td>India</td>
</tr>
<tr>
<td>Continent</td><td></td><td>Asia</td>
</tr>
<tr>
<td>Indicator</td><td></td><td>Green</td>
</tr>
<tr>
<td>vision</td><td></td><td>Asia</td>
</tr>
</table>
<br>
<h4>Employee 6, - <i>Create</i>
</h4>
<table border="0" width="100%">
<th align="left" width="40%"><u>Field Name</u></th><th align="left" width="30%"><u>From Value</u></th><th align="left" width="30%"><u>To Value</u></th>
<tr>
<td>Name</td><td></td><td>xyzxyz</td>
</tr>
<tr>
<td>Place</td><td></td><td>Mangalore</td>
</tr>
<tr>
<td>State</td><td></td><td>Karnataka</td>
</tr>
<tr>
<td>Country</td><td></td><td>India</td>
</tr>
<tr>
<td>Continent</td><td></td><td>Asia</td>
</tr>
<tr>
<td>Indicator</td><td></td><td>Green</td>
</tr>
<tr>
<td>vision</td><td></td><td>Asia</td>
</tr>
</table>
<br>
<h4>Employee 7, - <i>Create</i>
</h4>
<table border="0" width="100%">
<th align="left" width="40%"><u>Field Name</u></th><th align="left" width="30%"><u>From Value</u></th><th align="left" width="30%"><u>To Value</u></th>
<tr>
<td>Name</td><td></td><td>xyzxyz</td>
</tr>
<tr>
<td>Place</td><td></td><td>Mangalore</td>
</tr>
<tr>
<td>State</td><td></td><td>Karnataka</td>
</tr>
<tr>
<td>Country</td><td></td><td>India</td>
</tr>
<tr>
<td>Continent</td><td></td><td>Asia</td>
</tr>
<tr>
<td>Indicator</td><td></td><td>Green</td>
</tr>
<tr>
<td>vision</td><td></td><td>Asia</td>
</tr>
</table>
<br>
<h4>Employee 8, - <i>Create</i>
</h4>
<table border="0" width="100%">
<th align="left" width="40%"><u>Field Name</u></th><th align="left" width="30%"><u>From Value</u></th><th align="left" width="30%"><u>To Value</u></th>
<tr>
<td>Name</td><td></td><td>xyzxyz</td>
</tr>
<tr>
<td>Place</td><td></td><td>Mangalore</td>
</tr>
<tr>
<td>State</td><td></td><td>Karnataka</td>
</tr>
<tr>
<td>Country</td><td></td><td>India</td>
</tr>
<tr>
<td>Continent</td><td></td><td>Asia</td>
</tr>
<tr>
<td>Indicator</td><td></td><td>Green</td>
</tr>
<tr>
<td>vision</td><td></td><td>Asia</td>
</tr>
</table>
<br>
<h4>Employee 9, - <i>Create</i>
</h4>
<table border="0" width="100%">
<th align="left" width="40%"><u>Field Name</u></th><th align="left" width="30%"><u>From Value</u></th><th align="left" width="30%"><u>To Value</u></th>
<tr>
<td>Name</td><td></td><td>xyzxyz</td>
</tr>
<tr>
<td>Place</td><td></td><td>Mangalore</td>
</tr>
<tr>
<td>State</td><td></td><td>Karnataka</td>
</tr>
<tr>
<td>Country</td><td></td><td>India</td>
</tr>
<tr>
<td>Continent</td><td></td><td>Asia</td>
</tr>
<tr>
<td>Indicator</td><td></td><td>Green</td>
</tr>
<tr>
<td>vision</td><td></td><td>Asia</td>
</tr>
</table>
<br>
<h4>Employee 10, - <i>Create</i>
</h4>
<table border="0" width="100%">
<th align="left" width="40%"><u>Field Name</u></th><th align="left" width="30%"><u>From Value</u></th><th align="left" width="30%"><u>To Value</u></th>
<tr>
<td>Name</td><td></td><td>xyzxyz</td>
</tr>
<tr>
<td>Place</td><td></td><td>Mangalore</td>
</tr>
<tr>
<td>State</td><td></td><td>Karnataka</td>
</tr>
<tr>
<td>Country</td><td></td><td>India</td>
</tr>
<tr>
<td>Continent</td><td></td><td>Asia</td>
</tr>
<tr>
<td>Indicator</td><td></td><td>Green</td>
</tr>
<tr>
<td>vision</td><td></td><td>Asia</td>
</tr>
</table>
<br>
<h4>Employee 11, - <i>Create</i>
</h4>
<table border="0" width="100%">
<th align="left" width="40%"><u>Field Name</u></th><th align="left" width="30%"><u>From Value</u></th><th align="left" width="30%"><u>To Value</u></th>
<tr>
<td>Name</td><td></td><td>xyzxyz</td>
</tr>
<tr>
<td>Place</td><td></td><td>Mangalore</td>
</tr>
<tr>
<td>State</td><td></td><td>Karnataka</td>
</tr>
<tr>
<td>Country</td><td></td><td>India</td>
</tr>
<tr>
<td>Continent</td><td></td><td>Asia</td>
</tr>
<tr>
<td>Indicator</td><td></td><td>Green</td>
</tr>
<tr>
<td>vision</td><td></td><td>Asia</td>
</tr>
</table>
<br>
<h4>Employee 12, - <i>Create</i>
</h4>
<table border="0" width="100%">
<th align="left" width="40%"><u>Field Name</u></th><th align="left" width="30%"><u>From Value</u></th><th align="left" width="30%"><u>To Value</u></th>
<tr>
<td>Name</td><td></td><td>xyzxyz</td>
</tr>
<tr>
<td>Place</td><td></td><td>Mangalore</td>
</tr>
<tr>
<td>State</td><td></td><td>Karnataka</td>
</tr>
<tr>
<td>Country</td><td></td><td>India</td>
</tr>
<tr>
<td>Continent</td><td></td><td>Asia</td>
</tr>
<tr>
<td>Indicator</td><td></td><td>Green</td>
</tr>
<tr>
<td>vision</td><td></td><td>Asia</td>
</tr>
</table>
<br>
<h4>Employee 13, - <i>Create</i>
</h4>
<table border="0" width="100%">
<th align="left" width="40%"><u>Field Name</u></th><th align="left" width="30%"><u>From Value</u></th><th align="left" width="30%"><u>To Value</u></th>
<tr>
<td>Name</td><td></td><td>xyzxyz</td>
</tr>
<tr>
<td>Place</td><td></td><td>Mangalore</td>
</tr>
<tr>
<td>State</td><td></td><td>Karnataka</td>
</tr>
<tr>
<td>Country</td><td></td><td>India</td>
</tr>
<tr>
<td>Continent</td><td></td><td>Asia</td>
</tr>
<tr>
<td>Indicator</td><td></td><td>Green</td>
</tr>
<tr>
<td>vision</td><td></td><td>Asia</td>
</tr>
</table>
<br>
<h4>Employee 14, - <i>Create</i>
</h4>
<table border="0" width="100%">
<th align="left" width="40%"><u>Field Name</u></th><th align="left" width="30%"><u>From Value</u></th><th align="left" width="30%"><u>To Value</u></th>
<tr>
<td>Name</td><td></td><td>xyzxyz</td>
</tr>
<tr>
<td>Place</td><td></td><td>Mangalore</td>
</tr>
<tr>
<td>State</td><td></td><td>Karnataka</td>
</tr>
<tr>
<td>Country</td><td></td><td>India</td>
</tr>
<tr>
<td>Continent</td><td></td><td>Asia</td>
</tr>
<tr>
<td>Indicator</td><td></td><td>Green</td>
</tr>
<tr>
<td>vision</td><td></td><td>Asia</td>
</tr>
</table>
<br>
<h4>Employee 15, - <i>Create</i>
</h4>
<table border="0" width="100%">
<th align="left" width="40%"><u>Field Name</u></th><th align="left" width="30%"><u>From Value</u></th><th align="left" width="30%"><u>To Value</u></th>
<tr>
<td>Name</td><td></td><td>xyzxyz</td>
</tr>
<tr>
<td>Place</td><td></td><td>Mangalore</td>
</tr>
<tr>
<td>State</td><td></td><td>Karnataka</td>
</tr>
<tr>
<td>Country</td><td></td><td>India</td>
</tr>
<tr>
<td>Continent</td><td></td><td>Asia</td>
</tr>
<tr>
<td>Indicator</td><td></td><td>Green</td>
</tr>
<tr>
<td>vision</td><td></td><td>Asia</td>
</tr>
</table>
<br>
<h4>Employee 16, - <i>Create</i>
</h4>
<table border="0" width="100%">
<th align="left" width="40%"><u>Field Name</u></th><th align="left" width="30%"><u>From Value</u></th><th align="left" width="30%"><u>To Value</u></th>
<tr>
<td>Name</td><td></td><td>xyzxyz</td>
</tr>
<tr>
<td>Place</td><td></td><td>Mangalore</td>
</tr>
<tr>
<td>State</td><td></td><td>Karnataka</td>
</tr>
<tr>
<td>Country</td><td></td><td>India</td>
</tr>
<tr>
<td>Continent</td><td></td><td>Asia</td>
</tr>
<tr>
<td>Indicator</td><td></td><td>Green</td>
</tr>
<tr>
<td>vision</td><td></td><td>Asia</td>
</tr>
</table>
<br>
<h4>Employee 17, - <i>Create</i>
</h4>
<table border="0" width="100%">
<th align="left" width="40%"><u>Field Name</u></th><th align="left" width="30%"><u>From Value</u></th><th align="left" width="30%"><u>To Value</u></th>
<tr>
<td>Name</td><td></td><td>xyzxyz</td>
</tr>
<tr>
<td>Place</td><td></td><td>Mangalore</td>
</tr>
<tr>
<td>State</td><td></td><td>Karnataka</td>
</tr>
<tr>
<td>Country</td><td></td><td>India</td>
</tr>
<tr>
<td>Continent</td><td></td><td>Asia</td>
</tr>
<tr>
<td>Indicator</td><td></td><td>Green</td>
</tr>
<tr>
<td>vision</td><td></td><td>Asia</td>
</tr>
</table>
<br>
<h4>Employee 18, - <i>Create</i>
</h4>
<table border="0" width="100%">
<th align="left" width="40%"><u>Field Name</u></th><th align="left" width="30%"><u>From Value</u></th><th align="left" width="30%"><u>To Value</u></th>
<tr>
<td>Name</td><td></td><td>xyzxyz</td>
</tr>
<tr>
<td>Place</td><td></td><td>Mangalore</td>
</tr>
<tr>
<td>State</td><td></td><td>Karnataka</td>
</tr>
<tr>
<td>Country</td><td></td><td>India</td>
</tr>
<tr>
<td>Continent</td><td></td><td>Asia</td>
</tr>
<tr>
<td>Indicator</td><td></td><td>Green</td>
</tr>
<tr>
<td>vision</td><td></td><td>Asia</td>
</tr>
</table>
<br>
<h4>Employee 19, - <i>Create</i>
</h4>
<table border="0" width="100%">
<th align="left" width="40%"><u>Field Name</u></th><th align="left" width="30%"><u>From Value</u></th><th align="left" width="30%"><u>To Value</u></th>
<tr>
<td>Name</td><td></td><td>xyzxyz</td>
</tr>
<tr>
<td>Place</td><td></td><td>Mangalore</td>
</tr>
<tr>
<td>State</td><td></td><td>Karnataka</td>
</tr>
<tr>
<td>Country</td><td></td><td>India</td>
</tr>
<tr>
<td>Continent</td><td></td><td>Asia</td>
</tr>
<tr>
<td>Indicator</td><td></td><td>Green</td>
</tr>
<tr>
<td>vision</td><td></td><td>Asia</td>
</tr>
</table>
<br>
<h4>Employee 20, - <i>Create</i>
</h4>
<table border="0" width="100%">
<th align="left" width="40%"><u>Field Name</u></th><th align="left" width="30%"><u>From Value</u></th><th align="left" width="30%"><u>To Value</u></th>
<tr>
<td>Name</td><td></td><td>xyzxyz</td>
</tr>
<tr>
<td>Place</td><td></td><td>Mangalore</td>
</tr>
<tr>
<td>State</td><td></td><td>Karnataka</td>
</tr>
<tr>
<td>Country</td><td></td><td>India</td>
</tr>
<tr>
<td>Continent</td><td></td><td>Asia</td>
</tr>
<tr>
<td>Indicator</td><td></td><td>Green</td>
</tr>
<tr>
<td>vision</td><td></td><td>Asia</td>
</tr>
</table>
<br>
<h4>Employee 21, - <i>Create</i>
</h4>
<table border="0" width="100%">
<th align="left" width="40%"><u>Field Name</u></th><th align="left" width="30%"><u>From Value</u></th><th align="left" width="30%"><u>To Value</u></th>
<tr>
<td>Name</td><td></td><td>xyzxyz</td>
</tr>
<tr>
<td>Place</td><td></td><td>Mangalore</td>
</tr>
<tr>
<td>State</td><td></td><td>Karnataka</td>
</tr>
<tr>
<td>Country</td><td></td><td>India</td>
</tr>
<tr>
<td>Continent</td><td></td><td>Asia</td>
</tr>
<tr>
<td>Indicator</td><td></td><td>Green</td>
</tr>
<tr>
<td>vision</td><td></td><td>Asia</td>
</tr>
</table>
<br>
<h4>Employee 22, - <i>Create</i>
</h4>
<table border="0" width="100%">
<th align="left" width="40%"><u>Field Name</u></th><th align="left" width="30%"><u>From Value</u></th><th align="left" width="30%"><u>To Value</u></th>
<tr>
<td>Name</td><td></td><td>xyzxyz</td>
</tr>
<tr>
<td>Place</td><td></td><td>Mangalore</td>
</tr>
<tr>
<td>State</td><td></td><td>Karnataka</td>
</tr>
<tr>
<td>Country</td><td></td><td>India</td>
</tr>
<tr>
<td>Continent</td><td></td><td>Asia</td>
</tr>
<tr>
<td>Indicator</td><td></td><td>Green</td>
</tr>
<tr>
<td>vision</td><td></td><td>Asia</td>
</tr>
</table>
<br>
<h4>Employee 23, - <i>Create</i>
</h4>
<table border="0" width="100%">
<th align="left" width="40%"><u>Field Name</u></th><th align="left" width="30%"><u>From Value</u></th><th align="left" width="30%"><u>To Value</u></th>
<tr>
<td>Name</td><td></td><td>xyzxyz</td>
</tr>
<tr>
<td>Place</td><td></td><td>Mangalore</td>
</tr>
<tr>
<td>State</td><td></td><td>Karnataka</td>
</tr>
<tr>
<td>Country</td><td></td><td>India</td>
</tr>
<tr>
<td>Continent</td><td></td><td>Asia</td>
</tr>
<tr>
<td>Indicator</td><td></td><td>Green</td>
</tr>
<tr>
<td>vision</td><td></td><td>Asia</td>
</tr>
</table>
<br>
<h4>Employee 24, - <i>Create</i>
</h4>
<table border="0" width="100%">
<th align="left" width="40%"><u>Field Name</u></th><th align="left" width="30%"><u>From Value</u></th><th align="left" width="30%"><u>To Value</u></th>
<tr>
<td>Name</td><td></td><td>xyzxyz</td>
</tr>
<tr>
<td>Place</td><td></td><td>Mangalore</td>
</tr>
<tr>
<td>State</td><td></td><td>Karnataka</td>
</tr>
<tr>
<td>Country</td><td></td><td>India</td>
</tr>
<tr>
<td>Continent</td><td></td><td>Asia</td>
</tr>
<tr>
<td>Indicator</td><td></td><td>Green</td>
</tr>
<tr>
<td>vision</td><td></td><td>Asia</td>
</tr>
</table>
<br>
<h4>Employee 25, - <i>Create</i>
</h4>
<table border="0" width="100%">
<th align="left" width="40%"><u>Field Name</u></th><th align="left" width="30%"><u>From Value</u></th><th align="left" width="30%"><u>To Value</u></th>
<tr>
<td>Name</td><td></td><td>xyzxyz</td>
</tr>
<tr>
<td>Place</td><td></td><td>Mangalore</td>
</tr>
<tr>
<td>State</td><td></td><td>Karnataka</td>
</tr>
<tr>
<td>Country</td><td></td><td>India</td>
</tr>
<tr>
<td>Continent</td><td></td><td>Asia</td>
</tr>
<tr>
<td>Indicator</td><td></td><td>Green</td>
</tr>
<tr>
<td>vision</td><td></td><td>Asia</td>
</tr>
</table>
<br>
<h4>Employee 26, - <i>Create</i>
</h4>
<table border="0" width="100%">
<th align="left" width="40%"><u>Field Name</u></th><th align="left" width="30%"><u>From Value</u></th><th align="left" width="30%"><u>To Value</u></th>
<tr>
<td>Name</td><td></td><td>xyzxyz</td>
</tr>
<tr>
<td>Place</td><td></td><td>Mangalore</td>
</tr>
<tr>
<td>State</td><td></td><td>Karnataka</td>
</tr>
<tr>
<td>Country</td><td></td><td>India</td>
</tr>
<tr>
<td>Continent</td><td></td><td>Asia</td>
</tr>
<tr>
<td>Indicator</td><td></td><td>Green</td>
</tr>
<tr>
<td>vision</td><td></td><td>Asia</td>
</tr>
</table>
<br>
<h4>Employee 27, - <i>Create</i>
</h4>
<table border="0" width="100%">
<th align="left" width="40%"><u>Field Name</u></th><th align="left" width="30%"><u>From Value</u></th><th align="left" width="30%"><u>To Value</u></th>
<tr>
<td>Name</td><td></td><td>xyzxyz</td>
</tr>
<tr>
<td>Place</td><td></td><td>Mangalore</td>
</tr>
<tr>
<td>State</td><td></td><td>Karnataka</td>
</tr>
<tr>
<td>Country</td><td></td><td>India</td>
</tr>
<tr>
<td>Continent</td><td></td><td>Asia</td>
</tr>
<tr>
<td>Indicator</td><td></td><td>Green</td>
</tr>
<tr>
<td>vision</td><td></td><td>Asia</td>
</tr>
</table>
<br>
<h4>Employee 28, - <i>Create</i>
</h4>
<table border="0" width="100%">
<th align="left" width="40%"><u>Field Name</u></th><th align="left" width="30%"><u>From Value</u></th><th align="left" width="30%"><u>To Value</u></th>
<tr>
<td>Name</td><td></td><td>xyzxyz</td>
</tr>
<tr>
<td>Place</td><td></td><td>Mangalore</td>
</tr>
<tr>
<td>State</td><td></td><td>Karnataka</td>
</tr>
<tr>
<td>Country</td><td></td><td>India</td>
</tr>
<tr>
<td>Continent</td><td></td><td>Asia</td>
</tr>
<tr>
<td>Indicator</td><td></td><td>Green</td>
</tr>
<tr>
<td>vision</td><td></td><td>Asia</td>
</tr>
</table>
<br>
<h4>Employee 29, - <i>Create</i>
</h4>
<table border="0" width="100%">
<th align="left" width="40%"><u>Field Name</u></th><th align="left" width="30%"><u>From Value</u></th><th align="left" width="30%"><u>To Value</u></th>
<tr>
<td>Name</td><td></td><td>xyzxyz</td>
</tr>
<tr>
<td>Place</td><td></td><td>Mangalore</td>
</tr>
<tr>
<td>State</td><td></td><td>Karnataka</td>
</tr>
<tr>
<td>Country</td><td></td><td>India</td>
</tr>
<tr>
<td>Continent</td><td></td><td>Asia</td>
</tr>
<tr>
<td>Indicator</td><td></td><td>Green</td>
</tr>
<tr>
<td>vision</td><td></td><td>Asia</td>
</tr>
</table>
<br>
<h4>Employee 30, - <i>Create</i>
</h4>
<table border="0" width="100%">
<th align="left" width="40%"><u>Field Name</u></th><th align="left" width="30%"><u>From Value</u></th><th align="left" width="30%"><u>To Value</u></th>
<tr>
<td>Name</td><td></td><td>xyzxyz</td>
</tr>
<tr>
<td>Place</td><td></td><td>Mangalore</td>
</tr>
<tr>
<td>State</td><td></td><td>Karnataka</td>
</tr>
<tr>
<td>Country</td><td></td><td>India</td>
</tr>
<tr>
<td>Continent</td><td></td><td>Asia</td>
</tr>
<tr>
<td>Indicator</td><td></td><td>Green</td>
</tr>
<tr>
<td>vision</td><td></td><td>Asia</td>
</tr>
</table>
<br>
<h4>Employee 31, - <i>Create</i>
</h4>
<table border="0" width="100%">
<th align="left" width="40%"><u>Field Name</u></th><th align="left" width="30%"><u>From Value</u></th><th align="left" width="30%"><u>To Value</u></th>
<tr>
<td>Name</td><td></td><td>xyzxyz</td>
</tr>
<tr>
<td>Place</td><td></td><td>Mangalore</td>
</tr>
<tr>
<td>State</td><td></td><td>Karnataka</td>
</tr>
<tr>
<td>Country</td><td></td><td>India</td>
</tr>
<tr>
<td>Continent</td><td></td><td>Asia</td>
</tr>
<tr>
<td>Indicator</td><td></td><td>Green</td>
</tr>
<tr>
<td>vision</td><td></td><td>Asia</td>
</tr>
</table>
<br>
<h4>Employee 32, - <i>Create</i>
</h4>
<table border="0" width="100%">
<th align="left" width="40%"><u>Field Name</u></th><th align="left" width="30%"><u>From Value</u></th><th align="left" width="30%"><u>To Value</u></th>
<tr>
<td>Name</td><td></td><td>xyzxyz</td>
</tr>
<tr>
<td>Place</td><td></td><td>Mangalore</td>
</tr>
<tr>
<td>State</td><td></td><td>Karnataka</td>
</tr>
<tr>
<td>Country</td><td></td><td>India</td>
</tr>
<tr>
<td>Continent</td><td></td><td>Asia</td>
</tr>
<tr>
<td>Indicator</td><td></td><td>Green</td>
</tr>
<tr>
<td>vision</td><td></td><td>Asia</td>
</tr>
</table>
<br>
<h4>Employee 33, - <i>Create</i>
</h4>
<table border="0" width="100%">
<th align="left" width="40%"><u>Field Name</u></th><th align="left" width="30%"><u>From Value</u></th><th align="left" width="30%"><u>To Value</u></th>
<tr>
<td>Name</td><td></td><td>xyzxyz</td>
</tr>
<tr>
<td>Place</td><td></td><td>Mangalore</td>
</tr>
<tr>
<td>State</td><td></td><td>Karnataka</td>
</tr>
<tr>
<td>Country</td><td></td><td>India</td>
</tr>
<tr>
<td>Continent</td><td></td><td>Asia</td>
</tr>
<tr>
<td>Indicator</td><td></td><td>Green</td>
</tr>
<tr>
<td>vision</td><td></td><td>Asia</td>
</tr>
</table>
<br>
<h4>Employee 34, - <i>Create</i>
</h4>
<table border="0" width="100%">
<th align="left" width="40%"><u>Field Name</u></th><th align="left" width="30%"><u>From Value</u></th><th align="left" width="30%"><u>To Value</u></th>
<tr>
<td>Name</td><td></td><td>xyzxyz</td>
</tr>
<tr>
<td>Place</td><td></td><td>Mangalore</td>
</tr>
<tr>
<td>State</td><td></td><td>Karnataka</td>
</tr>
<tr>
<td>Country</td><td></td><td>India</td>
</tr>
<tr>
<td>Continent</td><td></td><td>Asia</td>
</tr>
<tr>
<td>Indicator</td><td></td><td>Green</td>
</tr>
<tr>
<td>vision</td><td></td><td>Asia</td>
</tr>
</table>
<br>
<h4>Employee 35, - <i>Create</i>
</h4>
<table border="0" width="100%">
<th align="left" width="40%"><u>Field Name</u></th><th align="left" width="30%"><u>From Value</u></th><th align="left" width="30%"><u>To Value</u></th>
<tr>
<td>Name</td><td></td><td>xyzxyz</td>
</tr>
<tr>
<td>Place</td><td></td><td>Mangalore</td>
</tr>
<tr>
<td>State</td><td></td><td>Karnataka</td>
</tr>
<tr>
<td>Country</td><td></td><td>India</td>
</tr>
<tr>
<td>Continent</td><td></td><td>Asia</td>
</tr>
<tr>
<td>Indicator</td><td></td><td>Green</td>
</tr>
<tr>
<td>vision</td><td></td><td>Asia</td>
</tr>
</table>
<br>
<h4>Employee 36, - <i>Create</i>
</h4>
<table border="0" width="100%">
<th align="left" width="40%"><u>Field Name</u></th><th align="left" width="30%"><u>From Value</u></th><th align="left" width="30%"><u>To Value</u></th>
<tr>
<td>Name</td><td></td><td>xyzxyz</td>
</tr>
<tr>
<td>Place</td><td></td><td>Mangalore</td>
</tr>
<tr>
<td>State</td><td></td><td>Karnataka</td>
</tr>
<tr>
<td>Country</td><td></td><td>India</td>
</tr>
<tr>
<td>Continent</td><td></td><td>Asia</td>
</tr>
<tr>
<td>Indicator</td><td></td><td>Green</td>
</tr>
<tr>
<td>vision</td><td></td><td>Asia</td>
</tr>
</table>
<br>
<h4>Employee 37, - <i>Create</i>
</h4>
<table border="0" width="100%">
<th align="left" width="40%"><u>Field Name</u></th><th align="left" width="30%"><u>From Value</u></th><th align="left" width="30%"><u>To Value</u></th>
<tr>
<td>Name</td><td></td><td>xyzxyz</td>
</tr>
<tr>
<td>Place</td><td></td><td>Mangalore</td>
</tr>
<tr>
<td>State</td><td></td><td>Karnataka</td>
</tr>
<tr>
<td>Country</td><td></td><td>India</td>
</tr>
<tr>
<td>Continent</td><td></td><td>Asia</td>
</tr>
<tr></tr>
<tr>
<td>Unit </td><td></td><td>India/MT</td>
</tr>
<tr>
<td>Floor</td><td></td><td>MARblE</td>
</tr>
<tr>
<td>Rating</td><td></td><td>Quantity: amount = 45 uom = MT</td>
</tr>
</table>
<br>
<h4>Employee 60, Employed - <i>Create</i>
</h4>
<table border="0" width="100%">
<th align="left" width="40%"><u>Field Name</u></th><th align="left" width="30%"><u>From Value</u></th><th align="left" width="30%"><u>To Value</u></th>
<tr>
<td>Price</td><td></td><td>India/MT</td>
</tr>
</table>
<br>
<h4>Employee 61, Employee - <i>Create</i>
</h4>
<table border="0" width="100%">
<th align="left" width="40%"><u>Field Name</u></th><th align="left" width="30%"><u>From Value</u></th><th align="left" width="30%"><u>To Value</u></th>
<tr>
<td>Accept the agreement</td><td></td><td>Asia</td>
</tr>
<tr>
<td>Indicator</td><td></td><td>True</td>
</tr>
<tr>
<td>Conditions</td><td></td><td>AIR</td>
</tr>
<tr>
<td> Status</td><td></td><td>QUALIFIED</td>
</tr>
<tr>
<td>Job Type</td><td></td><td>ddddd</td>
</tr>
<tr>
<td>agreement signed</td><td></td><td>TRUE</td>
</tr>
<tr>
<td>Degree</td><td></td><td>True</td>
</tr>
<tr>
<td> Options</td><td></td><td>Asia</td>
</tr>
<tr>
<td>Quality</td><td></td><td>TRUE</td>
</tr>
<tr>
<td>Quantity</td><td></td><td>123</td>
</tr>
<tr>
<td>Basis</td><td></td><td>TOTAL</td>
</tr>
<tr>
<td>GapPresent</td><td></td><td>TRUE</td>
</tr>
<tr>
<td>Unit </td><td></td><td>MT</td>
</tr>
<tr>
<td>Warning</td><td></td><td>4000000</td>
</tr>
<tr>
<td>Rounding </td><td></td><td>3</td>
</tr>
<tr>
<td>Security</td><td></td><td>OC</td>
</tr>
<tr>
<td>Number</td><td></td><td>61</td>
</tr>
<tr>
<td>Employee Status</td><td></td><td>Rupee INDIA</td>
</tr>
</table>
<br>
<h4>Employee 61 - <i>Create</i>
</h4>
<table border="0" width="100%">
<th align="left" width="40%"><u>Field Name</u></th><th align="left" width="30%"><u>From Value</u></th><th align="left" width="30%"><u>To Value</u></th>
<tr>
<td>Alternative </td><td></td><td>Asia</td>
</tr>
<tr>
<td>Advantage</td><td></td><td>all</td>
</tr>
<tr>
<td>Loading</td><td></td><td>all</td>
</tr>
<tr>
<td>flag</td><td></td><td>Asia</td>
</tr>
<tr>
<td>Lateral</td><td></td><td>True</td>
</tr>
<tr>
<td> Mode</td><td></td><td>Null</td>
</tr>
</table>
<br>
<h4>Employee 61, Chain - <i>Create</i>
</h4>
<table border="0" width="100%">
<th align="left" width="40%"><u>Field Name</u></th><th align="left" width="30%"><u>From Value</u></th><th align="left" width="30%"><u>To Value</u></th>
<tr>
<td>Roll Number</td><td></td><td>1</td>
</tr>
<tr>
<td>Section</td><td></td><td>AA</td>
</tr>
<tr>
<td>Percentage</td><td></td><td>100</td>
</tr>
</table>
<br>
<h4>Employee 61, Employee Terms - <i>Create</i>
</h4>
<table border="0" width="100%">
<th align="left" width="40%"><u>Field Name</u></th><th align="left" width="30%"><u>From Value</u></th><th align="left" width="30%"><u>To Value</u></th>
<tr>
<td>Date of Record</td><td></td><td>DateRange
startDate=01-Jun-2009
endDate=30-Jun-2009
</td>
</tr>
<tr>
<td>Continent</td><td></td><td>Asia</td>
</tr>
</table>
<br>
<h4>Employee 61, Employed - <i>Create</i>
</h4>
<table border="0" width="100%">
<th align="left" width="40%"><u>Field Name</u></th><th align="left" width="30%"><u>From Value</u></th><th align="left" width="30%"><u>To Value</u></th>
<tr>
<td>Price</td><td></td><td>India/MT</td>
</tr>
</table>
<br>
<h4>Employee 61, Employed Term 1, Fixed Employed - <i>Create</i>
</h4>
<table border="0" width="100%">
<th align="left" width="40%"><u>Field Name</u></th><th align="left" width="30%"><u>From Value</u></th><th align="left" width="30%"><u>To Value</u></th>
<tr>
<td>Alternative</td><td></td><td>Asia</td>
</tr>
<tr>
<td>Price </td><td></td><td>123</td>
</tr>
<tr>
<td>Unit </td><td></td><td>India/MT</td>
</tr>
<tr>
<td>Floor</td><td></td><td>MARblE</td>
</tr>
<tr>
<td>Remainder</td><td></td><td>Asia</td>
</tr>
<tr>
<td>Rating</td><td></td><td>Return: amount = 55 uom = HH</td>
</tr>
</table>
<br>
<h4>Employee 61, Employed Term 2, Fixed Employed - <i>Create</i>
</h4>
<table border="0" width="100%">
<th align="left" width="40%"><u>Field Name</u></th><th align="left" width="30%"><u>From Value</u></th><th align="left" width="30%"><u>To Value</u></th>
<tr>
<td>Price </td><td></td><td>123</td>
</tr>
<tr>
<td>Unit </td><td></td><td>India/MT</td>
</tr>
<tr>
<td>Floor</td><td></td><td>MARblE</td>
</tr>
<tr>
<td>Rating</td><td></td><td>Quantity: amount = 45 uom = MT</td>
</tr>
</table>
<br>
<h4>Employee 61, Demurrage - <i>Create</i>
</h4>
<table border="0" width="100%">
<th align="left" width="40%"><u>Field Name</u></th><th align="left" width="30%"><u>From Value</u></th><th align="left" width="30%"><u>To Value</u></th>
<tr>
<td>Country</td><td></td><td>Africa</td>
</tr>
<tr>
<td>Term Period</td><td></td><td>2 months</td>
</tr>
<tr>
<td>Time Period</td><td></td><td>Asia</td>
</tr>
<tr>
<td>Flag ON/OFF</td><td></td><td>Asia</td>
</tr>
</table>
<br>
<h4>Employee 61, Organisation Job Settlement Term - <i>Create</i>
</h4>
<table border="0" width="100%">
<th align="left" width="40%"><u>Field Name</u></th><th align="left" width="30%"><u>From Value</u></th><th align="left" width="30%"><u>To Value</u></th>
<tr>
<td>Indicator</td><td></td><td>aaaaa</td>
</tr>
<tr>
<td>Alt Event</td><td></td><td>blSPLIT</td>
</tr>
<tr>
<td>Alt Osssssssssssssst</td><td></td><td>2</td>
</tr>
<tr>
<td>Calendar</td><td></td><td>NEW YORK</td>
</tr>
<tr>
<td>Currency Type</td><td></td><td>India</td>
</tr>
<tr>
<td>Day</td><td></td><td>aaaaa</td>
</tr>
<tr>
<td>Event</td><td></td><td>bl</td>
</tr>
<tr>
<td>alter ddddddddd</td><td></td><td>Asia</td>
</t

Screen_Name_09, You can post in the bug database.
http://bugs.sun.com/bugdatabase/

Similar Messages

  • Display html content in BrowserContentManager

    hello guys .
                        i want to display html content with help of BrowserContentManager...
                        how it ll dio can any one tell me plz.

    Firstly, I would suggest checking the Developer Docs on this one, then perhaps phrasing your query in the Developer Support Forums so other developers will see the query as they are better equipped to assist on this one!
    A.

  • How to display html content in flex hero..

    i need to display html content using flex hero for balckberry playbook..i could not find a component for it..i have tried with spark text area by setting its html text property via MobileTextField. bt i need a webview to load html content to execute javascript and all....Is there any component for it???? Please help....

    Hello,
    The only current way is to use an iFrame, or if you only need some html tags you could use the Text Layout Framework.
    Here this is the iFrame approach:
    http://code.google.com/p/flex-iframe/
    If the swc do not work in Flex4 just use its ource code which works...
    ...it is basically based on this:
    http://www.deitte.com/archives/2008/07/dont_use_iframe.htm
    see also and vote, please:
    http://bugs.adobe.com/jira/browse/SDK-12291
    http://bugs.adobe.com/jira/browse/SDK-13740
    Regards
    Marc

  • Memory leak in UIButton setFont method

    Hi,
    Hope you all doing well, I am getting a memory leak while setting the font of UIButton. This is the code which I am using to set the font,
    [MyBtn.titleLabel setFont:[UIFont boldSystemFontOfSize:12]];
    whereas MyBtn is connected to IBOoutlet and I am not allocating memory to it.
    I don't see any thing wrong in the code. Hopefully someone will help me out, I will be really thankful.

    In instrument the responsible library is UIKit and UILabel is the leaked object so I am also not sure whether instrument is pointing the right line or not.
    Below is the function in which I am getting the leak,
    - (void) LayoutUI
    [bgImageView setImage:[UIImage imageNamed:@"bgImage.png"]];
    [topImageHeaderView setImage:[UIImage imageNamed:@"headerImage.png"]];
    [logoImageView setImage:[UIImage imageNamed:@"logo.png"]];
    [HeaderImageView setImage:[UIImage imageNamed:@"headerImageView.png"]];
    [BackBtn setTitle:@"Back" forState:UIControlStateNormal];
    [BackBtn.titleLabel setFont:[UIFont boldSystemFontOfSize:12]];
    [BackBtn setBackgroundImage:[UIImage imageNamed:@"back.png"] forState:UIControlStateNormal];
    //below is the Leaked line of code
    [BackBtn.titleLabel setTextColor:[UIColor colorWithRed:(50.0/256.0) green:(100.0/256.0) blue:(200.0/256.0) alpha:1]];
    [headerLbl setText:@"Header"];
    //below two lines are leaked
    [headerLbl setFont:[UIFont boldSystemFontOfSize:12]];
    [headerLbl setTextColor:[UIColor colorWithRed:(50.0/256.0) green:(100.0/256.0) blue:(200.0/256.0) alpha:1]];
    hopefully this will show a picture of what I am doing in my code.
    One more thing all these UIlabels and UIImage are connected to IBOoutlet so I am not allocating memory to any of them but though I have tried to dealloc all of them in dealloc method but it didn't help me out.

  • Memory Leak in Preview.app when switching Display Profiles

    I found a weird memory leak in Max OS X Preview.app, which manifests itself when Display profiles (color calbration) is change. I wonder if anyone else can reproduce my experience.
    1. Open up "System Preferences" -> "Displays", switch to the "Color" tab. You'll need at least 2 available profiles in the list. (If you only have 1, you can create another using "Calibrate..." button to launch Display Calibration Assistant.
    2. Open an image file in Preview.app.  The larger, the better. Zoom in full size to maximize the effect of the bug. I repro'ed easily with this image: http://www.donporter.net/NewSchool/Color/Examples/Printer%20Test%20file.jpg
    3. Open up "Activity Monitor.app", and click on Preview to highlight it, so you can watch its memory usage.
    4. Switch back to "Diplays" Preference Pane. Using the arrow keys, toggle up and down between two different Display profiles.
    4a. At the same time, watch Preview's "Real Mem" in Activity Monitor, as well as the total "Active" memory.
    5. Each time you switch profiles,  Preview consumes more Active/Real memory, about 25MB per switch in my case. This continues until all physical memory is consumed, and then (I presume) starts swapping virtual memory to disk.
    6. Bring Preview to  foreground, and all the profile-induced memory usage is freed.
    Weird, wild stuff.

    Could it be possible that this is just the OS holding the memory for the app until another process requires it?  Do you find that the memory increase eventually causes the app to become unstable? 
    It might be best to open a new bug report on this over at bugbase.adobe.com.  When adding the bug, please include any source code, project or installer that will help us reproduce the issue internally.  If you'd like to keep your code private, feel free to email it directly to [email protected]  Once entered, please post back with the URL so that others effected can add their comments and votes.
    Thanks,
    Chris

  • MIME-TYPE is stored incorrectly sometimes, browsers can't display html content

    Our company is switching from Netscape Communicator to Internet Explorer 5.5 . This resulted sometimes in html-documents which could not be opened in netscape anymore, but caused the save-as dialogue box to pop-up.
    Analysis of this problem, with the aid of Oracle Support, showed some html-documents were stored in WWV_DOCUMENT with mime-type application/octer-stream. This is a mime type which should trigger the save-as pop-up dialogue in browsers. Netscape acts accordingly, but IE does display the content normally.
    The following events cause this problem:
    1. create a html document using a microsoft office product (word/excel)
    2. DON'T close the document in the office application
    3. Use the portal wizard to upload the file to a content area
    4. Use table WWV_THINGS and WWV_DOCUMENT and see mime-type isn't text/html but application/octet-stream
    5. IE shows the file, NN wants to save it.
    The workaround to this problem is to close the file in MSOffice before uploading it.
    Oracle Development confirmed it's the browser which sends this incorrect mime-type, and portal just stores this type. It seems this mime-type is overruling the extension to mime-type mapping in the configuration of Apache, using AddType or the file mime.types.
    So the mime-types defined in apache are only used outside mod_plsql, that is, when files from the filesystem of the webserver itself are used.
    When uploading a zip-file, and unzipping it in the database, all files get the right mime-type. It seems in this situation the mime-type is determined by looking either at the file-extention or the magic bits.
    Oracle says it's a microsoft bug, so I'll have to ask Bill for a fix.
    They are probably right, and I think I could reproduce this using CGI-scripting without modplsql and portal.
    But:
    It seems not logically to me that it depends on the method of uploading files (single files, or zipped files) which method of mime-type determination is used.
    Furthermore, I find it strange that it depends on the storage location of the file (database or filesystem) which mime-type is presented at the user.
    I'd like to hear your opinions about this
    Regards,
    Ton Haver

    You want to be using <html:link forward="YOUR_FORWARD"> only when you want to forward to static elements and not elements that require actions. So in index.jsp, since you just want to forward to a static jsp page (allarticle.jsp), you can use
    <html:link forward="show">Show All forum</html:link>But since you want your "one forum" link to populate a session attribute BEFORE loading /jsp/loveforum.jsp, you need
    <html:link action="article">one forum</html:link>The reason it's not working now is because you're accessing a session attribute that isn't populated becuase you link to the page statically and it never gets the value of "list" actually stored in the session.
    The reason it works when you change your forward element is because it calls the action that saves "list" into your session.

  • How to display html content with image in Adobe Flash and Flex mobile project?

    Hi,
      I have a html content with image in it. How to display it in Adobe Flash Builder and Flex mobile project? Which control needs to be used for this?

    Hello,
    The only current way is to use an iFrame, or if you only need some html tags you could use the Text Layout Framework.
    Here this is the iFrame approach:
    http://code.google.com/p/flex-iframe/
    If the swc do not work in Flex4 just use its ource code which works...
    ...it is basically based on this:
    http://www.deitte.com/archives/2008/07/dont_use_iframe.htm
    see also and vote, please:
    http://bugs.adobe.com/jira/browse/SDK-12291
    http://bugs.adobe.com/jira/browse/SDK-13740
    Regards
    Marc

  • Displaying HTML Content in Swing

    Say I was developing an email client, and I wanted to display HTML based email.
    How would I go about that.
    Are there any libraries out there that can parse through HTML and display it? And what about JavaScript?

    Use Search!
    http://developer.java.sun.com/developer/qow/archive/29/index.html

  • How to Display HTML content in Discoverer Viewer?

    Hi,
    Is there any way to display html in the Discoverer Viewer 4i or 9i ?
    The HTML code could be stored in a CLOB, varchar2 field or also in a referenced HTML side. What I want is that the HTML code is already displayed in the Discoverer Viewer. I know that you can display it by clicking on the filed but that is not what the customer wants.
    Thanks
    Mike

    Hello,
    The only current way is to use an iFrame, or if you only need some html tags you could use the Text Layout Framework.
    Here this is the iFrame approach:
    http://code.google.com/p/flex-iframe/
    If the swc do not work in Flex4 just use its ource code which works...
    ...it is basically based on this:
    http://www.deitte.com/archives/2008/07/dont_use_iframe.htm
    see also and vote, please:
    http://bugs.adobe.com/jira/browse/SDK-12291
    http://bugs.adobe.com/jira/browse/SDK-13740
    Regards
    Marc

  • To Display HTML content on ADF page

    Guys,
    I want to display the content from Website (its contains images and text) on to the ADF page. Which component should i use?
    I dont want to use Iframe since we cant set the height properly...

    af:inlineFrame is pretty much your only option. What do you mean you cannot set the height properly?

  • URGENT: JEditorPane (a Java Browser) displaying HTML form

    Hi,
    I am using JEditorPane to display the wb pages but geeting problem as
    I don't get any kind of event when I click on the HTML form SUBMIT button though it does work but didn't allow me to get the URL of the new page that I got after hitting this SUBMIT button..
    I searched the whole net and it seems to me that lot of people got this problem...
    As I need this for my project please HELP me as soon as possible.

    This may be too late for you (hopefully not), but I had the same problem a little while ago and just figured out how to fix it. Basically, you need to examine the Element structure of the html yourself and manually handle the form, as far as I can tell. There are several ways to display a URL in a JEditorPane, but the most straight-forward (JEditorPane.setPage(URL url)) doesn't actually store the Element structure anywhere accessible. Here's the code to load the page:
    JEditorPane contents;
    HTMLEditorKit kit = new HTMLEditorKit();
    HTMLDocument htmlDoc = new HTMLDocument();
    contents.setEditorKit(kit);
    contents.setDocument(htmlDoc);
    URL url = new URL("http://blahblahblah.com");
    contents.read(url.openStream(), htmlDoc);Now that you have the page loaded correctly, you can access to the Elements within. You can use htmlDoc.getDefaultRootElement() to get the root and then iterate recursively through all the child Elements, checking out the Attributes of each. This will look for the submit button and add a listener to it for you:
    private void parseElements(Element elem) {
        AttributeSet atts = elem.getAttributes();
        //If this is the submit button, add a listener:
             Object model = atts.getAttribute(StyleConstants.ModelAttribute);
             Object type = atts.getAttribute(HTML.Attribute.TYPE);
             if ((type != null) && (type.equals("submit"))) {
                 DefaultButtonModel btn = (DefaultButtonModel) model;
                 btn.addActionListener(new ActionListener() {
                     public void actionPerformed(ActionEvent event) {
                         System.out.println("Yay!");
        //Recurse
        for (int i = 0; i < elem.getElementCount(); i++)
             parseElements(elem.getElement(i));
    }Of course, printing out "Yay!" is not really very helpful. When you're parsing through the Elements, check for the attribute StyleContsants.ModelAttribute. If that exists, you can cast it to the correct type of Model (see the documentation for HTMLDocument.HTMLReader.FormAction for information about what types of models to expect from what types of HTML elements) and store it until the "submit" button is pressed. Then all you have to do is get all the data from the models, format it and submit it to the action URL in either a "get" or a "post." The action URL is stored, in Java 1.3, in the HTML.Tag.Form attribute of one of the Elements (I don't remember which one). Getting that attribute returns a SimpleAttributeSet, and you get the HTML.Attribute.Action out of that. In Java 1.4 it's easier to find, you just have to look for the HTML.Attribure.Action attribute in one of the Elements.
    Why isn't this all automatically done for you? I don't know. Good luck.
    -Nathan

  • SERVLET-fileext_not_set: Extension of file not found, while displaying static content

    I got the above-mentioned error when the application tries to display a JSP
    page. Any idea what it could be due to? I'm using iAS.
    Christopher Lam

    Hi All,
    Sorry for the false alarm, I finally found out that this problem is due to
    an exception in my bean which was not handled properly, resulting the JSP
    does not know what to display. Now it is OK after the bean is corrected.
    Thanks anyway.
    Christopher Lam
    "Christopher Lam" <[email protected]> wrote in message
    news:9tfpon$[email protected]..
    I got the above-mentioned error when the application tries to display aJSP
    page. Any idea what it could be due to? I'm using iAS.
    Christopher Lam

  • How to display HTML content in Siebel form applet

    Hi All
    I have a requirement where I send data from external webservice to be displayed in a siebel form applet. The control which displays this data is a textarea but the problem is my data is with HTML tags in it like
    <html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40"><head><META
    I need siebel to not show these tags but to show normal data after encoding the tags. I selected HTML Display Mode as 'EncodeData' but it is not removing the HTML tags.
    Please Help!
    Thanks
    Shweta

    Hello Shweta,
    From what I have observed, TextArea do not allow HTML formatting. This is because they are dependant on the Siebel ActiveX component unlike the Textbox.
    So in case you want to try to remove the HTML tags:
    1. Try with a text box instead of a text area.
    2. In the form applet map the control and try with HTML Display Mode as DontEncodeData if not successful.
    3. Also set the HTML Type to Field.
    Warm Regards,
    Tanmay Jain

  • How to display HTML contents on IPhone App ?

    Hello,
    I am creating a IPhone apps which display Quiz. So Questions & Options will have images url, bold & Italic using HTML.
    Now I am using UIlabel to show the plain text. Please let me know how can I display these questions with my app.
    Thanks
    Laxmilal

    UIWebView

  • Display HTML Content

    Hello:
    I have a requirement to display the HTML page content onto my JavaFX application.
    I have a document in xml format stored as a clob in my database. I have retrieved this data and transformed it to a string in HTML format using XSLT.
    Now I am facing a challenge to display this formatted HTML string content on my javafx page.
    Not sure on how to use webview to implement this requirement. Any hints/tips on resolving this issue would be highly appreciated.
    Thanks in adv.

    Thanks jsmith!
    I am ecstatic! It works perfectly the way it has to!
    jsmith wrote:
    If the output of the transform is a string, use webview.getEngine().loadContent(string), otherwise use webview.getEngine.load(location) where location is a file or web server URL. There is a tutorial on WebView at http://docs.oracle.com/javafx/2/webview/jfxpub-webview.htm

Maybe you are looking for

  • How can i get an icloud account?

    need icloud account

  • Help Needed in Crystal Reports 2008 Charting - XY Scatter

    Hi, I need to create a XY Scatter plot using CRYSTAL 2008.i have to create 7 graphs of same XY Scatter plots in one single report.the 7 graphs i said because i have a Cost category object which will have 7 categories.so for each category i have to sh

  • Account constantly getting disabled

    Every 3 or 4 days, I get a message saying that my account has been disabled for security reasons and have to reset my password. Why does this keep happening? Is someone attempting to guess my password, causing the lockout? If someone is trying to acc

  • What was the error and how i remove (using Tomcat)

    HTTP Status 500 - type Exception report message description The server encountered an internal error () that prevented it from fulfilling this request. exception javax.servlet.ServletException: Servlet execution threw an exception root cause javax.xm

  • Is eSATA compatable with SATA2 drives?

    I have pavilion dv3000 laptop with eSATA port. Have run SATA external drives successfully. I purchased larger SATA 2 drive (1.5TB) for backup data and computer will not recognise the drive using eSATA connection yet it does when I connect via USB.  I