package org.apache.jsp;
import javax.servlet.*;
import javax.servlet.http.*;
import javax.servlet.jsp.*;
import java.util.ArrayList;
import com.aptech.news.view.FirstLevelTitle;
import com.aptech.news.DAO.FirstLevelTitleDbOperation;
public final class secondTitle_jsp extends org.apache.jasper.runtime.HttpJspBase
implements org.apache.jasper.runtime.JspSourceDependent {
private static java.util.Vector _jspx_dependants;
public java.util.List getDependants() {
return _jspx_dependants;
}
public void _jspService(HttpServletRequest request, HttpServletResponse response)
throws java.io.IOException, ServletException {
JspFactory _jspxFactory = null;
PageContext pageContext = null;
HttpSession session = null;
ServletContext application = null;
ServletConfig config = null;
JspWriter out = null;
Object page = this;
JspWriter _jspx_out = null;
PageContext _jspx_page_context = null;
try {
_jspxFactory = JspFactory.getDefaultFactory();
response.setContentType("text/html; charset=GBK");
pageContext = _jspxFactory.getPageContext(this, request, response,
null, true, 8192, true);
_jspx_page_context = pageContext;
application = pageContext.getServletContext();
config = pageContext.getServletConfig();
session = pageContext.getSession();
out = pageContext.getOut();
_jspx_out = out;
out.write("\r\n");
out.write("\r\n");
out.write("\r\n");
out.write("\r\n");
ArrayList list = new FirstLevelTitleDbOperation().getAllFirstLevelTitleList();
out.write("\r\n");
out.write("<script language =\"JavaScript\" type=\"\">\r\n");
out.write("function checkTitleFile(){\r\n");
out.write(" if(form1.titlename.value ==null || form1.titlename.value==\"\"){\r\n");
out.write(" alert(\"请输入二级标题!\");\r\n");
out.write(" return false;\r\n");
out.write(" }\r\n");
out.write(" if(form1.filepath.value ==null || form1.filepath.value==\"\"){\r\n");
out.write(" alert(\"请指定对应文件路径!\");\r\n");
out.write(" return false;\r\n");
out.write(" }\r\n");
out.write(" return true;\r\n");
out.write("}\r\n");
out.write("</script>\r\n");
out.write("<HTML>\r\n");
out.write("<HEAD>\r\n");
out.write("<TITLE></TITLE>\r\n");
out.write("</HEAD>\r\n");
out.write("<BODY BGCOLOR=\"#FFFFFF\">\r\n");
out.write("<h1 align=\"center\"> </h1>\r\n");
out.write("<h1 align=\"center\"><font size=\"4\">二级标题及文件位置发布</font></h1>\r\n");
out.write("<h1 align=\"center\"> </h1>\r\n");
out.write("<form name=\"form1\" method=\"post\" action=\"/web/secondleveltitlepublishservlet\" >\r\n");
out.write(" <table width=\"100%\" border=\"0\" cellspacing=\"1\" cellpadding=\"0\">\r\n");
out.write(" <tr>\r\n");
out.write(" <td width=\"42%\" height=\"29\">\r\n");
out.write(" <div align=\"right\">一级标题:</div>\r\n");
out.write(" </td>\r\n");
out.write(" <td width=\"17%\" valign=\"middle\" align=\"right\" height=\"29\">\r\n");
out.write(" <div align=\"left\">\r\n");
out.write(" <select name=\"parenttitle\">\r\n");
out.write(" ");
if(list.size()>0){
for(int i=0;i<list.size();i++){
FirstLevelTitle fTitle = (FirstLevelTitle)list.get(i);
out.write("\r\n");
out.write(" <option value=\"");
out.print(fTitle.getId());
out.write('"');
out.write('>');
out.print(fTitle.getTitleName());
out.write("</option>\r\n");
out.write(" ");
}}
out.write("\r\n");
out.write(" </select>\r\n");
out.write(" </div>\r\n");
out.write(" </td>\r\n");
out.write(" <td width=\"41%\" valign=\"middle\" align=\"right\" height=\"29\"> </td>\r\n");
out.write(" </tr>\r\n");
out.write(" <tr>\r\n");
out.write(" <td width=\"42%\">\r\n");
out.write(" <div align=\"right\">二级标题:</div>\r\n");
out.write(" </td>\r\n");
out.write(" <td width=\"17%\" align=\"right\">\r\n");
out.write(" <div align=\"left\">\r\n");
out.write(" <input type=\"text\" name=\"titlename\" size=\"20\" value=\"\">\r\n");
out.write(" </div>\r\n");
out.write(" </td>\r\n");
out.write(" <td width=\"41%\" align=\"right\"> </td>\r\n");
out.write(" </tr>\r\n");
out.write(" <tr>\r\n");
out.write(" <td width=\"42%\">\r\n");
out.write(" <div align=\"right\">文件位置: </div>\r\n");
out.write(" </td>\r\n");
out.write(" <td width=\"17%\" align=\"right\">\r\n");
out.write(" <input type=\"file\" name=\"filepath\">\r\n");
out.write(" </td>\r\n");
out.write(" <td width=\"41%\" align=\"right\"> </td>\r\n");
out.write(" </tr>\r\n");
out.write(" <tr>\r\n");
out.write(" <td width=\"42%\"> </td>\r\n");
out.write(" <td width=\"17%\" align=\"right\">\r\n");
out.write(" <div align=\"left\">\r\n");
out.write(" <input type=\"submit\" name=\"Submit2\" value=\"确定\"onClick =\"return checkTitleFile()\">\r\n");
out.write(" <input type=\"reset\" name=\"Reset\" value=\"重置\">\r\n");
out.write(" </div>\r\n");
out.write(" </td>\r\n");
out.write(" <td width=\"41%\" align=\"right\"> </td>\r\n");
out.write(" </tr>\r\n");
out.write(" </table>\r\n");
out.write(" <p align=\"center\">(二级标题最好与新闻稿件标题一致)</p>\r\n");
out.write(" <p align=\"center\"> </p>\r\n");
out.write(" <p align=\"center\"><font face=\"隶书\" size=\"4\">注意:发布前请认真检查输入的内容是否正确</font><font face=\"隶书\">。</font></p>\r\n");
out.write(" </form>\r\n");
out.write("\r\n");
out.write("<p> </p></BODY>\r\n");
out.write("</HTML>\r\n");
} catch (Throwable t) {
if (!(t instanceof SkipPageException)){
out = _jspx_out;
if (out != null && out.getBufferSize() != 0)
out.clearBuffer();
if (_jspx_page_context != null) _jspx_page_context.handlePageException(t);
}
} finally {
if (_jspxFactory != null) _jspxFactory.releasePageContext(_jspx_page_context);
}
}
}
没有合适的资源?快使用搜索试试~ 我知道了~
资源详情
资源评论
资源推荐
收起资源包目录
struts架构的jsp新闻发布系统 (847个子文件)
news_jsp.class 6KB
secondTitle_jsp.class 6KB
ServiceAdd.class 5KB
firstTitle_jsp.class 5KB
SecondLevelTitleDbOperation.class 4KB
ServiceLogin.class 4KB
FirstLevelTitleDbOperation.class 4KB
index_jsp.class 3KB
secondTitle_005fOk_jsp.class 3KB
OneTitle_005fOk_jsp.class 3KB
left_jsp.class 3KB
welcome_jsp.class 3KB
ServletAddSecondTitle.class 3KB
SecondLevelTitlePublishServlet.class 3KB
ServletLogin.class 3KB
top_jsp.class 3KB
FirstLevelTitlePublishServlet.class 3KB
ServleAddAdmin.class 3KB
ServletAddFristTitle.class 2KB
ServletDeleteAdmin.class 2KB
ServletSecondName.class 2KB
DBConn.class 2KB
ServletadminList.class 2KB
SecondLevelTitle.class 2KB
ServletParentTitelname.class 2KB
SecondLevelTitle.class 2KB
FilterChat.class 2KB
MD5.class 1KB
DBManager.class 1KB
FirstLevelTitle.class 1KB
FirstLevelTitle.class 1KB
userInfo.class 1015B
ServletAddFrist.class 986B
FirsrtLevelTitlePublishServlet.class 367B
style.css 9KB
style.css 9KB
style.css 9KB
style.css 9KB
style.css 6KB
style-1.css 580B
linkstyle.css 164B
Thumbs.db 86KB
Thumbs.db 62KB
Thumbs.db 56KB
Thumbs.db 17KB
Thumbs.db 8KB
Thumbs.db 5KB
Thumbs.db 5KB
Thumbs.db 5KB
main-1.gif 290KB
banner.gif 89KB
banner1.gif 62KB
banner1_03.gif 48KB
banner_03.gif 48KB
head.gif 40KB
Img225715842.gif 35KB
login.gif 19KB
marvin2-green.css.gif 17KB
27114768.gif 16KB
27114773.gif 14KB
27114773.gif 14KB
27114773.gif 14KB
27114773.gif 14KB
27114773.gif 14KB
27114773.gif 14KB
21399_585-50.gif 14KB
banner1_01.gif 12KB
banner_01.gif 12KB
22911_120x320.gif 11KB
22911_120x320.gif 11KB
22911_120x320.gif 11KB
22911_120x320.gif 11KB
22911_120x320.gif 11KB
Img225903165.gif 11KB
51754.gif 10KB
51754.gif 10KB
51754.gif 10KB
51754.gif 10KB
88576.gif 10KB
88576.gif 10KB
88576.gif 10KB
88576.gif 10KB
36178.gif 9KB
36178.gif 9KB
36178.gif 9KB
36178.gif 9KB
36178.gif 9KB
99455.gif 9KB
99455.gif 9KB
99455.gif 9KB
99455.gif 9KB
login_1.gif 9KB
sms_flinders11.gif 9KB
sms_flinders11.gif 9KB
sms_flinders11.gif 9KB
sms_flinders11.gif 9KB
sms_flinders11.gif 9KB
60155.gif 9KB
60155.gif 9KB
60155.gif 9KB
共 847 条
- 1
- 2
- 3
- 4
- 5
- 6
- 9
yangwlz
- 粉丝: 1
- 资源: 3
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功
评论0