This week's book giveaway is in the Agile and other Processes forum.
We're giving away four copies of The Mikado Method and have Ola Ellnestam and Daniel Brolund 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
Register / Login


Win a copy of The Mikado Method this week in the Agile and other Processes forum!
JavaRanch » Java Forums » Java » JSP
Reply 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: 56185
    
  13

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?


[Smart Questions] [JSP FAQ] [Books by Bear] [Bear's FrontMan] [About Bear]
 
I agree. Here's the link: http://zeroturnaround.com/jrebel - it saves me about five hours per week
 
subject: Passing html text field as a c:url parameter
 
Similar Threads
404 Error
Loading a file content in dropdown list
Using JSTL Data Displayed In Browser Is Getting Fixed To 24576 Bytes(24 KB)
c:url parsing problems
Using checkbox on Spring 2.5 MVC ?