社区
Java EE
帖子详情
在提交j_spring_security_check登录后,重定向到login_process.jspa,在login_process Action中如何得到 登录Form中其他一些input参数
IdeaSoft
2008-11-08 10:22:51
在提交j_spring_security_check登录后,重定向到login_process.jspa,在login_process Action中如何得到 登录Form中其他一些input参数
...全文
2209
5
打赏
收藏
在提交j_spring_security_check登录后,重定向到login_process.jspa,在login_process Action中如何得到 登录Form中其他一些input参数
在提交j_spring_security_check登录后,重定向到login_process.jspa,在login_process Action中如何得到 登录Form中其他一些input参数
复制链接
扫一扫
分享
转发到动态
举报
写回复
配置赞助广告
用AI写文章
5 条
回复
切换为时间正序
请发表友善的回复…
发表回复
打赏红包
Imore
2008-11-10
打赏
举报
回复
要非得重定向就先把参数存在Application的属性中
Imore
2008-11-10
打赏
举报
回复
不用重定向用正常的跳转来实现这个效果不行么?
IdeaSoft
2008-11-09
打赏
举报
回复
spring security 验证后通过后就重定向我设置的/login_process.jspa,如下配置
,我需要在/login_process.jspa这里得到login.jspa上面表单的其他数据。
<form-login login-page="/login.jspa" default-target-url="/login_process.jspa" authentication-failure-url="/login.jspa?error=true" login-processing-url="/j_login"/>
login.jspa表单是这样的:
<s:form action="j_login" cssStyle="width:450px;" cssClass="form-table" id="loginForm">
<s:hidden name="redirect" id="redirect"/>
<tr class="columnset"><td width="20%"></td><td width="80%"></td></tr>
<tr>
<td>用户名</td>
<td>
<input type='text' name='j_username' id="username" <c:if test="${param.error=='true'}"> value="<%=session.getAttribute(AuthenticationProcessingFilter.SPRING_SECURITY_LAST_USERNAME_KEY)%>" </c:if> /></td>
</tr>
<tr>
<td>密码</td>
<td><input type='password' name='j_password'/></td>
</tr>
<tr><td class="tdLabel">记住我:</td><td><input type="checkbox" name="_spring_security_remember_me" /></td></tr>
<tr><td></td><td><button type="submit" >登录</button> <a href="${BASEURL}/register.jspa">注册</a> <a id="linkForgetPassword">忘记密码?</a></td></tr>
</s:form>
我想在login_process.jspa得到redirect参数? HOW TO。。。。。。。。。。。
langhua9527
2008-11-08
打赏
举报
回复
为什么要重定向呢??
Spring
Security
中
文文档
Spring
Security
中
文文档 来源:https://www.
spring
cloud.cc/
spring
-
security
.html#overall-architecture 作者 Ben Alex , Luke Taylor , Rob Winch , Gunnar Hillert , Joe Grandja , Jay Bryant 5.1.2.RELE...
【
Spring
实战】----
Security
4.1.3实现根据请求跳转不同
登录
页以及
登录
后根据权限跳转到不同页配置
一、背景介绍 上一篇最后总结说了: 1)被认证请求被Filter
Security
Interceptor拦截看有没有对应权限,如果没有抛异常给ExceptionTranslationFilter 2)ExceptionTranslationFilter缓存原请求,利用
Login
UrlAuthenticationEntryPoint入口跳转到
登录
界面 3)用户在
登录
界面填写
登录
信息后,
提交
,经
Spring
Security
--
Spring
Boot
中
开启
Spring
Security
在介绍
Spring
Securiry之前,我们试想一下如果我们自己去实现一个安全框架,我们需要包含哪些功能: 我们需要对
登录
接口或者一些不需要权限的接口放行,同时我们需要对某些接口进行身份认证,例如:在基于jwt的认证体系
中
,我们需要校验token是否合法,token合法我们才会放行; 我们希望我们写的安全框架能够做一些授权的操作,比如:我们可以限制认证后的用户访问/user接口需要什么权限,...
jQuery Ajax调用后如何管理
重定向
请求
我使用$.post()使用Ajax调用servlet,然后使用生成的HTML片段替换用户当前页面
中
的div元素。 但是,如果会话超时,服务器将发送
重定向
指令以将用户发送到
登录
页面。 在这种情况
Spring
Security
5.0.x 参考手册 【翻译自官方GIT-2018.06.12】
源码请移步至:https://github.com/aquariuspj/
spring
-
security
/tree/translator/docs/manual/src/docs/asciidoc版本号:5.0.x 参考手册 【翻译自官方GIT - 2018.06.12】
Spring
Security
参考手册
Spring
Security
是一个强大且高度可定制的身份验证和访问控制框架。 这是保护基...
Java EE
67,538
社区成员
225,852
社区内容
发帖
与我相关
我的任务
Java EE
J2EE只是Java企业应用。我们需要一个跨J2SE/WEB/EJB的微容器,保护我们的业务核心组件(中间件),以延续它的生命力,而不是依赖J2SE/J2EE版本。
复制链接
扫一扫
分享
社区描述
J2EE只是Java企业应用。我们需要一个跨J2SE/WEB/EJB的微容器,保护我们的业务核心组件(中间件),以延续它的生命力,而不是依赖J2SE/J2EE版本。
社区管理员
加入社区
获取链接或二维码
近7日
近30日
至今
加载中
查看更多榜单
社区公告
暂无公告
试试用AI创作助手写篇文章吧
+ 用AI写文章