课程引言课后作业1

本文介绍了网站系统开发所需的核心技术,包括Java语言、环境配置、网页脚本语言等,并提供了一个具体的登录页面示例代码,展示了如何进行基本的用户验证。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

1.网站系统开发需要掌握的技术。

  Java语言、环境配置、网页脚本语言、数据库、应用服务器。

2.课堂测试源代码。

<%@ page language="java" import="java.util.*" pageEncoding="ISO-8859-1"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>
 

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <base href="<%=basePath%>">
    
    <meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
    <meta http-equiv="description" content="this is my page">
    <meta http-equiv="content-type" content="text/html; charset=UTF-8">
    <script type="text/javascript">
        function login(){
        var username=document.getElementById("username").value;
        var password=document.getElementById("password").value;
        if(username==""||username==null){
            document.getElementById("umess").innerHTML="username is null";
            return;
        }
        if(password==""||password==null){
            document.getElementById("pmess").innerHTML="password is null";
            return;
        }
        if(username=="admin"&&password=="admin"){
            alert(username+"success");
            window.open("loginsuccess.html");
        }else{
            alert("error");
        }
        }
        function exit(){
        window.close();
}
</script>
</head>

<body>
<div>
<form action="" method="post">
<table border=1 align="center">
<tr align="center"><td colspan="3">login</td></tr>
<tr>
<td>username:</td><td><input type="text" id="username" name="username"/></td><td id="umess"></td>
</tr>
<tr>
<td>password:</td><td><input type="password" id="password" name="password"/></td><td id="pmess"></td>
</tr>
<tr align="center">
<td colspan="3">
<input type="button" value="login" onclick="login();"/>
<input type="button" value="cancel" onclick="exit();"/>
</td>
</tr>
</table>
</form>
</div>
</body>
</html>

3.截图

 

 

4.为什么没能及时完成

  寒假没有把足够的时间放在这件事上,是对自己的一种不负责任,将会反省自察。

5.对这门课的希望以及自己的目标。

  写出一个可用的的软件。 充分理解软件工程的含义,对开发一个软件从小到大的流程有一个具体的认识,锻炼自己的沟通能力。

转载于:https://www.cnblogs.com/a1264393659/p/5228421.html

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值