You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by Ganesh <em...@yahoo.co.in> on 2011/10/03 12:34:12 UTC
Re: To create new session without invalidating existing one
I tried setting the below hidden variable inside and outside the form. In both the case, Im not getting any value from request.getParameter. If i put inside the form then i am able to access it using form.getID.
<input type="hidden" id="ID" value="<%=ID%>"/>
Regards
Ganesh
----- Original Message -----
From: "Dave Newton" <da...@gmail.com>
To: "Struts Users Mailing List" <us...@struts.apache.org>
Sent: Friday, September 30, 2011 6:33 PM
Subject: Re: To create new session without invalidating existing one
> On Fri, Sep 30, 2011 at 7:46 AM, Ganesh wrote:
>
>> Is there any way to retireve the form data using request.getParameter(); If
>> the ID is part of hidden variable then it is returning null. Any ways to
>> retrieve data without using Form object.
>>
>
> If it's part of the form, and you're setting it, but not able to retrieve
> it, it's likely you're doing something wrong.
>
>
>> First time, I will set the ID as part of the URL and my problem is the ID
>> has to be carried for every subsequet pages. How to achieve this?
>>
>
> URL rewriting.
>
> Dave
>
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org
Re: To create new session without invalidating existing one
Posted by Aaron Brown <aa...@thebrownproject.com>.
This should be a whole new email thread, shouldn't it?
Try naming the class variable "id" and making your method "getId". OGNL will
try to make a guess what the pojo get method is and it often gets confused
with all uppercase names.
Aaron
On Oct 3, 2011 6:34 AM, "Ganesh" <em...@yahoo.co.in> wrote:
> I tried setting the below hidden variable inside and outside the form. In
both the case, Im not getting any value from request.getParameter. If i put
inside the form then i am able to access it using form.getID.
>
> <input type="hidden" id="ID" value="<%=ID%>"/>
>
> Regards
>
> Ganesh
>
>
>
> ----- Original Message -----
> From: "Dave Newton" <da...@gmail.com>
> To: "Struts Users Mailing List" <us...@struts.apache.org>
> Sent: Friday, September 30, 2011 6:33 PM
> Subject: Re: To create new session without invalidating existing one
>
>
>> On Fri, Sep 30, 2011 at 7:46 AM, Ganesh wrote:
>>
>>> Is there any way to retireve the form data using request.getParameter();
If
>>> the ID is part of hidden variable then it is returning null. Any ways to
>>> retrieve data without using Form object.
>>>
>>
>> If it's part of the form, and you're setting it, but not able to retrieve
>> it, it's likely you're doing something wrong.
>>
>>
>>> First time, I will set the ID as part of the URL and my problem is the
ID
>>> has to be carried for every subsequet pages. How to achieve this?
>>>
>>
>> URL rewriting.
>>
>> Dave
>>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
> For additional commands, e-mail: user-help@struts.apache.org
>