I have two Jsp pages named bestschool.jsp and schoolnames.jsp.

I am calling schoolnames.jsp from bestschool.jsp.

I want when I click the link on INDUS School. It can show all concerning link of INDUS School links like profile, result, facility etc. in the same place instead of other naming school links.

my requiremet main is i want to update the information on same Jsp page.

How can I implement this with in Servlets/Jsp.

please suggest.

Please review JSP’s files

schoolnames.jsp

<table width="200" border="0" align="center" cellpadding="5">
<tr>
<td height="100" bgcolor="#476bc0">
<div align="center" class="boldhead"><font size="+1">
School list</font></div>
</td>
<tr>
<td height="30" bgcolor="#5577C6">
<a href="" class="smalltext">INDUS School</a></td>
</tr>
<tr>
<td height="30" bgcolor="#728DCF">
<a href="" class="smalltext">Vaise School</a>
</td>
</tr>
<tr>
<td height="30" bgcolor="#728DCF">
<a href="" class="smalltext">D.G.V School</a></td>
</tr>
<tr>
<td height="30" bgcolor="#728DCF">
<a href="" class="smalltext">D.P.S School </a></td>
</tr>

bestschool.jsp

<html>
<head>
<title>Best school</title>
<link href="mystyle.css" rel"stylesheet" type="text/css">
</head>
<body>
<div align="center"><font size="+2">
Best Schools in Rohtak</font>
</div>
<table width="700" height="500" border="0" align="left" 
cellspacing="0">
<td width="200" rowspan="2" valign="top">
<%@ include file="schoolnames.jsp" %>
</td>
<td height="328" bgcolor="#476BC0" valign="top">
<p>&nbsp;</p><p>&nbsp;</p><p>&nbsp;</p>
</html>

can you try innerHtml with java script...

Apache Velocity tempates populated by servlet that is called by Ajax or jQuery associated with designated html element, perhaps would be better

thanks for giving answers.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.