在页面头添加

<%@ taglib prefix="s" uri="/struts-tags"%>

页面中添加相应的tag

s:password

密码

s:checkbox

Checkbox

s:submit

提交按钮

s:reset

重置按钮

s:form

Form

s:set

设置某个值s:set name="lastName" value="%session.paramter"(Session中获取parameter的值)

s:if test="xxx"

判断test是否为真

s:textfield

字符输入框

#parameters.id

从参数中获取id的值

详细查看http://struts.apache.org/2.0.14/docs/tag-reference.html

 

不过不知什么原因,在失败的情况下不能获取SPRING_SECURITY_LAST_USERNAME的值.

相关文章:

  • 2021-05-25
  • 2022-01-16
  • 2021-11-30
  • 2021-11-30
  • 2021-11-30
  • 2021-12-05
  • 2021-11-23
  • 2021-10-11
猜你喜欢
  • 2022-12-23
  • 2021-07-15
  • 2021-11-10
  • 2022-02-23
  • 2021-12-06
  • 2021-10-25
  • 2021-08-16
相关资源
相似解决方案