Win a copy of Clojure in Action this week in the Clojure forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

designing a web application

 
saima kanwal
Ranch Hand
Posts: 148
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
is it necessary to use a framework when designing a web application? Can't we design our application with just servlets and jsps and follow design patterns where needed without using any framework like struts or spring?? is it practical?? if not the what are the pros an cons of not using a framework?

 
Bear Bibeault
Author and ninkuma
Marshal
Pie
Posts: 64188
83
IntelliJ IDE Java jQuery Mac Mac OS X
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Sure you can -- if you really understand the way that servlets and JSP work. Otherwise, you're better off with a framework that does all the work for you. I'm personally not a fan of the big frameworks. If this is not just an academic question and you are looking for something lightweight, check out FrontMan in my signature.
 
saima kanwal
Ranch Hand
Posts: 148
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks, it really helped me.
 
Jimmy Clark
Ranch Hand
Posts: 2187
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Software Engineers that create web frameworks, e.g. Struts, enable the rapid development of web applications by helping application developers stay focused on implementing business requirements. An organization can indeed create a web application without using a framework. However, the development time for writing the application code will be much longer and more prone to errors because the size of custom, hand-written code will much larger.

Also, the organization would then need the in-house expertise to compensate for the additional development. This is a difficult aspect to manage and not very practical in today's real-world scenarios. If an organization did have this level of expertise, they would not attempt to build an application without one or more frameworks anyway.
 
Hebert Coelho
Ranch Hand
Posts: 754
Eclipse IDE Java
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Frameworks are in the world to make our lifes easier.

Help to code fast, but, you still must understand it very well to use it correctly.

But, if you know the basic (Servlet) you will have a good idea of how the framework (Struts) works.
 
Eduardo YaƱez Parareda
Ranch Hand
Posts: 93
IntelliJ IDE Java VI Editor
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
saima kanwal wrote:is it necessary to use a framework when designing a web application? Can't we design our application with just servlets and jsps and follow design patterns where needed without using any framework like struts or spring?? is it practical?? if not the what are the pros an cons of not using a framework?



It isn't necessary, but if you don't design well your core architecture, when your applications grows it will be unmaintainable. I like to use Servlets + JSP to do my apps, but when there are more peolpe working on the same project, it can be difficult to get all clean and ordered, so a framework can help the team to do things better.

If you only want a MVC or something similar framework, you can try SerfJ on my signature, it's easy to use, almost without configuration and REST oriented.
 
I agree. Here's the link: http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic