Hi L,

I had no option but putting it on the actions itself so its done.

I had no idea wat step comes after multi part request processing and it had
some crucial information like password etc so can't convert to the "GET"
method

Thanks a lot for ur inputs.



Laurie Harper wrote:
> 
> Is your form submitted with method GET or POST? For a GET request I'd 
> expect request.getParameter() to work fine. If the form is being posted, 
> then you wont be able to get at form data until the multi-part request 
> processing has occurred. The request processor should invoke that at 
> some point, so try moving your custom logic to after that has happened.
> 
> L.
> 
> Sarry wrote:
>> HI Sandeep,
>> 
>> This doesn't work since request is going from client to server so I can't
>> set the request.getAttribute since when I submit the form it will be a
>> fresh
>> new request however had I tried settin thru request.setAttribute, it
>> would
>> have been a old request.
>> 
>> getting parameters thru request.parameter in case of hrefs/links works
>> fine
>> but form initialization happens at later stage so not able to get the
>> values
>> from the form
>> 
>> Regards,
>> Saurabh
>> 
>> 
>> Sandeep Gupta wrote:
>>> Hi Sarry
>>>
>>> Try setting the variable using the
>>>
>>> request.setAttribute(<Attribute key name as string>, <Value as Object>);
>>>
>>> and then, access the value in the request processor using the
>>>
>>> (<Cast to the desired object type) request.getAttribute(<Attribute key
>>> name
>>> as string>);
>>>
>>> Hope this helps.
>>>
>>> - Sandeep
>>>
>>>
>>>
>>> On 12/29/06, Sarry <[EMAIL PROTECTED]> wrote:
>>>>
>>>> Hi,
>>>>
>>>> I am tryin to extend request processor which basically tracks the
>>>> session
>>>> and does some routing stuff.
>>>>
>>>> but for that I need to pass a variable which is available on JSP and
>>>> need
>>>> to
>>>> pass it to the request processor to check something.
>>>>
>>>> I tried hidden field in the form but gettin value of hidden field thru
>>>> request.getParameter is not possible since it is not available however
>>>> the
>>>> same value is available on action.
>>>>
>>>> so now question is, how to pass any variable which should come with the
>>>> form
>>>> from JSP?
>>>> --
>>>> View this message in context:
>>>> http://www.nabble.com/Not-able-to-pass-value-from-jsp-to-request-Processor-tf2892984.html#a8082715
>>>> Sent from the Struts - User mailing list archive at Nabble.com.
>>>>
>>>>
>>>> ---------------------------------------------------------------------
>>>> To unsubscribe, e-mail: [EMAIL PROTECTED]
>>>> For additional commands, e-mail: [EMAIL PROTECTED]
>>>>
>>>>
>>>
>> 
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 
> 

-- 
View this message in context: 
http://www.nabble.com/Not-able-to-pass-value-from-jsp-to-request-Processor-tf2892984.html#a8096616
Sent from the Struts - User mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to