开发者

URL to a specific Wicket component

开发者 https://www.devze.com 2023-01-29 16:38 出处:网络
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 REQ

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

0

精彩评论

暂无评论...
验证码 换一张
取 消