Is Struts that important? I come from a PHP background and i can't really understand it's use.
Originally posted by Valentin Tanase:
No it's actually not that important, or at least not right now. It was very important a while ago since it wasn�t anything else available. As you�ve noticed, the controller is one key part of Struts, but it is not the vital one. The most important thing that Struts does and what make it so crucial is that it provides a way to transform the http input in a set of standard classes. Without Struts one has to write all this spaghetti code all over the place. Imagine a form that submits a lot of parameters of different types. The next thing the application should do is to get through all these parameters and convert the strings to their right types, etc. and the same for displaying the resultsets. Pretty ugly though. Besides that, in my opinion Struts is only trouble. I tried once to convince one of the clients I worked for to replace Struts with a set of custom library classes that does exactly this conversion and forget about Struts. It didn�t work though, but if I would have to choose I�d rather spend couple of weeks and develop such classes (admitting I have no other option) rather than using Struts. Fortunately today developers have options and Spring is in my opinion a much better choice.
By making a statement such as the above you are turning this discussion personal and intimating that I am not able to make objective professional decisions because of some mythical attachment to a particular framework.
PI day is 3.14 (march 14th) and is also einstein's birthday. And this is merely a tiny ad:
Free, earth friendly heat - from the CodeRanch trailbosshttps://www.kickstarter.com/projects/paulwheaton/free-heat