944,084 Members | Top Members by Rank

Ad:
  • JSP Discussion Thread
  • Unsolved
  • Views: 1826
  • JSP RSS
May 1st, 2007
0

Parameter in JSP??

Expand Post »
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
Similar Threads
Reputation Points: 10
Solved Threads: 0
Newbie Poster
suigion is offline Offline
4 posts
since May 2007
May 1st, 2007
0

Re: Parameter in JSP??

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
Reputation Points: 10
Solved Threads: 2
Light Poster
saurav is offline Offline
28 posts
since Jul 2004
May 7th, 2007
0

Re: Parameter in JSP??

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" />
Super Moderator
Featured Poster
Reputation Points: 3241
Solved Threads: 719
Failure as a human
~s.o.s~ is offline Offline
8,873 posts
since Jun 2006

This thread is more than three months old

No one has posted to this discussion for at least three months. Please let old threads die and do not reply to them unless you feel you have something new and valuable to contribute that absolutely must be added to make the discussion complete. Otherwise, please start a new thread in this forum instead.
Message:
Previous Thread in JSP Forum Timeline: servlets - javax.servlets does not exist
Next Thread in JSP Forum Timeline: is there any solution





About Us | Contact Us | Advertise | Acceptable Use Policy
Forum Index | Build Custom RSS Feed


Follow us on Twitter


© 2011 DaniWeb® LLC