Forums Register Login

Search text in HTML

+Pie Number of slices to send: Send
Hi,
Please let me know how to search text in HTML using swings.

Regards,
Seema
+Pie Number of slices to send: Send
Hi,
Please let me know what you've done so far.
ShowSomeEffort
SearchFirst
[ August 21, 2008: Message edited by: Rob Prime ]
+Pie Number of slices to send: Send
Are you asking about files you have stored locally, about spidering the web, or about searching a few particular web sites?

Either way, this has nothing to do with Swing, it's about networking and text processing. Also note that SwingIsAProperNoun.
+Pie Number of slices to send: Send
I want to read HTML file and based on the search text entered , i need to find that text in the HTML file.

Yes, i am trying to read the HTML file stored locally.
First step i did is reading the HTML file. The program is below:



But exception occurs "java.io.FileNotFoundException". Please help me.

Thanks,
Seema
+Pie Number of slices to send: Send
Is "d://Hello.htm" a valid file path, and does the code have the right to access it? A common cause for FileNotFoundException are missing access privileges.

I'm not sure what keeping the HTML in a JEditorPane adds to searching it, but be aware that that class only supports HTML 3.2, so many HTML features (including CSS) will not be rendered correctly or at all.
You firghten me terribly. I would like to go home now. Here, take this tiny ad:
a bit of art, as a gift, that will fit in a stocking
https://gardener-gift.com


reply
reply
This thread has been viewed 1289 times.
Similar Threads
open source tools for WYSIWYG HTML generation
Lucene and PDF
Search for a text in a table.
Default Body Content
How to include a HTML in JSP at runtime?
More...

All times above are in ranch (not your local) time.
The current ranch time is
Mar 28, 2024 14:50:43.