Parameter in JSP??

Reply

Join Date: May 2007
Posts: 4
Reputation: suigion is an unknown quantity at this point 
Solved Threads: 0
suigion suigion is offline Offline
Newbie Poster

Parameter in JSP??

 
0
  #1
May 1st, 2007
Hi All,
I am new in JSP. I would like to know how to pass a value from a textbox into a parameter??

For example:
Insert value into Emp (Name) value (????);

The "????" should be the text when the user enter the name in "Name" textbox.

Thanks in Advance,
Suigion
Reply With Quote Quick reply to this message  
Join Date: Jul 2004
Posts: 28
Reputation: saurav is an unknown quantity at this point 
Solved Threads: 2
saurav saurav is offline Offline
Light Poster

Re: Parameter in JSP??

 
0
  #2
May 1st, 2007
Hi,

The name of the input type(here it is text box) of the jsp file goes as a request parameter.That parameter can be retrieved in your java program and can be used as a paramter for the JDBC call.

<input type="text" name = requestname></input>

cheers

Cheers
Reply With Quote Quick reply to this message  
Join Date: Jun 2006
Posts: 7,611
Reputation: ~s.o.s~ has much to be proud of ~s.o.s~ has much to be proud of ~s.o.s~ has much to be proud of ~s.o.s~ has much to be proud of ~s.o.s~ has much to be proud of ~s.o.s~ has much to be proud of ~s.o.s~ has much to be proud of ~s.o.s~ has much to be proud of ~s.o.s~ has much to be proud of 
Solved Threads: 465
Super Moderator
Featured Poster
~s.o.s~'s Avatar
~s.o.s~ ~s.o.s~ is offline Offline
Failure as a human

Re: Parameter in JSP??

 
0
  #3
May 7th, 2007
Thats not the way an input tag is written -- its an empty tag. As per the XHTML standards, it should be something like;

<input type="text" name="txtName" />
I don't accept change; I don't deserve to live.
Reply With Quote Quick reply to this message  
Reply

This thread is more than three months old.
Perhaps start a new thread instead?
Message:


Thread Tools Search this Thread



About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC