URL to a specific Wicket component
I have a webpage with a Wicket login f开发者_运维知识库orm. I want to make a HTTP POST from some other page and be able to login onto my webpage. Can this be done?
Well it can be done. You can read REQUEST (POST & GET) variables/parameters with the
((WebRequest) getRequest()).getParameters(key)
or
getRequest().getRequestParameters().getParameters().get(key)
and try to perform login in the page constructor. You should use bookmarkable page so mount it or make it stateless. I'm not sure if I answered what you meant in the first place.
HTH,
Marek
精彩评论