You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@velocity.apache.org by Leina Last <ey...@yahoo.com> on 2003/03/20 13:02:45 UTC
send textfield value with addPathInfo() ?
Hi
I will appreciate if someone PLEASE can help me.
I have a text field like <input type="text" name="YYYY" value="2003"> and would like to send the value of YYYY to a servlet, making use of addPathInfo().
I tried something like addPathInfo("YYYY",YYYY.value), I also tried calling a javascript something like addPathInfo( "YYYY",getYearValue() ). None of these work.
How can I manage to send a value from a text field making use of addPathInfo() ?
Thank You
L
---------------------------------
Do you Yahoo!?
Yahoo! Platinum - Watch CBS' NCAA March Madness, live on your desktop!
Re: send textfield value with addPathInfo() ?
Posted by Denis <br...@mac.com>.
The turbine mailing list will certainly be able to help you.
mailto:turbine-user-subscribe@jakarta.apache.org
-- Denis.
On Thursday, March 20, 2003, at 12:33 pm, Leina Last wrote:
>
> Have a look at
> http://jakarta.apache.org/turbine/turbine-2.3/howto/context-howto.html
> with addPathInfo you can send data with a href link just like HTML
> form's GET method.
> I make use of $request.getParameter in my servlet.
> L
---------------------------------------------------------------------
To unsubscribe, e-mail: velocity-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: velocity-user-help@jakarta.apache.org
Re: send textfield value with addPathInfo() ?
Posted by Leina Last <ey...@yahoo.com>.
Have a look at http://jakarta.apache.org/turbine/turbine-2.3/howto/context-howto.html
with addPathInfo you can send data with a href link just like HTML form's GET method.
I make use of $request.getParameter in my servlet.
L
Denis <br...@mac.com> wrote:Leina,
What is addPathInfo? Is it a Java method?
If so, you need to have an instance of the class in the context, and do:
$myclass.addPathInfo("YYYY", $request.getParameter("YYYY"))
(I don't know if $request.getParameter exists in your context, it's
just to give you an idea)
Cheers,
-- Denis.
On Thursday, March 20, 2003, at 12:02 pm, Leina Last wrote:
>
> Hi
>
> I will appreciate if someone PLEASE can help me.
>
> I have a text field like [input]
> and would like to send the value of YYYY to a servlet, making use of
> addPathInfo().
>
> I tried something like addPathInfo("YYYY",YYYY.value), I also tried
> calling a javascript something like addPathInfo( "YYYY",getYearValue()
> ). None of these work.
>
> How can I manage to send a value from a text field making use of
> addPathInfo() ?
>
> Thank You
>
> L
>
---------------------------------------------------------------------
To unsubscribe, e-mail: velocity-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: velocity-user-help@jakarta.apache.org
---------------------------------
Do you Yahoo!?
Yahoo! Platinum - Watch CBS' NCAA March Madness, live on your desktop!
Re: send textfield value with addPathInfo() ?
Posted by Denis <br...@mac.com>.
Leina,
What is addPathInfo? Is it a Java method?
If so, you need to have an instance of the class in the context, and do:
$myclass.addPathInfo("YYYY", $request.getParameter("YYYY"))
(I don't know if $request.getParameter exists in your context, it's
just to give you an idea)
Cheers,
-- Denis.
On Thursday, March 20, 2003, at 12:02 pm, Leina Last wrote:
>
> Hi
>
> I will appreciate if someone PLEASE can help me.
>
> I have a text field like <input type="text" name="YYYY" value="2003">
> and would like to send the value of YYYY to a servlet, making use of
> addPathInfo().
>
> I tried something like addPathInfo("YYYY",YYYY.value), I also tried
> calling a javascript something like addPathInfo( "YYYY",getYearValue()
> ). None of these work.
>
> How can I manage to send a value from a text field making use of
> addPathInfo() ?
>
> Thank You
>
> L
>
---------------------------------------------------------------------
To unsubscribe, e-mail: velocity-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: velocity-user-help@jakarta.apache.org