我想不通过登录界面登录,而是通过发送一个id后在后台实现登录,这要这么实现了。这里有使用到spring的flow。
<view-state id="viewLoginForm" view="casLoginView" model="credential">
<binder>
<binding property="username" />
<binding property="password" />
</binder>
<on-entry>
<set name="viewScope.commandName" value="'credential'" />
</on-entry>
<transition on="submit" bind="true" validate="true" to="realSubmit">
<evaluate expression="authenticationViaFormAction.doBind(flowRequestContext, flowScope.credential)" />
</transition>
</view-state>
如何不通过viewLoginForm这方方式来登录,而是直接在后台登录?