Win a copy of Java Concurrency Live Lessons this week in the Threads forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

JSP and servlets  RSS feed

 
Jon Summers
Greenhorn
Posts: 24
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello,
I just started learning JSP and servlets. COuld someone please give me the link to the code where they show an example of both JSP as a presentation layer and servlet as a controller and how they exchange information. THanks a lot.
 
Andres Gonzalez
Ranch Hand
Posts: 1561
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Jon-
Have a look at this book, it gives explanations on how you can use jsp-servlets-javabeans all together.
hope it helps
 
Elton Hughes
Ranch Hand
Posts: 72
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi.
I saw this thread and I thought I would add my 2 cents worth.
I have the second edition of the book and I have mixed emotions about it. It starts great. Talks about downloading and configuring three different servlet containers. But soon it begins to lose me. In early chapters it starts to refer to things in much later chapters. It feels dis-jointed to me.
YMMV but I like a book with a good linear message. This book does not always do that. The author definitely knows his stuff, but, I must admit, I put it down and have bought two other books on JSP and servlets. Those two did a better job, but still missed.
I hate to say it but the Head First Java book may have spoiled me. It is so clear, consistent, and informative. And not to mention funny. So, I will stumble along with three books that disappoint me, until the Head First SCWCD arrives next summer. Please let it arrive early!
Good luck! And if you do find the perfect book, please let me know.
Elton
 
Steve Olson
Greenhorn
Posts: 7
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Originally posted by Jon Summers:
Hello,
I just started learning JSP and servlets. COuld someone please give me the link to the code where they show an example of both JSP as a presentation layer and servlet as a controller and how they exchange information. THanks a lot.

Search Amazon.com for Struts ...
 
Bear Bibeault
Author and ninkuma
Marshal
Posts: 65833
134
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Actually, in my opinion, if you really want to learn how to construct Model 2 web apps, avoid frameworks like Struts until you have the knowledge you seek under your belt.
bear
 
Mark Latham
Greenhorn
Posts: 22
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The MVC pattern is really very simple to understand and implement in Java. I did a quick search on google for "mvc java example" and found a very good tutorial at Java Boutique. No need to buy a book for a simple example.
If, however, you're wanting a proven, industrial-strength MVC framework, use Struts, WebWork, or something similar (don't roll your own). They're both open source, so you can see how they implemented their MVC frameworks.
Though I agree with Bear that it's important to understand the basics of the MVC pattern before using someone else's framework, the basics are easy to grasp. And, if you don't have a deep understanding of controller based apps, you'll certainly be better off using an established framework that has excellent support resources available (books, tutorials, documentation).
[ December 04, 2003: Message edited by: Mark Latham ]
 
Consider Paul's rocket mass heater.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!