简体   繁体   English

指向特定Wicket组件的URL

[英]URL to a specific Wicket component

I have a webpage with a Wicket login form. 我有一个带有Wicket登录表单的网页。 I want to make a HTTP POST from some other page and be able to login onto my webpage. 我想从其他页面进行HTTP POST,并能够登录到我的网页。 Can this be done? 能做到吗?

Well it can be done. 好吧,可以做到的。 You can read REQUEST (POST & GET) variables/parameters with the 您可以使用以下命令读取REQUEST(POST&GET)变量/参数

 ((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, HTH,

Marek 马雷克

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM