Hi I need code for searching the records in a table for specified conditions using jsp
merinajose
0
Newbie Poster
Recommended Answers
Jump to PostHi I need code for searching the records in a table for specified conditions using jsp
Start a new thread and post some code
Jump to Posthai,
searchform.jsp
<input type = "text" name ="record">
2. click search button
3. action = "searchresult.jsp"
searchresult.jspString value = request.getParameter("record");
// connect databases;
// give sql query :String sql = select * from empdetails where empno = '"+value+"';
ResultSet rs = st.executeQuery(sql);
while(rs.next())
{
String empname = …
All 6 Replies
javaAddict
900
Nearly a Senior Poster
Team Colleague
Featured Poster
periyasamy1904
-2
Newbie Poster
peter_budo
commented:
Total rubish, if you want to provide code samples you better be sure they are programmatically correct...
-2
javaAddict
900
Nearly a Senior Poster
Team Colleague
Featured Poster
Member 784740
0
Newbie Poster
javaAddict
900
Nearly a Senior Poster
Team Colleague
Featured Poster
Member 784740
0
Newbie Poster
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.