Thanks Eric for the reply.
So, what I understand is:
When I say lines like
Then, it's not necessary to have a form to post to. I can request for a normal text message also. But, in that case how exactly the script is to be modified.
Say, e.g. if i have just a button a text field on a html. I just want to replace the text in text field on click of button via Ajax. Say initial is "HI" and on click of button it comes as "HELLO".
So, how exactly to use the request object in that case. Basically, how will
[/CODE]
the above lines change. Because, all the times I use a form and post to it to get data via java. But, this time I don't have a form or a class. How to achieve it?