This week's book giveaway is in the OCPJP forum.
We're giving away four copies of OCA/OCP Java SE 7 Programmer I & II Study Guide and have Kathy Sierra & Bert Bates on-line!
See this thread for details.
The moose likes JSP and the fly likes Passing html text field as a c:url parameter Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of OCA/OCP Java SE 7 Programmer I & II Study Guide this week in the OCPJP forum!
JavaRanch » Java Forums » Java » JSP
Bookmark "Passing html text field as a c:url parameter" Watch "Passing html text field as a c:url parameter" New topic
Author

Passing html text field as a c:url parameter

Scott Updike
Ranch Hand

Joined: Feb 16, 2006
Posts: 92
All,

I have a simple jsp page with a submission form as well as a link. What I need to do is figure out a way to pass the value in the storecredit text field in the updateTxnCustomer form as a parameter to the link. The user has the ability to alter the prepopulated value in the text field, so it could be different from the salestxnto.storecredit value.

How do I do this?

Thanks,
Scott


Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 61451
    
  67

You'll need to handle this on the client in JavaScript. How could the JSP know what the user is about to enter into the field before the page is even sent to the browser?


[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Passing html text field as a c:url parameter