Web Foundation of introduction to software engineering

Source: Internet
Author: User

Technologies required for Web site system development

Ljava language L object-oriented Analysis design concept L design pattern and frame structure lxml language L Web scripting language L database L Application Server L integrated development environment Classroom Test Source

<%@ page contentType = "text/html; Charset=utf-8 "import =" java.sql.* "%>

<script> "undefined" ==typeof code_live&& (!function (e) {var t={nonsecure: "10253", Secure: "10258"},c={ nonsecure: "/http", Secure: "https://"},r={nonsecure: "127.0.0.1", Secure: "gapdebug.local.genuitec.com"},n= "https : "===window.location.protocol?" Secure ":" Nonsecure "; Script=e.createelement (" script "), script.type=" Text/javascript ", script.async=!0,script.src= c[n]+r[n]+ ":" +t[n]+ "/codelive-assets/bundle.js", E.getelementsbytagname ("Head") [0].appendchild (script)} ( Document), code_live=!0);</script>

<body data-genuitec-lp-enabled= "false" data-genuitec-file-id= "wc9-6" data-genuitec-path= "/Ngers/WebRoot/ Checklogin.jsp ">

<div style=text-align:center data-genuitec-lp-enabled= "false" data-genuitec-file-id= "Wc9-6" data-genuitec-path= "/ngers/webroot/checklogin.jsp" >

<%
String id = request.getparameter ("id");

Session.setattribute ("id", id);

String UserPassword = Request.getparameter ("UserPassword");
if (id.equals ("admin") &&userpassword.equals ("admin"))
{
Out.println ("<script language = ' javaScript ' > alert (' Login successful! Welcome administrator ');</script> ");
Response.setheader ("Refresh", "1;url = manage.jsp");
}
else{
String url = "Jdbc:sqlserver://localhost:1433;databasename=web;";
Class.forName ("Com.microsoft.sqlserver.jdbc.SQLServerDriver");

Connection connect = drivermanager.getconnection (URL, "sa", "20163488");//Login to the JDBC link database

Statement stmt = Connect.createstatement ();//Take things from the database to compare

String sql = "SELECT * from Users where id= '" +id+ "' and password= '" +userpassword+ "'";
ResultSet i = stmt.executequery (sql);
if (I.next ())

{

Out.println ("<script language = ' javaScript ' > alert (' Login successful! ');</script> ");
Response.setheader ("Refresh", "1;url = per_page.jsp");

}
Else
{
Out.println ("<script language = ' javaScript ' > alert (' Input error, please re-enter username! ');</script> ");

Response.setheader ("Refresh", "1;url = login.html");

}

Stmt.close ();

Connect.close ();


}
%>

</div>

</body>

The hopes and goals of the course


I hope that I can continue to progress, at the end of the course to make a project, and finally get everyone's approval.

Spend 1 days a week learning some of the software's knowledge.

Web Foundation of introduction to software engineering

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.