Bookmark Topic Watch 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 Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Tim Cooke
  • Campbell Ritchie
  • Ron McLeod
  • Junilu Lacar
  • Liutauras Vilda
Sheriffs:
  • Paul Clapham
  • Jeanne Boyarsky
  • Henry Wong
Saloon Keepers:
  • Tim Moores
  • Tim Holloway
  • Stephan van Hulst
  • Piet Souris
  • Carey Brown
Bartenders:
  • Jesse Duncan
  • Frits Walraven
  • Mikalai Zaikin
  • Likes 1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Report post to moderator
Please don't use Struts 1.
It is past End of Life and no longer supported. That means that there will be no security updates or bug fixes going forward.
There is at least one critical security issue in all production versions, including 1.3.10: STR-3220. This allows remote attackers to "manipulate" the ClassLoader and execute arbitrary code via the class parameter, which is passed to the getClass method.
Struts 1.x has some architectural issues that make it more difficult to develop with compared to more "modern" frameworks:
For example, the fact that a Struts Action must extend org.apache.struts.action.Action. Since Java does not permit multiple inheritance, this means that no matter how similar your Actions, one cannot create a superclass of their own for them.
Another example is the requirement that one create a subclass FormBean for every form. In practical terms, this means one will end up duplicating their domain objects for the front end and have to create code to convert the domain objects into front end objects and vice versa. DynaActionForm is a partial remedy, in that one doesn't have to create a new class for each form, but one still has to go through the trouble of converting their domain objects to/from the DynaActionForm.
 
pie. tiny ad:
Building a Better World in your Backyard by Paul Wheaton and Shawn Klassen-Koop
https://coderanch.com/wiki/718759/books/Building-World-Backyard-Paul-Wheaton
    Bookmark Topic Watch Topic
  • New Topic