how to display dynamic data in the same page with different body

Dear everyone,how to display dynamic data in the same page with diferent body , while clicking the HREF link
[129 byte] By [senthil_yogaa] at [2007-11-27 6:30:33]
# 1
well call the same JSP with different parameters so the content of the page is changed according to your JSP logic.If this is not the answer you seek (which I think you don't), then please ask something more specific. Your question is very vague and open ended.
gimbal2a at 2007-7-12 17:55:06 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...
# 2
I think you need to look into 'frames' in html
subbu_javaa at 2007-7-12 17:55:06 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...
# 3
use the jsp include and include what ever content you need according to you conditions
CCFlasha at 2007-7-12 17:55:06 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...
# 4

[nobr]Thank u very much for ur reply

may i know , how can we call the same page with different parameters

i will show u the code that i have applied, please reply

login.jsp

<body> <font color="Mauve" face="verdana">

<form method="post" name="loginpage" action="emplogin.jsp" onSubmit=" return check()"

><center><h4><u> Employee Assessment Application</u></h4></center>

<br>

<br>

<table width="362" border="1" align="center">

<tr>

<td width="457" height="182">

<table width="352" border="0">

<tr>

<td colspan="2">

<div align="center"><strong>Employee Login</strong></div></td>

<br>

</tr>

<tr>

<td width="168" height="31"><div align="right">Login Id : </div></td>

<td width="174"><input type="text" name="eid"></td>

</tr>

<tr>

<td width="168" height="31"><div align="right">Login Name : </div></td>

<td width="174"><input type="text" name="ename"></td>

</tr>

<tr>

<td height="63" colspan="2"><div align="center">

<input type="submit" name="Ok" value=" Submit"" >

<input type="reset" name="Reset" value="Reset" >

</div></td>

</tr>

</table></td>

</tr>

</table>

<li><a href="main1.jsp"><h4>Home Page<h4></a>

</form>

</body>

*******************

processing page

********************

<%@page import="java.sql.*" %>

<%@page import="java.io.*" %>

<%

String s1=request.getParameter("eid");

String s2=request.getParameter("ename");

%>

<%

Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");

Connection con=DriverManager.getConnection("jdbc:odbc:empl");

PreparedStatement pr=con.prepareStatement("select ename from emp where eid=? AND ename=?");

pr.setString(1,s1);

pr.setString(2,s2);

ResultSet rs=pr.executeQuery();

if(rs.next())

{

%>

<jsp:forward page="empsess.jsp" />

<%

}

else

{

%>

<jsp:forward page="notvalid.jsp" />

<%

}

%>

[/nobr]

senthil_yogaa at 2007-7-12 17:55:06 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...
# 5
does any one give suggestionsa lot of thanks in advance for everyone
senthil_yogaa at 2007-7-12 17:55:06 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...