Home » struts2 » html/jsp page response in ajax get method

html/jsp page response in ajax get method

We want to get an entire page as ajax response by using jquery get method.

Steps:

1) First create pages(FirstJsp.jsp and SecondJsp.jsp)
2) call jquery get method to get ajax response in one page(here FirstJsp.jsp to get SecondJsp.jsp)
3)Configure struts.xml file

Lets start with page creating

FirstJsp.jsp


SecondJsp.jsp

Struts.xml

Output
Ajax1

2nd

Managed by MochaHost - Fast & Easy WordPress Hosting