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

Hi we have an urgent requirement for Java/J2ee technical lead position & also looking for "Java Guidewire claimcentre" experienced professional for Bangalore location if interested can reach srisanh@gmail.com

0 Answers  


whats the relation ship between LDAP and JNDI?

1 Answers  


Which sorting algorithm is used by collections.sort() in java ?

0 Answers  


What is the use of hashcode in java ?

0 Answers  


What is the use of the list interface in the java collection? : java collections

0 Answers  






What is iterator in the java collections framework? : java collections

0 Answers  


Is it Mandatory to map each pojo class variable with table column in Hibernate? Is there any alternative to skip some of those? Thanks in advance...

2 Answers   Span Systems,


what is java virtual machine

4 Answers  


what about web architecture?

1 Answers   HCL,


what is acl(access control list)?

1 Answers   Athena, HCL,


Hi Friends , am newbie to ajax. For example just consider one account registration - A form contains 8 text fields with submit button. In this form second texbox contains "username " . On right side of text box there is a label box . On clilck action i need to determine user is available or not. Is it possible on clicking label or should i click submit button.

0 Answers  


What are the types of interface used in the java collections? : java collections

0 Answers  


Categories