This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
The moose likes Servlets and the fly likes Struts and WAF Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Java » Servlets
Bookmark "Struts and WAF" Watch "Struts and WAF" New topic

Struts and WAF

steve dowdall
Ranch Hand

Joined: May 23, 2001
Posts: 36
Can someone tell me in laymans terms what Struts is and why i would want to use it? The same thing for WAF (Web Application Framework). There is a lot of abstract explanations out there. Just want the plain vanilla version please.
Po-yu Chien
Ranch Hand

Joined: Nov 01, 2001
Posts: 45
The so-called framework are provided either to provide utilities common in all web application(Tag library, form mechanism handling etc) or to enforce the RIGHT application design, or both of them. Struts fits into the last category.
Specifically, struts enforces LAYERED application design(DO NOT think it as equivalent of COMPONENT design. They coesist in struts, but are different thing)
JSP as only a layer for GUI rendering, Servlet for action handling(Handling all browser-side user clicks), and JavaBean used to handle data access and business logic.
Why should you use it? Good question. If you want to know where a particular user action is controlled and managed without browsing your own thousands lines of code...Use it.
If you want to build intelligent form with error reporting mechanism, use it.
My general opinion is that framework does not eliminate code you have to write. However, it keeps your mind and code clear.
wood burning stoves
subject: Struts and WAF
Similar Threads
got results finally
PetStore WAF vs. Struts framework
Web Application Frameworks
Simpler version of pet store
Did someone use WAF in the part II and pass the exam