First

Create a form that passer the employee code, then the receiving page (jsp
page) have the request.getparameter, whatever you call the value to pass on
the form, then connection to the database where you are retreive the value
and in your sql statement , do a select employee_name, where = employee
code. Then display the result of the returned field.

Simple~


----- Original Message -----
From: "Sriram R" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Friday, April 06, 2001 3:49 PM
Subject: Connection to the database


> I am not able to connect to the database. I have a HTML page where i
> capture a employee code. I have to fetch the employee name from the
> database for the corresponding employee code. The output (viz the employee
> name) should be displayed in a JSP page. How do i do this. Any pointers.
>
> Regards
> Sriram
>
>
===========================================================================
> To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff
JSP-INTEREST".
> For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST
DIGEST".
> Some relevant FAQs on JSP/Servlets can be found at:
>
>  http://java.sun.com/products/jsp/faq.html
>  http://www.esperanto.org.nz/jsp/jspfaq.html
>  http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
>  http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets
>

===========================================================================
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST DIGEST".
Some relevant FAQs on JSP/Servlets can be found at:

 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.html
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets

Reply via email to