Just output the complete url in the browser what do you get when you expect the params?
On 4/29/08, andrea pantaleoni <[EMAIL PROTECTED]> wrote: > > This is the code we used > > PageParameters parameters = new PageParameters(); > parameters.put(ApplicationConstants.REQUEST_USERNAME,userIdField.getModelObject().toString()); > parameters.put(ApplicationConstants.REQUEST_PASSWORD,passField.getModelObject().toString()); > setResponsePage(RegistrationPage.class,parameters); > > You can see we tried to add the values for the authentication as parameters > as well as attribute but in the filter class we couldn't find it. > If that is a redirect or not anyway I would expect to to find that > parameters in the request in the filter class > > > Johan Compagner wrote: > > > > Because its a redirect?? > > Then you have a new http request object without you attributes > > > > On 4/28/08, andrea pantaleoni <[EMAIL PROTECTED]> wrote: > >> > >> Hi, > >> I and my colleagues decided to write a custom filter class to check > >> authorization against a LDAP server > >> Inside the Filter class we got some parameters or attributes such as > >> netId > >> and password from the HttpServletRequest object and we check that against > >> the server. > >> Our first page is a wicket page called LoginPage from this page we call > >> another page adding in the HttpServletRequest two attributes (the netId > >> and > >> the password) > >> WebRequest wRequest = (WebRequest)webpage.getRequest(); > >> wRequest.getHttpServletRequest().setAttribute(...)... > >> > >> In this way before the other wicket page is loaded the filter class is > >> invoked, then the request object inside the filter class is completely > >> empty > >> without any attributes or parameters. > >> > >> Anyway if we get a HttpSession inside the LoginPage from the request > >> object > >> and we add in the session the attributes we are able to access them from > >> filter class(the session in not empty). > >> > >> Anyone of you has already faced a problem such that. > >> > >> Thanks in advance > >> > >> Andrea > >> -- > >> View this message in context: > >> > http://www.nabble.com/HttpRequest-and-Filter-class-tp16945908p16945908.html > >> Sent from the Wicket - Dev mailing list archive at Nabble.com. > >> > >> > > > > > > -- > View this message in context: > http://www.nabble.com/HttpServletRequest-and-Filter-Class-tp16953905p16953905.html > Sent from the Wicket - 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]