How to improve the design of this java project

Posted on 2006-05-11
Last Modified: 2013-11-24

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.

Question by:ly_uwo
    LVL 23

    Accepted Solution

    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.

    Author Comment

    thanks, I know a little bit about struts. spring is complete new to me
    LVL 30

    Assisted Solution


    Author Comment

    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).
    LVL 30

    Expert Comment


    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    How to run any project with ease

    Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
    - Combine task lists, docs, spreadsheets, and chat in one
    - View and edit from mobile/offline
    - Cut down on emails

    Suggested Solutions

    Title # Comments Views Activity
    EvenOdd challenge 10 67
    method argument as final 1 54
    Core java. Please help me catch a bug. 5 49
    countHi challenge 25 57
    Java Flight Recorder and Java Mission Control together create a complete tool chain to continuously collect low level and detailed runtime information enabling after-the-fact incident analysis. Java Flight Recorder is a profiling and event collectio…
    Go is an acronym of golang, is a programming language developed Google in 2007. Go is a new language that is mostly in the C family, with significant input from Pascal/Modula/Oberon family. Hence Go arisen as low-level language with fast compilation…
    This video teaches viewers about errors in exception handling.
    This tutorial explains how to use the VisualVM tool for the Java platform application. This video goes into detail on the Threads, Sampler, and Profiler tabs.

    779 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    10 Experts available now in Live!

    Get 1:1 Help Now