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
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 |
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 |
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 |
2. Write a interface "Car" with the following methods void setName(String) String getName() void setColor(String) String getColor() void setModel(long) long getModel()
What is the servletcontext listener and what is JspContext and page context pls tell in simple words.
Runining mutiple tomcat server in a single machine is possible Yuo wil have to duplicate configuration with different port numbers
Can any one tell me How to explain bank project desription in interview
What are the classes in the java collection framework? : java collections
i need java 1+ experience resume on java developer kindly send me my mail id:srikanthreddy1.marla@gmail.com
what are advantages of HQL? what are advantages of Native SQL? what are advantages of Criteria API?
wnet use DAO design in u r project?
What is java collection? : java collections
What are the considerations to be made in case of loops in java ?
who should use JNDI?
Write a interface "CarOperations" with the following methods void turnOnEngin() void turnOffEngin() void turnOnLigths() void turnOffLights() void turnLeft() void turnRight() void accelerate() void deaccelerate() void putBreaks() void releaseBreaks()