I have include a jsp page by using <jsp:include
page="/.../xyz.jsp"/>
The thing is that the xyz.jsp page has its submit
button.When i click on that button the whole main page get
refreshed.But i want to refresh only the xyz.jsp page.How
could i achive it so that i can only refresh the xyz.jsp not
the main page page?

Answers were Sorted based on User's Feedback



I have include a jsp page by using <jsp:include page="/.../xyz.jsp"/> The thing is..

Answer / ricky

Use Tiles framework or Ajax technology to refresh a part of
the page. We could also use portlets for the same.

Is This Answer Correct ?    4 Yes 3 No

I have include a jsp page by using <jsp:include page="/.../xyz.jsp"/> The thing is..

Answer / satya

If you want to refresh only xyz.jsp apart from the whole page then you should go for tiles frame work. In tiles, you have to seperate the header , footer, body, logo everything.so for every request that particular jsp only executed but not entire page. so better to do like this.

Header.jsp (comes under menu bar, logo, search like....)

body.jsp ( required information of that page)

footer.jsp ( copyright information , some other hyperlinks for next page like....)

Is This Answer Correct ?    2 Yes 1 No

I have include a jsp page by using <jsp:include page="/.../xyz.jsp"/> The thing is..

Answer / shibu

Use the iFrame for your requirement. import the xyz.jsp
file inside the iFrame.

Is This Answer Correct ?    1 Yes 2 No

I have include a jsp page by using <jsp:include page="/.../xyz.jsp"/> The thing is..

Answer / rajesh

This is possible by<jsp:forward page="/xyz.jsp"/>
forward is nothing but it will goes directly to next jsp page.
It will no look after the current JSP page

Is This Answer Correct ?    0 Yes 5 No

Post New Answer

More Java J2EE AllOther Interview Questions

How is hashset maintained in memory by java ?

0 Answers  


What is the Spring2.5 MVC Navigation flow?

1 Answers   IBM,


Am chittibabu from vadavalli, My father name is nanjan.he is working in state bank of india at vadavalli, My mother name is ramal. She is house wife. My brother name is rajaram he is working in Privete Company. I was born on 25-january-1984 at bhavanisager in Erode District. I have completed my school in government higher secondary school bhavanisager. After that I came to coimbatore for higher study.i have joined Bsc computer science in sri ramalinga sowdambigai college of science and commerce, affiliated by bharathiyar university, coimbatore. In the same college, I have continued UG degree also. but I got a job in Systech infovation as a software programmer,so I discontinued Msc Degree.I have one and half years experience from this concern. Here I have completed two products; one is Tranport management solution for balaji goods carriers at tirupur. Another one is Embroidery Management Solution for Angel Embroidery at tirupur. After that I got an another job in metis technologies as senior software engineer. I have one year experience from this company.here I working in school management product.it is developing version by version.

3 Answers  


What are the interfaces in java collections? : java collections

0 Answers  


what is acl(access control list)?

1 Answers   Athena, HCL,






Can any one tell me How to explain bank project desription in interview

3 Answers   Infosys, Wipro,


What is difference between Application Server and Web Server?

1 Answers   Logica CMG, SCS,


Which java collection class can be used to maintain the entries in the order in which they were last accessed?

0 Answers  


What is java collection? : java collections

0 Answers  


What is IOC in spring?

10 Answers   Centris,


What is the difference between comparable and comparator in java.util pkg?

0 Answers  


where is JNDI being used in java platform?

2 Answers  


Categories