I want to use jSoup on GWT server side code to be able to scrape web pages. The documentation of GWT does not help in installing external jars. Can anyone tell me how do I install the jSoup jar (downloaded from the official jSoup site) in GWT and use it in the server-side code?
By using eclipse you can do the following:
If you are using it via simple GPE eclipse project then keep it in the WEB-INF/lib .
If you are using it via a maven GPE eclipse project then add to runtime classpath scope in dependencies.
Client server interaction in either of the above scenarios:
Step 1 - RPC Call to request processing of URL.
Step 2 - RPC Server side code i.e servlets for requesting and scraping a url http://vjdef.com/home/2011/06/scraping-html-using-java-servlets-and-tagsoup/
Step 3 - RPC Server side code sends back required message post processing to client.
Step 4 - onSucess callback of the Step 1 RPC invocation will receive message.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With