how can i do it...
[nobr]I've a JSP page where I have taken the search name and printed the search name on that page like this...
<input type="submit" name="Submit" value="Submit" />
<%
String v="";
v=request.getParameter("search");
Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");
Connection con = DriverManager.getConnection("jdbc:odbc:test");
PreparedStatement stateSearch ;
ResultSet rsSearch;
stateSearch=con.prepareStatement("select * from tab1 where name = '"+v+"'");
rsSearch=stateSearch.executeQuery();
boolean rsSearch_isEmpty = !rsSearch.next();
boolean rsSearch_hasData = !rsSearch_isEmpty;
if(!rsSearch)
{
stateSearch=con.prepareStatement("select * from tab1 where name like '"+v+"*'");
rsSearch=stateSearch.executeQuery();
}
while(rsSearch_hasData){
Object var=rsSearch.getObject("name");
String x=var.toString();
String[] y=new String[100];
int k=0;
y[k]=new String(x);
%>
<a href="data.jsp" > ><%=x%></a>
<%
rsSearch_hasData=rsSearch.next();
}
rsSearch.close();
rsSearch = stateSearch.executeQuery();
rsSearch_hasData = rsSearch.next();
rsSearch_isEmpty = !rsSearch_hasData;
........
So the search may result into a lot of results and I'm taking each of them as hyperlink as shown above and I want when the user clicks on that link the value of the link is passed only to the "data.jsp" page.
How can I do it?[/nobr]

