Struts vs ASP.NET

Back in December we had an article written describing the differences between Struts and ASP.NET -- I'd be curious to get your feedback.  I've had a few questions lately around MVC implementations on various platforms and how ASP.NET and ASP.NET 2.0 is approaching the pattern.  Is this relevant to you?  What about UIP?  I'm curious to hear your thoughts and experiences about MVC, UIP, Struts, etc...

Comments

  • Anonymous
    April 08, 2004
    While I'm reading the article, do you know what this image was created with, aspnet-aspnet-j2ee-struts-02.gif? Half way down.
  • Anonymous
    April 08, 2004
    Don't know for sure, but my best bet is powerpoint...
  • Anonymous
    April 08, 2004
    I have used Struts for the past 2 years and found the MVC (actually Model 2) pattern that it implements to be good for separating view logic from model logic, with Struts providing the front controller for you. Once you design your model layer well Struts makes it easy to dictate the flow of your webapp. What is really missing is a good event based view pattern implementation. This is what JSF (JavaServer Faces) is hoping to bring to the table for Java developers. Fundamentally ASP.NET and Struts differ in that in Struts everything passes through the Front Controller, whereas with ASP.NET everything passes through the Page Controller. But ASP.NET already has the event driven view pattern implemented. Unfortunately I have not worked with ASP.NET enough to really compare the two. I think JSF will be closer to ASP.NET and allow a better comparison of the Java/.NET implementation approaches. I will make sure to keep up with your blog and see how things with ASP.NET 2.0 are progressing.
  • Anonymous
    April 09, 2004
    I used a modified version of the PAG’s UIP block, and am using it now in my projects. I will probably still use it because it makes better control over the state and the flow of the pages.
  • Anonymous
    April 10, 2004
    Great article!! I have been using UIP for a while and speak about it at user groups (INETA) and conferences (VSConnections). I'm also an ASP.NET MVP, and have a little Java experience but no real Java web dev experience in the past.

    I think UIP it is a great MVC implementation and easy and powerful to use which is why I picked it as a topic for the talks I give.

    I recently got enlisted in a project for a customer who dictated the use of Oracle 9i DB + App Server, so I looked to Struts to get me as close to the ASP.NET experience I was used to as possible. Struts is OK, but as usual in the Java space, even with a homogenous Oracle platform and dev tools (JDeveloper), I found it significantly lacking from a productivity standpoint.

    I think your article and ones like it are a great resource for those of us who may have a lot of expertise in one space or the other, but occasionally have to jump over into the other world and need something like this to put it all in perspective. I wish I had found this article back in December when it was published, would have saved me a lot of independent research coming to conclusions about architecture similarities that are called out nicely here.
    Thanks,
    Brian
  • Anonymous
    April 11, 2004
    dfgs
  • Anonymous
    April 14, 2004
    Brian,
    I read your article a while back and liked it. I am a J2EE developer as well a Struts developer. I think Struts is an excellent model because not only does it truly implement the MVC pattern, but it is highly declarative. Just about everything in an application is controlled by struts-config.xml. This is extremely powerful, for example, when using tools such as XDoclets. ASP.NET is also extremely powerful with its event binding model, and Java is well behind in this area. However, with the introduction of JavaServer Faces, I think you will be in a much better position to compare the two. Regardless, I enjoyed your article and I write a lot myself on my web site about the two technologies. Keep it coming.

    Thanks,
    Mike
  • Anonymous
    April 16, 2004
    i m a former user of Struts and at the moment, i m using ASP .Net.
    i think that Struts and ASP .Net are equivalent
    and offer the same result concerning the ease of designing Web applications and performance.

    but the strengh of ASP .Net is not the language itself, but Visual Studio .Net that allow to build easily performant Web application. In fact, hard coding with Struts or ASP through text files is not the best way in term of project time management.
    The comparison of ASP and Strutus is not set in this technologies which follows the same way, but in the IDE that allows the use of their features. Thus, ASP .Net, with Visual Studio and all the windows services, is advantaged to Struts.
  • Anonymous
    May 30, 2004
    i m doing a project on C# and i have to implement the struts framework in C#. So that a user of .NET can have the facilities of STRUTS framework. Is there some one who can help me?
    i really need help in this matter.
  • Anonymous
    August 04, 2004
    The comment has been removed
  • Anonymous
    December 27, 2005
    I just wanted to get something clear. Maybe the name is not really important, but I guess Struts is using Model 2 and not MVC even tough they're similar, not exactly the same.
    People often speaks of UIP as a Front Controller, but isn't it more like an Application Controller.


    About the opinion, I feel ASP.NET as it is, it's really easy to use and well suited for small apps. I'm new to UIP, but looks like a good alternative to handle applicaction flow. No comments about Struts.....
  • Anonymous
    December 27, 2005
    I just wanted to get something clear. Maybe the name is not really important, but I guess Struts is using Model 2 and not MVC even tough they're similar, not exactly the same.
    People often speaks of UIP as a Front Controller, but isn't it more like an Application Controller.


    About the opinion, I feel ASP.NET as it is, it's really easy to use and well suited for small apps. I'm new to UIP, but looks like a good alternative to handle applicaction flow. No comments about Struts.....
  • Anonymous
    January 23, 2006
    The comment has been removed
  • Anonymous
    June 14, 2006
    a
  • Anonymous
    July 20, 2006
    If you want to see a very clean and impressive implementation of Model2 check out:

    http://www.rubyonrails.org/

    And look at the get excited area. I am a loyal .net developer, but I have to admit ROR is very impressive!