Win a copy of Design for the Mind this week in the Design forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Struts-AJAX issue

 
Radhakrishna Sharma Gorenta
Ranch Hand
Posts: 63
Google App Engine Java Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
I have a JSP which is to be modified (by means of its content ) for different action using AJAX. I am very much happy in doping this using AJAX.
But the issue is that, How to get a value of a variable from a action class to my AJAX function. I want to set a value in struts action class and get back at the same time i put the response in JSP using AJAX.
( * setAttribute(),getAttribute() methods will work only while communicating jsp pages and/or servlets. Please note that the page is not going to be reloaded. i have to get the value inside javascript function..)
 
hemantha kumar k
Greenhorn
Posts: 27
Hibernate Java jQuery
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Ajax is used to make the request Asynchronously from Client side to Server Side, and your requirement is Sending the data from Server side to Client side Asynchronously, so Ajax is not compatible for this scenario, Use comet programming solve your problem
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic