• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Bear Bibeault
  • Devaka Cooray
  • Liutauras Vilda
  • Jeanne Boyarsky
Sheriffs:
  • Knute Snortum
  • Junilu Lacar
  • paul wheaton
Saloon Keepers:
  • Ganesh Patekar
  • Frits Walraven
  • Tim Moores
  • Ron McLeod
  • Carey Brown
Bartenders:
  • Stephan van Hulst
  • salvin francis
  • Tim Holloway

Head First Servlet and JSP - MVC download JAR example  RSS feed

 
Ranch Hand
Posts: 161
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
Consider Paul's rocket mass heater.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!