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

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

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

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.