parse HTML from a website

50 views
Skip to first unread message

haquo

unread,
Apr 16, 2012, 12:55:52 PM4/16/12
to google-we...@googlegroups.com
Hello all,
 I'm currently working on my end of year project and its seams that I am very stuck. In my project the user will select a text file and the program will read the content of it. let say that the file contain a sentence 
"How are you today?". The program will read that sentence word by word and compare each word with on-line source http://mygwtproject.manifo.com/(popularity of the words is from the most used "1  the" to rarely used "5001 dreamed" ) by parsing the html , than the words will be compared between each other and the least popular word will be used to create a question, eg. what today means ? 
could somebody tell me how to do the following?
1.Read the content of a text file? (I am using file upload to locate and choose the file;does GWT support FileInputStream and BufferedReader?  )
2.Parse the html from the website and compare it with the textile?
The parsing part is especially important as we never did any networking on java so I couldn't know nothing about it. also good tutorials or code examples would be a great help
thank You in advance

Ed

unread,
Apr 20, 2012, 8:52:15 AM4/20/12
to google-we...@googlegroups.com
You need to use a server.

> --
> You received this message because you are subscribed to the Google Groups
> "Google Web Toolkit" group.
> To view this discussion on the web visit
> https://groups.google.com/d/msg/google-web-toolkit/-/6plXBoQO_7wJ.
> To post to this group, send email to google-we...@googlegroups.com.
> To unsubscribe from this group, send email to
> google-web-tool...@googlegroups.com.
> For more options, visit this group at
> http://groups.google.com/group/google-web-toolkit?hl=en.

Reply all
Reply to author
Forward
0 new messages