Rajendra, your question (?) doesn't make sense, please clarify!
What are you trying to achieve, what are you having problems with? (Don't know how to pass parameters from JS to the server-side app? Don't know which scripting language can access those parameters? Don't know how to process them in a servlet in Java?? )
* Some action triggers the event, like the user clicking a button.
* The AJAX call fires, and sends a request to a server-side script, using XML
* Using XML again, the script sends the data back to the original client-side page that made the request
The AJAX call fires, and sends a request to a server-side script, using XML
This is the key step. You'll have to send any request parameters to the server in the Ajax request. It can be sent as query string if the ajax request is a GET request or as request body if you are using POST Ajax request. Search on the internet for some tutorial on how to send parameters in an Ajax request...
Bear Bibeault wrote:
Only if you want to dabble in extremely poor practices and write code like it's still 1998.
Tonight I'm gonna code like it's nineteen..... nine...ty nine.
I completly Agree . but what to do ? . but somebody[most of the programmer(since maintenance project is more)] still need to code (change) java code in jsp. Even many small company use to code java in jsp in development project still(2009) .
if client pay for you to write this in 2009, you should... right?