Win a copy of Svelte and Sapper in Action this week in the JavaScript forum!
  • 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 all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Ron McLeod
  • Paul Clapham
  • Bear Bibeault
  • Junilu Lacar
Sheriffs:
  • Jeanne Boyarsky
  • Tim Cooke
  • Henry Wong
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • salvin francis
  • Frits Walraven
Bartenders:
  • Scott Selikoff
  • Piet Souris
  • Carey Brown

Struts-AJAX issue

 
Ranch Hand
Posts: 63
Spring Java Google App Engine
  • 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..)
 
Greenhorn
Posts: 27
Hibernate jQuery Java
  • 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
 
Consider Paul's rocket mass heater.
    Bookmark Topic Watch Topic
  • New Topic