File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Struts and the fly likes Struts and Ajax - help needed... Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "Struts and Ajax - help needed..." Watch "Struts and Ajax - help needed..." New topic

Struts and Ajax - help needed...

Maximus Moothiringus
Ranch Hand

Joined: Jun 07, 2008
Posts: 46


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
I agree. Here's the link:
subject: Struts and Ajax - help needed...
It's not a secret anymore!