English 中文(简体)
AJAX with Struts 1.x Version
原标题:

I am having an application developed with Struts1.3, Jboss4.X version and jdk1.5

Now as an enhancement we are planning to implement AJAX to the web application

Can you please suggest me

  1. Whether I can use AJAX with Struts1.3 Framework?
  2. Which Jar I need to use if I Can implement AJAX?
  3. At Some website, I realised struts2-dojo-plugin.jar can be used for Struts2, whether the same jar works for Struts 1.3 Version

Please clarify my doubts

最佳回答
  1. Yes. You can use AJAX with the struts1.3 framework. AJAX is mostly done in the JavaScript on the client. It requests a URL on your server which will correspond to an action that you write. As far as the browser is concerened it knows nothing about struts, it just happily request pages assuming they are all static html pages.
  2. You do not need any special jar files to use AJAX. In struts2 they included dojo making it simple to use that library without needing extra libraries. However, you can download and install any javascript library such as jQuery, dojo, prototype etc that will help you do AJAX.
  3. Most likely not. the struts2 Dojo integration will not work out of the box in struts1.3 You can use the Dojo library if you wish but you will have to do it yourself.

Some links:

  1. AJAX and Struts1 and Struts2
  2. Justin Coyne
问题回答

暂无回答




相关问题
ajax login using httpRequest?

I am trying to develop my login script to give feedback to the user if the login is valid or not. Basically if it isn t correct a div box will show saying its wrong, if its correct it will show its ...

Virtual Tour using sketch up, ajax, flash technologies

I want to know if there are existing technology that make your 3d models in sketch into virtual tours, using either Ajax or Flash for web presentation. If there s none, which will be a good approach ...

How can i update div continuously

I have asp.net application where i have a div which showing the value from other site. The value of that site is changing continuously. I want that my div will automatically update in some interval ...

热门标签