friendlinkInsert.jsp
上传用户:yatiankong
上传日期:2014-05-16
资源大小:5604k
文件大小:1k
源码类别:

Applet

开发平台:

Java

  1. <%@ page contentType="text/html;charset=GBK"%>
  2. <%@ page import="java.sql.*"%>
  3. <%
  4.   request.setCharacterEncoding("GB2312");
  5. %>
  6. <jsp:useBean id="friendlinkBean" class="MyFly.Bean.friendlinkBean" scope="request"/>
  7. <body bgcolor="#799ae1">
  8. <%
  9. String topic=request.getParameter("topic");
  10. String originURL=request.getParameter("originURL");
  11. friendlinkBean.setTopic(topic);
  12. friendlinkBean.setOriginURL(originURL);
  13. if(friendlinkBean.addNew() == 1)
  14. {
  15.      out.println("<script language=javascript>location.href='friendlinkView.jsp';</script>");
  16.  
  17. }
  18. else
  19. {
  20.    out.println("<Script language=JavaScript>alert('添加失败,请重新添加');JavaScript:history.back();</Script>");
  21. }
  22. %>
  23. </body>