This week's book giveaway is in the OCMJEA forum. We're giving away four copies of OCM Java EE 6 Enterprise Architect Exam Guide and have Paul Allen & Joseph Bambara on-line! See this thread for details.
I search a simple, easy to setup, example, which shows how to use struts in combination with a webservice.
The example should include following: - A struts action should call a controller. e.g. DBController. - A Web Service should also use methods of DBController. Not necessarly direct - if another servlet is between, it's ok. (client - servlet - DBController)
Up to now i' was not able to find a simple example. There are a lot of information about struts or webservice but not both together.
This article suggests an architecture matching ws and struts. However I couldn't compile the example, because it needs an API (import com.tbf.xml.* from a company long gone. So, if somebody has been succesful in compiling this program, please let me know.
the first thing that came to my mind when i saw the thread title was...what the heck does WS has anything to do with struts? i am echoing that through marc's comment. where and how the data is being requested/retreived/served is independent of the controller and view (struts).
-/a<br />certified slacker...yes, my last name is 'do' - <a href="http://www.luckycouple.com" target="_blank" rel="nofollow">luckycouple.com</a>