I am very new to Struts framework.We are using struts1.3 framework and also Ajax and Hibernate in our application. My query is :- There is an onclick function in one jsp upon which i pass the user input to the Ajax class,run a query and get the result set back as xmlhttp response in the jsp. Now, I need to show the result in the table of another jsp.How can I pass this xmlresponse from current jsp to another jsp?
I need help urgently.Kindly help and let me know if any queries.
I have not included any jsp in my current jsp. I was trying to map the jsp as a forward result on success in the struts-config.xml as below.
Here DataTrapHead.jsp is the current jsp where I receive the result set as XMHttp response and DataTrapRefresh.jsp is the one where I have the tables(rows) to display the data.
Kindly let me know if I am going wrong.
posted 9 years ago
If I m correct your ajax action is "com.dolphin.struts.mainGUI.DataTrapAction" that you are calling from DataTrapHead.jsp then why you want to forward to other DataTrapRefresh.jsp? you are getting result in DataTrapHead.jsp you shoulld have table for population of that result in DataTrapHead.jsp itself. you can polpulate it using java script.