This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
The moose likes Web Component Certification (SCWCD/OCPJWCD) and the fly likes Head First Servlet and JSP - MVC download JAR example Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Certification » Web Component Certification (SCWCD/OCPJWCD)
Bookmark "Head First Servlet and JSP - MVC download JAR example" Watch "Head First Servlet and JSP - MVC download JAR example" New topic
Author

Head First Servlet and JSP - MVC download JAR example

Giovanni De Stefano
Ranch Hand

Joined: Aug 17, 2004
Posts: 144
Hi all,
I am studying from Head First Servlet and JSP...which I consider the best book ever about programmig, I am doing all the examples...but now I have a problem:
I have followed the whole tutorial about MVC in chapter 3, at page 129 (chapter 4) there is an example of a servlet used to download a JAR file; I wrote a simple MVC application that uses the code in the book.
These are the files I wrote:
form.html

RetrieveJAR.java

Utilities.java

result.jsp

web.xml


If the file exists the user can download it, but if it doesn't exists the web app crashes...I would like the result.jsp to show the user the "result" string returned by the Model Utilities.java.

Is this architecture a good MVC implementation?
Is this a "real world" example?

Thank you for your time.
Giovanni


SCJP 1.4
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Head First Servlet and JSP - MVC download JAR example
 
Similar Threads
JSF Newbie
Problem with redirect
Head First Servlet and JSP - MVC download JAR example
problem with JSTL
can't able to run <jsp:useBean> in jsp page