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

Struts and Ajax - help needed...  RSS feed

Maximus Moothiringus
Ranch Hand
Posts: 46
Eclipse IDE Java Tomcat Server
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

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.
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!