Getting the HttpServletRequest reference

classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

Getting the HttpServletRequest reference

danc-3
I am having trouble using SSL with my form.  
Specifically, I have a custom processor that
saves the form to a disk.  When a user clicks
a SAVE button, the processor is activated.

When I run the custom processor not using SSL, it
works fine.  When I run it using SSL, nothing
seems to happen -- seems like my form never makes
it to the engine.

I am looking at potentially writing my own
Java processor to get around this, but need
to find out how to get access to the
HttpServletRequest.

How do I get the HttpServletRequest reference from
inside a Java custom processor?

- Dan



--
You receive this message as a subscriber of the [hidden email] mailing list.
To unsubscribe: mailto:[hidden email]
For general help: mailto:[hidden email]?subject=help
ObjectWeb mailing lists service home page: http://www.objectweb.org/wws
Reply | Threaded
Open this post in threaded view
|

Re: Getting the HttpServletRequest reference

Erik Bruchez
Administrator
Dan,

An easy one:

Assuming you have a PipelineContext object called pipelineContext:

ExternalContext externalContext = (ExternalContext)
pipelineContext.getAttribute(PipelineContext.EXTERNAL_CONTEXT);

HttpServletRequest request = (HttpServletRequest)
externalContext.getNativeRequest();

-Erik

[hidden email] wrote:

> I am having trouble using SSL with my form.  
> Specifically, I have a custom processor that
> saves the form to a disk.  When a user clicks
> a SAVE button, the processor is activated.
>
> When I run the custom processor not using SSL, it
> works fine.  When I run it using SSL, nothing
> seems to happen -- seems like my form never makes
> it to the engine.
>
> I am looking at potentially writing my own
> Java processor to get around this, but need
> to find out how to get access to the
> HttpServletRequest.
>
> How do I get the HttpServletRequest reference from
> inside a Java custom processor?
>
> - Dan


--
You receive this message as a subscriber of the [hidden email] mailing list.
To unsubscribe: mailto:[hidden email]
For general help: mailto:[hidden email]?subject=help
ObjectWeb mailing lists service home page: http://www.objectweb.org/wws
Reply | Threaded
Open this post in threaded view
|

Re: Getting the HttpServletRequest reference

danc-3
In reply to this post by danc-3
Thanks Erik!!!!!!

That seems to have worked.

- Dan



--
You receive this message as a subscriber of the [hidden email] mailing list.
To unsubscribe: mailto:[hidden email]
For general help: mailto:[hidden email]?subject=help
ObjectWeb mailing lists service home page: http://www.objectweb.org/wws