the cast is safe as long as you know you are running through wicketfilter/wicketservlet. the underlying Request/Response layer is so that users can build non-servlet-container wicket apps. when 2.0 comes out i think this will be fixed with covariance.

-Igor


On 6/14/06, Gianugo Rabellino <[EMAIL PROTECTED]> wrote:

On Jun 14, 2006, at 1:51 PM, Alexander Lohse wrote:

> Hi,
>
> how do I get access to the servername and serverport, like in
> servletrequest, through wicket?

HttpServletRequest request = ((WebRequest) getRequest())
                     .getHttpServletRequest();

Don't know if that's completely safe, though, that cast somewhat
scares me...

--
Gianugo Rabellino



_______________________________________________
Wicket-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/wicket-user

_______________________________________________
Wicket-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/wicket-user

Reply via email to