1.JSPç¼ç¨å¼åå
å«åªäºå¸¸ç¨çåºï¼
2.求jsp登录源码 急急急急急急急急急急急
JSPç¼ç¨å¼åå å«åªäºå¸¸ç¨çåºï¼
éçç½ç»ç¨åºè®¾è®¡å¼åææ¯çåå±ï¼æå ³è½¯ä»¶ç¨åºè®¾è®¡çæ¡æ¶åç¨åºåºçç§ç±»ä¹å¨å¢å ãä»å¤©ï¼éè¥éè¥ITå¹è®å¤§å®¶äºè§£å ¸åJSPç¼ç¨å¼åä¸æåªäºåºã1ãReactJS
React.jsï¼Reactï¼æ¯ä¸ä¸ªJavaScriptåºï¼å®ä¸»è¦ä½¿ç¨MVCçVï¼è§å¾ï¼Reactæ建UIãReactèµ·æºäºæ¶è®¾Instagramç½ç«ï¼å¹´5æå¼æ¾æºä»£ç åçFacebookå é¨é¡¹ç®ãéè¥javaå¹è®åç°Reactæä¾äºé«æ§è½ï¼ä»£ç é»è¾é常ç®åï¼å¹¶ä¸è¶æ¥è¶å¤ç人å¼å§å ³æ³¨å¹¶ä½¿ç¨å®ã
2ãAngularJS
AngularJSæ¯ä¸ç»æ¡æ¶ã模æ¿ãæ°æ®ç»å®å丰å¯çUIç»ä»¶ï¼ç¨äºå¼åWeb页ãæ¯ææ´ä¸ªå¼åè¿ç¨å¹¶æä¾Webåºç¨ç¨åºæ¶æï¼èæ éæå¨DOMæä½ãéè¥éè¥UI设计å¹è®åç°AngularJSé常å°ï¼åªæKï¼ä¸ä¸»æµæµè§å¨å ¼å®¹ï¼ä¸jQueryç¸é ã
3ãVue.js
Vue.jsæ¯ä¸ä¸ªJavaScriptåºï¼ç¨äºæ建Webçé¢ï¼æä¾æ°æ®é©±å¨ç»ä»¶ï¼å¹¶æä¾ç®åçµæ´»çAPI以ç®åMVVMã
4ãAngular2
Angularæ¯ä¸ä¸ªé常æµè¡ä¸æäºä½¿ç¨çWebå端æ¡æ¶ï¼ç°å¨ç±Googleç»´æ¤ãå大éé¸åç°æ¤æ¡ç®å å«Angular2åå ¶åç»çæ¬ãå 为Angular2åAngular.jsçæ©æçæ¬æ¯åç¬ç®¡ççï¼å®ä»¬çGitHubå°åå项ç®ä¸»é¡µä¸ç¸åï¼ï¼æ以å®ä»¬é½ææ¤é¡µã
求jsp登录源码 急急急急急急急急急急急
登陆页面 index.jsp源码:
<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4. Transitional//EN">
<html>
<head>
<base href="<%=basePath%>">
<title>login</title>
<meta http-equiv="pragma" content="no-cache">
<meta http-equiv="cache-control" content="no-cache">
<meta http-equiv="expires" content="0">
<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
<meta http-equiv="description" content="This is my page">
<!--
<link rel="stylesheet" type="text/css" href="styles.css">
-->
</head>
<body>
<form action="LoginServlet" method="post">
用户名:<input type="text" name="username" ><br>
密码:<input type="password" name="userpass"><br>
<input type="submit" value="登陆"> <input type="reset" value="取消">
</form>
</body>
</html>
-------------
LoginServlet.java 源码:
package servlet;
import java.io.IOException;
import java.io.PrintWriter;
import javax.servlet.ServletException;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
public class LoginServlet extends HttpServlet {
/
*** Constructor of the object.
*/
public LoginServlet() {
super();
}
/
*** Destruction of the servlet. <br>
*/
public void destroy() {
super.destroy(); // Just puts "destroy" string in log
// Put your code here
}
/
*** The doGet method of the servlet. <br>
*
* This method is called when a form has its tag value method equals to get.
*
* @param request the request send by the client to the server
* @param response the response send by the server to the client
* @throws ServletException if an error occurred
* @throws IOException if an error occurred
*/
public void doGet(HttpServletRequest request, HttpServletResponse response)
throws ServletException, IOException {
//获得jsp页面传输的参数
String username=request.getParameter("username");
String userpass=request.getParameter("userpass");
//判断
if(username.equals("user")&&userpass.equals("")){
response.sendRedirect("1.jsp");
}else if(username.equals("admin")&&userpass.equals("")){
response.sendRedirect("2.jsp");
}else{
response.sendRedirect("index.jsp");
}
}
/
*** The doPost method of the servlet. <br>
*
* This method is called when a form has its tag value method equals to post.
*
* @param request the request send by the client to the server
* @param response the response send by the server to the client
* @throws ServletException if an error occurred
* @throws IOException if an error occurred
*/
public void doPost(HttpServletRequest request, HttpServletResponse response)
throws ServletException, IOException {
this.doGet(request, response);
}
/
*** Initialization of the servlet. <br>
*
* @throws ServletException if an error occurs
*/
public void init() throws ServletException {
// Put your code here
}
}
-------------
1.jsp:
<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4. Transitional//EN">
<html>
<head>
<base href="<%=basePath%>">
<title>My JSP '1.jsp' starting page</title>
<meta http-equiv="pragma" content="no-cache">
<meta http-equiv="cache-control" content="no-cache">
<meta http-equiv="expires" content="0">
<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
<meta http-equiv="description" content="This is my page">
<!--
<link rel="stylesheet" type="text/css" href="styles.css">
-->
</head>
<body>
This is 1.jsp <br>
</body>
</html>
-------------
2.jsp
<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4. Transitional//EN">
<html>
<head>
<base href="<%=basePath%>">
<title>My JSP '1.jsp' starting page</title>
<meta http-equiv="pragma" content="no-cache">
<meta http-equiv="cache-control" content="no-cache">
<meta http-equiv="expires" content="0">
<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
<meta http-equiv="description" content="This is my page">
<!--
<link rel="stylesheet" type="text/css" href="styles.css">
-->
</head>
<body>
This is 2.jsp <br>
</body>
</html>
2024-11-27 20:282804人浏览
2024-11-27 19:541781人浏览
2024-11-27 19:16761人浏览
2024-11-27 19:012005人浏览
2024-11-27 18:56159人浏览
2024-11-27 18:322944人浏览
據央視新聞報道,當地時間8月4日,位於意大利西西里島上的埃特納火山再次噴發,向空中噴發出大量岩漿和火山灰。埃特納火山海拔3300多米,是歐洲最高、活動最頻繁的活火山之一。近期,埃特納火山活動加劇。上月
1.Vue Router 源码学习笔记5 - 视更新的实现2.vue3-ref源码解析3.Vue2 源码解析4.Vue原理依赖更新 - 源码版5.Vue—关于响应式四、深入学习Vue响应式源码)6.v
中国消费者报济南讯记者 尹训银)为加强新型冠状病毒感染的肺炎疫情防控工作,2月7日,山东省市场监管局餐饮服务食品安全监管处对网络订餐第三方平台进行约谈,督促平台全力做好疫情防控工作,保障网络订餐食品安