This week's book giveaway is in the OCMJEA forum.
We're giving away four copies of OCM Java EE 6 Enterprise Architect Exam Guide and have Paul Allen & Joseph Bambara on-line!
See this thread for details.
The moose likes Servlets and the fly likes Struts Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of OCM Java EE 6 Enterprise Architect Exam Guide this week in the OCMJEA forum!
JavaRanch » Java Forums » Java » Servlets
Bookmark "Struts " Watch "Struts " New topic
Author

Struts

Malli Raman
Ranch Hand

Joined: Nov 07, 2001
Posts: 312
Hi,
I want to know about Struts. Can anyone give me a basic idea about the struts.
Thanks & Regards,
M.S.Raman
Vladimir Ergovic
Ranch Hand

Joined: Apr 22, 2001
Posts: 63
It is MVC framework for building web apps.
It has ActionServlet which servers as controler and in struts-config.xml you map your Actions (code to perform - commands).
you have specific taglibs which you can use they are quite helpfull but you have to learn them. Plus you have Forms (javabeans) which are populated automaticly if you have the same names for the fields as in HTML (to use struts taglibs is really helpfull in this case). DynaBeas let you specify fields in external files so you don't have to code it!


Vladimir Ergovic
Malli Raman
Ranch Hand

Joined: Nov 07, 2001
Posts: 312
Originally posted by Vladimir Ergovich:
It is MVC framework for building web apps.
It has ActionServlet which servers as controler and in struts-config.xml you map your Actions (code to perform - commands).
you have specific taglibs which you can use they are quite helpfull but you have to learn them. Plus you have Forms (javabeans) which are populated automaticly if you have the same names for the fields as in HTML (to use struts taglibs is really helpfull in this case). DynaBeas let you specify fields in external files so you don't have to code it!

Thanks Vladimir. Why struts are so popular compared to normal jsp->servlet->EJB/JavaBeans for MVC patterns. Is there any advantages of using struts. In struts normal classes are replaced by taglibs. Seems to be XML format based MVC pattern. Am I right?
Regards,
M.S.Raman
Jessica Sant
Sheriff

Joined: Oct 17, 2001
Posts: 4313

Struts' biggest advantage comes in the maintenance stage. The MVC setup makes maintenance / updates / changes MUCH MUCH easier than the normal JSP/Servlet model.
We even have a full forum dedicated to Struts
Check it out! (also, check out the two articles in our newsletter about struts -- theres links at the top of the Struts forum)
 
 
subject: Struts