Hi
 When u get parameter through request.getParameter
it will return u a String object.
Assign ur parameter to a String object and then concat it with ur Insert
statement.
e.g.
  String s=request.getParameter("Name");
  String sql="Insert into tableName values ('"+s+"')";
now execute this sql using rs.executeUpdate(sql);
where rs is the object of ResultSet.

I think this will help u.

Regards
Kumail Rizvi

-----Original Message-----
From: A mailing list about Java Server Pages specification and reference
[mailto:[EMAIL PROTECTED]]On Behalf Of Agarwal Gokul
Sent: Monday, August 21, 2000 11:45 AM
To: [EMAIL PROTECTED]
Subject: ASSIGNING REQUEST.GETPARAMETER TO A VARIABLE IN A JSP FILE !!!


HI Guys
           I am connecting to a database  and then trying to insert data
into a table using
request.getParameter....but am unable to do that...How do U assign the
request.getParameter value to a variable in
a JSP file ???
Thanx in advance !!!
Regds
Gocool !!!



****************************************************************************
This electronic communication and any accompanying document is being
transmitted over the Indian Oil Network and contains confidential
information that is for the exclusive use of the individual or entity to
which it is addressed and is protected against unauthorised disclosure. If
the reader of this message is not the intended receipient or the employee or
agent responsible to deliver to the intended receipient, or is not intended
to act on it, be aware that any disclosure, dissemination, distribution or
copying of this communication, or the use of its contents is prohibited and
is likely to be attended by legal consequences. If you have received this
communication in error and/or are not the intended receipient, please
immediately notify the undersigned or Indian Oil Corporation Ltd. at the
telephone or the fax number or email address given above and permanently
delete the original message from your email system.
****************************************************************************

===========================================================================
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff
JSP-INTEREST".
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".
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