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 to call the m1() method of Base class in below snippet ? class Base { public void m1() { System.out.println("Base m1 "); } public void m2() { System.out.println("Base m1 "); } } ====================== class Derived extends Base { public void m1() { System.out.println("Derived m1"); } public void m3() { System.out.println("Derived m3"); } public static void main(String[] args) { Base ob=new Derived(); ob.m1(); //System.out.println("Hello World!"+ob.m1()); } }

6 Answers   Cap Gemini, TCS,


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

0 Answers  


Runining mutiple tomcat server in a single machine is possible Yuo wil have to duplicate configuration with different port numbers

2 Answers   HCL,


Difference between Spring framework and Struts framework?

12 Answers   IBM, L&T, VAM,


what is diff string and stringbuffer

7 Answers   CTS, HCL,






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

0 Answers  


How to use ANT?

2 Answers  


What is the use of hashcode in java ?

0 Answers  


What do you understand by synchronization? Why is it important?

0 Answers  


Which interface does java.util.hashtable implement?

0 Answers  


what is the difference between banking and insurance domain?

2 Answers  


Q1. A. Write note on "The class path Environment Variable". B. Which are different kinds of source code? Q2. A. How to create an interface? B. Why convert an applet to an application? Q3. A. How to use Media tracker Class. B. How to use string tokenizer class. Q4. A. Explain the overview of UDP messaging. B. Difference between SQL Exception class and SQL Warning class. Q5. A. How to create com object in Java? B. Write short notes on "The properties class" Q6. A. When object is created and destroyed? B. Explain the JDB in depth & command line. C. Write short notes on Web Sites.

1 Answers  


Categories