This week's book giveaway is in the OO, Patterns, UML and Refactoring forum. We're giving away four copies of Refactoring for Software Design Smells: Managing Technical Debt and have Girish Suryanarayana, Ganesh Samarthyam & Tushar Sharma on-line! See this thread for details.
I am doing a web application in Java as my college project. Last year when we did a java web project, my team used only jsp and servlet. That is when one of our seniors commented that using struts will make the project look structured and also things can be done faster.
We wanted to do this year's project in a better way. We already have the requirements set, the pages decided and layout set. I am the one in charge of checking out struts and seeing if its usable in our context.
I started off with struts 1. i found it very easy to make some simple applications. The problem is with a requirement that we have. We have to use AJAX as much as possible. I used the same .js files that i used in the last project for auto refresh pages and others. They are working fine and i am happy with the result.
But when it comes to form submission, i have to reload the whole page - which was not what we planned. I couldn't figure out a way out of it. I always have to pass the form data through the Action classes - ok acceptable, m-v-c - but can i reload the contents of just a single div element while i am displaying the result view.
-- Maximus Moothiringus
Preparing for SCJA!!
Finally figured out that giving <br/> splits the profile biography but not the signature