struts标签应用

Posted 子衿悠悠

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了struts标签应用相关的知识,希望对你有一定的参考价值。

1.select下拉框标签

<s:select list="#{‘1‘:‘干渠大断面‘,‘2‘:‘直开口‘,‘3‘:‘支渠分水口‘}" label=" " name=""

              id="sttype" headerKey="" headerValue="--请选择--" ></s:select>

通过js设置默认选中项:

  Var sttype=document.getElementById(“sttype”);

  sttype.selectedIndex=1;

以上是关于struts标签应用的主要内容,如果未能解决你的问题,请参考以下文章

Struts的Logic标签的用途

错误 - 找不到“/struts-tags”的标签库描述符

Struts2 表单标签

JAVA EE 学习笔记[V5 struts2框架标签库]

Struts常用数据标签以及表单标签

Struts2标签库