You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@wicket.apache.org by K <ko...@gmail.com> on 2017/01/05 13:31:38 UTC
unable to retrieve HTTPServletRequest parameters
Hi
I am trying to retrieve HTTPServletRequest parameters from a incoming
request from an external application. i am using
HttpServletRequest req = ((ServletWebRequest)
RequestCycle.get().getRequest()).getContainerRequest();
in my home page, when i try to print the request parameters or
getparameternames.size i get null and 0 respectively.
i need the parameter values to retrieve the session and logged-in user
information of the application that the request is coming from.
can anyone point out what is to be done?
Thanks in advance
-----
K
--
View this message in context: http://apache-wicket.1842946.n4.nabble.com/unable-to-retrieve-HTTPServletRequest-parameters-tp4676661.html
Sent from the Users forum mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
For additional commands, e-mail: users-help@wicket.apache.org
Re: unable to retrieve HTTPServletRequest parameters
Posted by Kris <ko...@gmail.com>.
Thank you Martin and Sven and sorry i delayed working on your suggestions. I
did a POC and i was able to do retrieve the parameters from both
HTTPServletRequest and PageParameters. Problem was with the application that
is invoking the wicket application.
Thanks a lot
-----
K
--
View this message in context: http://apache-wicket.1842946.n4.nabble.com/unable-to-retrieve-HTTPServletRequest-parameters-tp4676661p4676805.html
Sent from the Users forum mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
For additional commands, e-mail: users-help@wicket.apache.org
Re: unable to retrieve HTTPServletRequest parameters
Posted by Martin Grigorov <mg...@apache.org>.
Hi,
The parameters should be available via PageParameters#get(String)
But they should be available in the HttpServletRequest too.
Martin Grigorov
Wicket Training and Consulting
https://twitter.com/mtgrigorov
On Thu, Jan 5, 2017 at 2:43 PM, Kris <ko...@gmail.com> wrote:
> sven
>
> my constructor looks like this
>
>
> public UploadFilePage(final PageParameters parameters) {
> FeedbackPanel feedback = new FeedbackPanel("feedback");
> HttpServletRequest req = ((ServletWebRequest)
> RequestCycle.get().getRequest()).getContainerRequest();
>
>
> -----
> K
> --
> View this message in context: http://apache-wicket.1842946.
> n4.nabble.com/unable-to-retrieve-HTTPServletRequest-
> parameters-tp4676661p4676663.html
> Sent from the Users forum mailing list archive at Nabble.com.
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
> For additional commands, e-mail: users-help@wicket.apache.org
>
>
Re: unable to retrieve HTTPServletRequest parameters
Posted by Kris <ko...@gmail.com>.
sven
my constructor looks like this
public UploadFilePage(final PageParameters parameters) {
FeedbackPanel feedback = new FeedbackPanel("feedback");
HttpServletRequest req = ((ServletWebRequest)
RequestCycle.get().getRequest()).getContainerRequest();
-----
K
--
View this message in context: http://apache-wicket.1842946.n4.nabble.com/unable-to-retrieve-HTTPServletRequest-parameters-tp4676661p4676663.html
Sent from the Users forum mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
For additional commands, e-mail: users-help@wicket.apache.org
Re: unable to retrieve HTTPServletRequest parameters
Posted by Sven Meier <sv...@meiers.net>.
Hi,
> i am using ... in my home page
from where in your page are you reading the request parameters?
It seems you ain't doing it on the first request, but after a redirect only.
Have fun
Sven
On 05.01.2017 14:31, K wrote:
> Hi
>
> I am trying to retrieve HTTPServletRequest parameters from a incoming
> request from an external application. i am using
>
> HttpServletRequest req = ((ServletWebRequest)
> RequestCycle.get().getRequest()).getContainerRequest();
> in my home page, when i try to print the request parameters or
> getparameternames.size i get null and 0 respectively.
>
> i need the parameter values to retrieve the session and logged-in user
> information of the application that the request is coming from.
>
> can anyone point out what is to be done?
>
> Thanks in advance
>
> -----
> K
> --
> View this message in context: http://apache-wicket.1842946.n4.nabble.com/unable-to-retrieve-HTTPServletRequest-parameters-tp4676661.html
> Sent from the Users forum mailing list archive at Nabble.com.
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
> For additional commands, e-mail: users-help@wicket.apache.org
>
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
For additional commands, e-mail: users-help@wicket.apache.org