JSP页面的一些处理
来源:互联网 发布:长沙百度关键词优化 编辑:程序博客网 时间:2024/05/23 14:34
/** 提示信息 */
request.setAttribute("showMessage", "查询错误,数据库字段格式有误!");
///
<script language="javascript">
<%if((String)request.getAttribute("message") != null){%>
alert("<%=(String)request.getAttribute("message")%>");
<%}%>
</script>
/** 判断 footer */
request.setAttribute("footer", pc.getFooter());
///
<logic:present name="footer">
<tr>
<td colspan="7" height="42" align="right">
<p><bean:write name="footer" filter="false" /></p>
</td>
</tr>
</logic:present>
/**
return true?
return save()?
*/
function save() {
with(document.dictForm){
if(!checkNotnull(NAME,'字典名称')){
return false;
}
return true;
}
}function back() {
with(document.dictForm){
hidact.value="";
submit();
}
}
<html:submit value=" 保 存 " property="sub" onclick="return save()"></html:submit>
<html:button value=" 返 回 " property="ret" onclick="back()"></html:button></td>
/**下拉列表*/
List list;
ArrayList groupList = new ArrayList();
RbacGroup rbacGroup = new RbacGroup();
RbacGroupDAO rbacGroupDAO = RbacGroupDAO.getInstance();
list = rbacGroupDAO.find("from RbacGroup");
for (int i = 0; i < list.size(); i++) {
rbacGroup = (RbacGroup) list.get(i);
groupList.add(new LabelValueBean(rbacGroup.getName(), rbacGroup
.getId().toString()));
}
request.setAttribute("groupList", groupList);
<%
ArrayList rbacGroupList = new ArrayList();
rbacGroupList = (ArrayList)request.getAttribute("groupList");
%>
请选择单位:
<html:select name="GcContractEquimentQueryForm" property="GROUP_ID" >
<html:options collection="rbacGroupList"
labelProperty="label" property="value" />
</html:select>
if(confirm("是否确认要删除?")){
/** confirm() */
onClick="return confirm('确定要删除吗?')"
<a class="blue" href="/gc/jhgs/contract/GcContractEquipmentDeleteAction.do?ID=
<bean:write property="id" name="gcCEQF"/"
onClick="return confirm('确定要删除吗?')">删除</a>
/** td 换行*/
<td align=center style="table-layout: fixed;WORD-BREAK: break-all; WORD-WRAP: break-word">
/** 时间格式 */
<bean:write name="gcCEQF" property="dateIn" format="yyyy-MM-dd"></bean:write>
<a class="blue" href="javascript:toEdit('detail','<bean:write name="info" property="id"/>')">查看详细信息</a>
- JSP页面的一些处理
- JSP页面的一些效果
- jsp页面的例外处理
- jsp的错误处理页面
- JSP页面的错误处理
- jsp错误页面的处理
- 【JSP】页面的异常处理
- JSP页面的异常处理
- jsp页面绝对路径的处理
- JSP页面的异常处理
- JSP页面的异常处理
- jsp页面显示的一些用法
- jsp页面一些获取值的方式
- JSP页面中文乱码的处理
- JSP中页面框架的处理
- Tomcat是如何处理jsp页面的
- jsp页面 上传图片预览 的处理
- jsp处理表单的一些经验分享
- 确保分条大小与操作系统和数据库的数据块大小一致
- SoftExam程序的后续2006-07-11
- 网络游戏的朴素理财观
- 多留点时间给生活和家人!
- 忙与盲
- JSP页面的一些处理
- 玩玩Spring之struts+hibernate+spring添删改查示例(一)
- [VB][E文]通过COM访问Domino对象
- 丘成桐:北京大学引进海外人才大部分是假的
- 关于linux内核的学习过程.......from:community.csdn
- 网站项目建设流程概述
- [b/s]使用 Ajax 操纵 Lotus Notes 文档
- [ASP.NET学习笔记之五]ASP.NET 中的缓存功能介绍
- 项目测试反馈规则