On 7/19/06, Laurie Harper <[EMAIL PROTECTED]> wrote:
Michael Jouravlev wrote:
> On 7/19/06, Caroline Jen <[EMAIL PROTECTED]> wrote:
>> My text field and the link are defined inside a HTML
>> form
> ....
>> When I submit the form, the browser address bar shows
>> searchFirstName=
>>
>> a blank is sent.
>
> You should start from here. Why does the browser send an emply
> parameter? View HTML page source and verify that you have a <form> and
> you have <input type="text" ...> inside of it. Try cutting that HTML
> out, create a test HTML page and see how your browser submits the
> form. Check generated request. The HTML form may not be properly
> generated by JSP tags, but I don't know what exactly went wrong in
> your JSP page.
The problem is that c:url produces a link, not a form submit. You cannot
capture the value entered into a text field and include it as a link
parameter, except by writing some Javascript.
When I wrote this reply I got an impression that Caroline submits the
form first, then she displays the page with JSTL tags where she wants
to use submitted searchFirstName. But looks like this is not true, and
my first understanding about what she wanted to do (submitting the
form, generating URL on the fly) was in fact a correct one.
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]