[xwiki-devs] $request.getParameter()
Hello All, I have come across this many times and am not sure what I am doing wrong here. I have a simple HTML form on a page and there is one <select> type input. If I try to get the selected value of this field on the same page, using #set($something = $request.getParameter("name of the filed")) , it does not do anything but if I do the same in a .vm file, it gets the value fine. What am I doign wrong, in the process of getting the value on the same page using velocity. Thanks
Hi, What if you try $request.<name of the filed> ? For example : #set($xpage = $request.xpage) On Thu, May 1, 2008 at 9:10 PM, Kamna Jain <[email protected]> wrote:
Hello All,
I have come across this many times and am not sure what I am doing wrong here. I have a simple HTML form on a page and there is one <select> type input.
If I try to get the selected value of this field on the same page, using #set($something = $request.getParameter("name of the filed")) , it does not do anything
but if I do the same in a .vm file, it gets the value fine. What am I doign wrong, in the process of getting the value on the same page using velocity.
Thanks _______________________________________________ devs mailing list [email protected] http://lists.xwiki.org/mailman/listinfo/devs
-- Thomas Mortagne
No. even $request.<name of the field> does not work! Any other suggestions? Thanks On 5/1/08, Kamna Jain <[email protected]> wrote:
Hello All,
I have come across this many times and am not sure what I am doing wrong here. I have a simple HTML form on a page and there is one <select> type input.
If I try to get the selected value of this field on the same page, using #set($something = $request.getParameter("name of the filed")) , it does not do anything
but if I do the same in a .vm file, it gets the value fine. What am I doign wrong, in the process of getting the value on the same page using velocity.
Thanks
What is the exact URL you get when you try to get the parameter after submitting the form ? On Tue, May 6, 2008 at 8:59 PM, Kamna Jain <[email protected]> wrote:
No. even $request.<name of the field> does not work! Any other suggestions?
Thanks
On 5/1/08, Kamna Jain <[email protected]> wrote:
Hello All,
I have come across this many times and am not sure what I am doing wrong here. I have a simple HTML form on a page and there is one <select> type input.
If I try to get the selected value of this field on the same page, using #set($something = $request.getParameter("name of the filed")) , it does not do anything
but if I do the same in a .vm file, it gets the value fine. What am I doign wrong, in the process of getting the value on the same page using velocity.
Thanks
_______________________________________________ devs mailing list [email protected] http://lists.xwiki.org/mailman/listinfo/devs
-- Thomas Mortagne
participants (2)
-
Kamna Jain -
Thomas Mortagne