hai
i am getting the following error.
i am giving code and error below.
the anchor tag is <a href="SearchDetails.jsp?srchKeyword=<%=rs.getString("p.Dedc"%>">
<%
out.println(rs.getString("p.Dedc");
%>
here the results are displaying well.
when i click on displayed result
the url string in location bar is
: MB disc
here the 20 MB disc is the data which i had clicked.so it is taking correctly.
the error is
Bad Request (400)
Your request to the server could not be understood. Please check to ensure that the
request you made is correct.
in my second jsp the code is
String description=request.getParameter("srchKeyword"
rs=st.executeQuery("select * from PRODUCT where Dedc='"+description+"'"
while(rs.next())
{
out.println(rs.getInt(1));
out.println(rs.getString(2));
out.println(rs.getString(3));
out.println(rs.getString(4));
}
both are in the same directory.
what could be the solution for the error.
please help me
thank u.
i am getting the following error.
i am giving code and error below.
the anchor tag is <a href="SearchDetails.jsp?srchKeyword=<%=rs.getString("p.Dedc"%>">
<%
out.println(rs.getString("p.Dedc");
%>
here the results are displaying well.
when i click on displayed result
the url string in location bar is
: MB disc
here the 20 MB disc is the data which i had clicked.so it is taking correctly.
the error is
Bad Request (400)
Your request to the server could not be understood. Please check to ensure that the
request you made is correct.
in my second jsp the code is
String description=request.getParameter("srchKeyword"
rs=st.executeQuery("select * from PRODUCT where Dedc='"+description+"'"
while(rs.next())
{
out.println(rs.getInt(1));
out.println(rs.getString(2));
out.println(rs.getString(3));
out.println(rs.getString(4));
}
both are in the same directory.
what could be the solution for the error.
please help me
thank u.