Using spring 3.0 MVC:
Is it possible to programatically execute a controller’s action, and return the generated output (the html)?
I want to take that output and store it in the database.
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
I think that is possible. Have you ever written a jUnit test for a controller? Mocking the request and the response would be one way of doing it.
Another way is using HttpClient and simulating a browser:
This code is from this page.