954,574 Members — Technology Publication meets Social Media
Username:
Password:
Lost login information?
Have something to say? Contribute New Article Reply to this Article

Parameter in JSP??

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

suigion
Newbie Poster
4 posts since May 2007
Reputation Points: 10
Solved Threads: 0
 

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.

cheers

Cheers

saurav
Light Poster
28 posts since Jul 2004
Reputation Points: 10
Solved Threads: 2
 

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" />

~s.o.s~
Failure as a human
Administrator
11,938 posts since Jun 2006
Reputation Points: 3,281
Solved Threads: 734
 

This article has been dead for over three months

Post: Markdown Syntax: Formatting Help
You