ActionContext.getContext().getSession().put("user", getUsername()); request.setAttribute("username

Hibernate: select count(*) as col_0_0_ from article article0_ order by article0_.id desc
pageIndex=1
start=0
Hibernate: select article0_.id as id1_, article0_.articles_id as articles2_1_, article0_.Title as Title1_, article0_.Content as Content1_, article0_.Article_Type as Article5_1_, article0_.InfoFlag as InfoFlag1_, article0_.OriginalFlag as Original7_1_, article0_.IsHasImg as IsHasImg1_, article0_.AuthorIP as AuthorIP1_, article0_.AuthorId as AuthorId1_, article0_.AuthorName as AuthorName1_, article0_.RecordTime as RecordTime1_, article0_.DotNumber as DotNumber1_, article0_.RevertNumber as RevertN14_1_, article0_.RevertTime as RevertTime1_, article0_.ArticleState as Article16_1_, article0_.TopID as TopID1_ from article article0_ order by article0_.id asc limit ?
ip=0:0:0:0:0:0:0:1
Hibernate: select article0_.id as id1_, article0_.articles_id as articles2_1_, article0_.Title as Title1_, article0_.Content as Content1_, article0_.Article_Type as Article5_1_, article0_.InfoFlag as InfoFlag1_, article0_.OriginalFlag as Original7_1_, article0_.IsHasImg as IsHasImg1_, article0_.AuthorIP as AuthorIP1_, article0_.AuthorId as AuthorId1_, article0_.AuthorName as AuthorName1_, article0_.RecordTime as RecordTime1_, article0_.DotNumber as DotNumber1_, article0_.RevertNumber as RevertN14_1_, article0_.RevertTime as RevertTime1_, article0_.ArticleState as Article16_1_, article0_.TopID as TopID1_ from article article0_ where article0_.id='11'
Hibernate: update article set articles_id=?, Title=?, Content=?, Article_Type=?, InfoFlag=?, OriginalFlag=?, IsHasImg=?, AuthorIP=?, AuthorId=?, AuthorName=?, RecordTime=?, DotNumber=?, RevertNumber=?, RevertTime=?, ArticleState=?, TopID=? where id=?
Hibernate: select revert0_.id as id2_, revert0_.articles_id as articles2_2_, revert0_.revertContent as revertCo3_2_, revert0_.revertIP as revertIP2_, revert0_.revertID as revertID2_, revert0_.revertName as revertName2_, revert0_.recordTime as recordTime2_ from revert revert0_ where revert0_.articles_id=11
[com.ssh.domain.Revert@3578f2]
获取之前页面----http://localhost:8080/blog0.1/article!lookArticle.action?id=11
addr===0:0:0:0:0:0:0:1
host===0:0:0:0:0:0:0:1
port===52181
remotUser===null
----ip===http://localhost:8080/blog0.1/login!loginUI.action
uri==/blog0.1/login!loginUI.action
LoginInterceptor---url==http://localhost:8080/blog0.1/login!loginUI.action
null您还没有登录!
获取之前页面----http://localhost:8080/blog0.1/login!loginUI.action
session1.getAttribute-----http://localhost:8080/blog0.1/article!lookArticle.action?id=11
addr===0:0:0:0:0:0:0:1
host===0:0:0:0:0:0:0:1
port===52181
remotUser===null
----ip===http://localhost:8080/blog0.1/login!login.action
uri==/blog0.1/login!login.action
LoginInterceptor---url==http://localhost:8080/blog0.1/login!login.action
null您还没有登录!
未加密的密码:tfy
Hibernate: select user0_.id as id0_, user0_.username as username0_, user0_.password as password0_, user0_.email as email0_ from user user0_ where user0_.username=? limit ?

refererUrl---http://localhost:8080/blog0.1/article!lookArticle.action?id=11


ActionContext.getContext().getSession().put("user", getUsername());
request.setAttribute("username", username);
HttpSession session=(HttpSession) ServletActionContext.getRequest().getSession();
String refererUrl=(String) session.getAttribute("refererUrl");
System.out.println("refererUrl---"+refererUrl);
if(refererUrl!=null&&!"".equals(refererUrl)){
request.setAttribute("refererUrl", refererUrl);
response.sendRedirect(refererUrl);
out.write("refererUrl");
System.out.println("refererUrl");
out.flush();
out.close();
return "redirectUrl";
}
out.write("成功");
System.out.println("成功");
out.flush();
out.close();
return SUCCESS;


  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值