• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 188
  • Last Modified:

How to improve the design of this java project

Hi,

Currently I am dealing with a java software which is bad written. It has a lot of jsp files. These jsp files have mostly java codes inside and they even call database connection and do some transaction directly. This project also has data models, controllers, but I just doesn't understand why they put so many business logic inside jsp files. Anyone can give me a suggestion on how to improve its design? These project is huge and has no ejbs. It is basicly MVC models. Should I use Struts, or Spring, or anything to make it less bugs and improve performance? Thanks.

0
ly_uwo
Asked:
ly_uwo
  • 2
  • 2
2 Solutions
 
Siva Prasanna KumarPrincipal Solutions ArchitectCommented:
I think going with struts is a good idea not only it improves the performance but it will clearly differentiate the MVC Model and also Produces more reliable and Maintainable version of code.

Even Thou i am new to spring i think it is much more powerful then Struts especially the concepts like IoC, AOP are very good but learning curve seems to be big.

As such many good eclipse plugins are available for struts development and now infact netbeans 5.0 directly comes with struts support.

Thank You.
0
 
ly_uwoAuthor Commented:
thanks, I know a little bit about struts. spring is complete new to me
0
 
ly_uwoAuthor Commented:
Thanks. One thing is that this project make database connection everywhere, even in jsps. Any idea on how to make the database call managed well? There is already a model layer there (like DAO).
0
 
Mayank SAssociate Director - Product EngineeringCommented:
0

Featured Post

Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

  • 2
  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now