jsp页面显示不全

d925529 2011-12-01 10:17:40


<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<%@ page language="java" contentType="text/html; charset=GBK" pageEncoding="GBK"%>
<%
request.setCharacterEncoding("GBK");
%>
<%@ taglib uri="/WEB-INF/tld/c.tld" prefix="c"%>
<%@ taglib uri="/WEB-INF/tld/struts-html.tld" prefix="html"%>
<html:html>
<c:set var="request" scope="page" value="${pageContext.request}" />
<c:set var="base" scope="page" value="${request.scheme}://${request.serverName}:${request.serverPort}" />
<c:set var="contextPath" scope="page" value="${request.contextPath}" />
<c:set var="basePath" scope="page" value="${base}${contextPath}/" />
<head>
<title>应用系统</title>
<script language="JavaScript" src="${basePath}/dwr/engine.js"></script>
<script language="JavaScript" src="${basePath}/dwr/util.js"></script>
<script language="JavaScript" type="text/javascript" src="${basePath}/dwr/interface/DWRBaseClass.js"></script>
<script type="text/javascript" src="${basePath}/resource/base/js/frame/jquery/jquery-1.6.2.min.js"></script>
<script type="text/javascript" src="${basePath}/resource/base/js/dialog/lhgdialog.js?t=self&s=${faceStyle}"></script>
<script language="JavaScript" src="${basePath}resource/base/js/tool/XQzyDIV.js"></script>
<script language="JavaScript" src="${basePath}/resource/base/js/validate/Magican.js"></script>
<script type="text/javascript" charset="utf-8" src="${basePath }/resource/base/js/msg/msgBar/js/msgBar.js"></script>
<script>

function MenucreatePopup_icon(obj) {
win({
url: '${basePath}/pages/admin/application/iconSelect.jsp',
width: 500,
height: 200,
title: '图标选择'
});
}
function MenucreatePopup_bigicon(obj) {
win({
url: '${basePath}/pages/admin/application/bigiconSelect.jsp',
width: 500,
height: 200,
title: '图标选择'
});
}
function icon_select(filename) {
document.getElementById("result").src = "resource/base/theme/public/img/icon/" + filename;
document.applicationForm.ico.value = "resource/base/theme/public/img/icon/" + filename;;
}
function bigicon_select(filename) {
document.getElementById("resultbig").src = "resource/base/theme/public/img/bigicon/" + filename;
document.applicationForm.bigico.value = "resource/base/theme/public/img/bigicon/" + filename;
}
function changeCode(v) {
document.applicationForm.appcode.value = $MT.makePY(v);
document.applicationForm.apptitle.value = v;
}
function MenucreatePopup_largeicon(obj) {
win({
url: '${basePath}/pages/admin/application/largeiconSelect.jsp',
width: 500,
height: 200,
title: '图标选择'
});
}
function largeicon_select(filename) {
document.getElementById("resultlarge").src = "resource/base/theme/public/img/largeicon/" + filename;
document.applicationForm.largeico.value = "resource/base/theme/public/img/largeicon/" + filename;
}
function subform() {
$.msgBar({
type: 'info',
text: "正在保存数据",
position: 'bottom-center',
lifetime: 3000
});
XqTipOpen("正在保存数据,请稍后");
document.applicationForm.submit();
}

function addFile(fileName, fileCount) {
if ("accfrmApple" == fileName) {
$("#apple").show();
$("#apple2").show();
applicationForm.rules["applekey"].valid = "yes";
} else if ("accfrmAndroid" == fileName) {
$("#android").show();
$("#android2").show();
applicationForm.rules["androidkey"].valid = "yes";
}
}
function delFile(fileName, fileCount) {
if ("accfrmApple" == fileName) {
$("#apple").hide();
$("#apple2").hide();
applicationForm.rules["applekey"].valid = "no";
if (applicationForm.rules["applekey"].ele) applicationForm.rules["applekey"].ele.value = "";
} else if ("accfrmAndroid" == fileName) {
$("#android").hide();
$("#android2").hide();
applicationForm.rules["androidkey"].valid = "no";
if (applicationForm.rules["androidkey"].ele) applicationForm.rules["androidkey"].ele.value = "";
}
}

function initFile(fileName, fileCount) {
if (fileCount > 0) {
addFile(fileName, fileCount);
} else {
delFile(fileName, fileCount);
}
}
</script>
</head>
<body>
<html:form action="/applicationSaveAction.do?action=${param.action}" styleId="applicationForm">
<html:hidden property="appid" />
<html:hidden property="orderno" />
<input type="hidden" name="isSaveAndAdd" id="isSaveAndAdd" value="${isSaveAndAdd }" />
<table width="100%" border="0" cellspacing="0" cellpadding="0" class="list-tables">
<tr>
<td width="30%" class="list-lhead">
<font color="red">*</font>名字:
</td>
<td>
<html:text property="appname" size="32" onchange="changeCode(this.value);" maxlength="32" />
</td>
</tr>
<tr>
<td class="list-lhead">
<font color="red">*</font>编码:
</td>
<td>
<html:text property="appcode" readonly="true" size="32" maxlength="32" />
</td>
</tr>
<tr>
<td width="30%" class="list-lhead">
<font color="red">*</font>简称:
</td>
<td>
<html:text property="simplyname" size="32" maxlength="4" />
</td>
</tr>
<tr>
<td class="list-lhead">
<font color="red">*</font>首页:
</td>
<td>
<html:text property="index" size="32" maxlength="400" />
</td>
</tr>
<tr>
<td class="list-lhead">
小图标:
</td>
<td title="${applicationForm.ico}">
 
<img src="<c:if test="${applicationForm.ico==null}">resource/base/theme/public/img/icon/001.png</c:if><c:if test="${applicationForm.ico != null}">${applicationForm.ico}</c:if>" id="result"
onclick="MenucreatePopup_icon(this);" />
  点击图片可以选择
<c:if test="${applicationForm.ico==null}">
<html:hidden property="ico" value="resource/base/theme/public/img/icon/001.png" />
</c:if>
<c:if test="${applicationForm.ico != null}">
<html:hidden property="ico" value="${applicationForm.ico}" />
</c:if>
</td>
</tr>
<tr>
<td class="list-lhead">
大图标:
</td>
<td title="${applicationForm.bigico}">
 
<img
src="<c:if test="${applicationForm.bigico==null}">resource/base/theme/public/img/bigicon/001.png</c:if>
<c:if test="${applicationForm.bigico != null}">${applicationForm.bigico}</c:if>"
id="resultbig" onclick="MenucreatePopup_bigicon(this);" />
  点击图片可以选择
<c:if test="${applicationForm.bigico==null}">
<html:hidden property="bigico" value="resource/base/theme/public/img/bigicon/001.png" />
</c:if>
<c:if test="${applicationForm.bigico != null}">
<html:hidden property="bigico" value="${applicationForm.bigico}" />
</c:if>
</td>
</tr>
<tr>
<td class="list-lhead">
超大图标:
</td>
<td title="${applicationForm.largeico}">
 
<img
src="<c:if test="${applicationForm.largeico==null}">resource/base/theme/public/img/largeicon/001.png</c:if>
<c:if test="${applicationForm.largeico != null}">${applicationForm.largeico}</c:if>"
id="resultlarge" onclick="MenucreatePopup_largeicon(this);" />
  点击图片可以选择
<c:if test="${applicationForm.largeico==null}">
<html:hidden property="largeico" value="resource/base/theme/public/img/largeicon/001.png" />
</c:if>
<c:if test="${applicationForm.largeico != null}">
<html:hidden property="largeico" value="${applicationForm.largeico}" />
</c:if>
</td>
</tr>
<tr>
<td class="list-lhead">
apple证书:
</td>
<td>
<iframe name="accfrmApple" width="100%" height="100" scrolling="auto" frameborder="0"
src="${basePath}/accessories.do?action=show&type=cert&isManager=true&itemId=${applicationForm.appid}_ipad&appName=${contextPath }&maxCount=1&path=/cert/">
</iframe>
</td>
</tr>
<tr id="apple">
<td class="list-lhead">
<font color="red">*</font>apple证书密钥:
</td>
<td>
<html:text property="applekey" size="32" maxlength="400" />
</td>
</tr>
<tr id="apple2">
<td class="list-lhead">
<font color="red">*</font>是否开发版:
</td>
<td>
<html:select property="applekf">
<html:option value="1">是</html:option>
<html:option value="0">否</html:option>
</html:select>
</td>
</tr>
<tr>
<td class="list-lhead">
android证书:
</td>
<td>
<iframe name="accfrmAndroid" width="100%" height="100" scrolling="auto" frameborder="0"
src="${basePath}/accessories.do?action=show&type=cert&isManager=true&itemId=${applicationForm.appid}_android&appName=${contextPath }&maxCount=1&path=/cert/">
</iframe>
</td>
</tr>
<tr id="android">
<td class="list-lhead">
<font color="red">*</font>android证书密钥:
</td>
<td>
<html:text property="androidkey" size="32" maxlength="400" />
</td>
</tr>
<tr id="android2">
<td class="list-lhead">
<font color="red">*</font>是否开发版:
</td>
<td>
<html:select property="androidkf">
<html:option value="1">是</html:option>
<html:option value="0">否</html:option>
</html:select>
</td>
</tr>
<c:forEach items="${list}" var="item">
<tr>
<td class="list-lhead">
${item.schemaname }LOGO:
</td>
<td>
<iframe name="accfrm${item.folder }" width="100%" height="100" scrolling="auto" frameborder="0"
src="${basePath}/accessories.do?action=show&type=image&isManager=true&itemId=${applicationForm.appid}_${item.folder }&appName=${contextPath }&maxCount=1&showAsImg=1&path=/resource/logo/${item.folder }/">
</iframe>
</td>
</tr>
</c:forEach>
</table>
</html:form>
</body>
</html:html>




显示到首页就不显示了,为啥呢!
...全文
180 1 打赏 收藏 转发到动态 举报
写回复
用AI写文章
1 条回复
切换为时间正序
请发表友善的回复…
发表回复
sdliubo 2011-12-02
  • 打赏
  • 举报
回复
看看后台是不是出错了,在页面是点右键看看HTML源代码,源代码是不是都生成了?

67,513

社区成员

发帖
与我相关
我的任务
社区描述
J2EE只是Java企业应用。我们需要一个跨J2SE/WEB/EJB的微容器,保护我们的业务核心组件(中间件),以延续它的生命力,而不是依赖J2SE/J2EE版本。
社区管理员
  • Java EE
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧