Java Reference
In-Depth Information
Now copy this JSP to the <SERVER_ROOT>/djs directory and open your browser to the follow-
ing URL, broken here onto two lines:
http://localhost/djs/servlet/Controller?service=ExampleService&target=
/ExampleView.jsp
You should see a screen similar to Figure 13.1.
F IGURE 13.1
Output from our ExampleService .
Summary
This chapter covered the Controller part of our server-side implementation of the MVC. This
class will be at the core of all of our case studies at the end of this text.
In the next chapter, we will begin our study of JavaServer Pages (JSPs), starting with an
overview of the JSP architecture.
Search WWH ::




Custom Search