i have a Jsp page. in this Jsp page having some links. i want when i click to link of result some data should be display. but it does not displaying. please check the below code.

Indus.jsp

<html>
<head>
<title>Indus Public School</title>
</head>
<body>
<div align="center"><font size="+3">
Indus Public School</font>
</div>

<table width="700" height="500" border="0" align="left" 
cellspacing="0">
<td width="150" rowspan="2" valign="top">

<table width="200" border="0" align="center" cellpadding="5">
<tr>
<td height="100" bgcolor="#476bc0">
<div align="center" class="boldhead"><font size="+1">
</font></div>
</td>
<tr>
<td height="40" bgcolor="#728DCF">
<a href="">Profile</a></td>
</tr>
<tr>
<td height="40" bgcolor="#728DCF">
<a href="" class="smalltext">Staff</a>
</td>
</tr>

<tr>
<td height="40" bgcolor="#728DCF">
<a href="indus.jsp?value=result" class="smalltext">Result</a></td>
</tr>

<%String value="";
if(value!=null && (value.equals("result")))
{%>
<h1>Indus Public School </h1>
<%
}
%>
</body>
</html>

Recommended Answers

All 2 Replies

request.getParameter(param) method must be called to read value parameter.

request.getParameter(param) method must be called to read value parameter.

thank you.

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.