prasad regula wrote:I know no JSF
So? What does JSF have to do with anything?
I have been going through multiple examples on the web. They all say
1) go to one.jsp write the ajax code in the script tag and send the data fr om this jsp.
First, some basic concepts. You are not really sending an Ajax request from a JSP. A JSP is merely a server-side template for creating HTML pages. So once the page arrives at the browser where JavaScript (and Ajax) can be executed, it's just an HTMl page. It is no longer a JSP. This may seem like a pedantic distinction, but's it's actually a very important concept to understand.
2) retrive the data and display in two.jsp
No. I'm sure that's not what they say. The whole point of Ajax is to make a request without having to go to another page.
Now, the Ajax request may use a JSP to format its own response. Maybe that's what you are confused about?
They are selecting the value from one jsp and displaying the value in the other jsp. What do I need to do if I need to select the value in one combo box, and display the related value on the second combo box of the same page.
"Same page" is always going to happen. You don't have a choice in the matter.