This week's book giveaway is in the OO, Patterns, UML and Refactoring forum. We're giving away four copies of Refactoring for Software Design Smells: Managing Technical Debt and have Girish Suryanarayana, Ganesh Samarthyam & Tushar Sharma on-line! See this thread for details.
you just have to set URL, method type (Get or Post) and respective parameters. If your page set cookie then you have to set cookie value. using this class you can get the HTML page of any application in Stream and then convert it to text and use as per your requirement. If you have to get any specific data from the result page then you can also HTML parse the page using HTMLEditorKit class.
Or you could simply use the RequestDispatcher.include method. Although "simply" might not be the best word, because I guess you would have to pass your own ServletResponse object that would let you capture the result (see the javax.servlet.ServletResponseWrapper class). But it still looks a bit simpler than HttpClient to me.
Joined: Oct 18, 2009
Thank you, I will read about this
I’ve looked at a lot of different solutions, and in my humble opinion Aspose is the way to go. Here’s the link: http://aspose.com
subject: Is it possible? Take html source code from a jsp