• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Tim Cooke
  • Campbell Ritchie
  • paul wheaton
  • Ron McLeod
  • Devaka Cooray
Sheriffs:
  • Jeanne Boyarsky
  • Liutauras Vilda
  • Paul Clapham
Saloon Keepers:
  • Tim Holloway
  • Carey Brown
  • Piet Souris
Bartenders:

Migrating Application - From Struts with AJAX to JSF with AJAX

 
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hello,

I have the following requirement. It will be great help if some one from the forum will able to advice us.

Problem Statement:
We have an application that is written in Struts. The struts application extensively uses AJAX. Let me explain the architecture of the existing application.
Existing Architecture
The application has struts based JSP page which uses AJAX for submitting the request and getting the response. After the form submission it goes to Action class and does the business processing using DAO and DTO pattern. The output is generated in XML format and send back through an response object. Then using AJAX the response object is rendered in JSP.
Constraints
1. The existing architecture has extensive use of AJAX for struts which constructs the URL and other default settings for the application.
2. Action class is not well designed and it generates the XML file for response object inside it.
Requirement

We want to migrate from Struts with AJAX application to JSF and AJAX. As I explained, we can not modify much AJAX and action class of struts, we need to find out a solution where we can do minimal changes to the action class and AJAX js files and achieve the target.

Our Thought Process
We need to find out a way to change the followings:
1. Form beans to Manage bean.
2. Struts-config to Faces-config.
3. Modify the JSP (use the JSF control instead of struts)
4. Call the action class inside the managed bean of JSF.

BottleNeck
1. Not sure how to handle the request and response object of the AJAX call that is used in struts.(Note there is extensive use of AJAX). Rewriting the AJAX js file is not possible because of time frame.
2. How to render the XML response object in JSF.
3. How to do calls to AJAX request and response object.

Please feel free to contact me if you need any further clarifications in the requirements.

It will be a great help if someone can suggest how to proceed with this.

Thanks
Abhijit

 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
reply
    Bookmark Topic Watch Topic
  • New Topic