Apache Struts标签

url标签:
带参数传递

<s:url action="hello" var="helloLink">
  <s:param name="userName">Bruce Phillips</s:param>
</s:url>
 
<p><a href="${helloLink}">Hello Bruce Phillips</a></p>

form标签:

<s:form action="hello">
  <s:textfield name="userName" label="Your name" />
  <s:submit value="Submit" />
</s:form>
posted @ 2019-01-15 14:32  xuejianbest  阅读(141)  评论(0编辑  收藏  举报