⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 docheck.jsp

📁 一个EJB项目
💻 JSP
字号:
<%@page contentType="text/html"%><%@page pageEncoding="UTF-8"%><%--The taglib directive below imports the JSTL library. If you uncomment it,you must also add the JSTL library to the project. The Add Library... actionon Libraries node in Projects view can be used to add the JSTL 1.1 library.--%><%--<%@taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%> --%><!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"   "http://www.w3.org/TR/html4/loose.dtd"><html>    <head>        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">        <title>JSP Page</title>    </head>    <body>    <h1>JSP Page</h1>        <%@ page import="javax.naming.*,javax.ejb.*, newpackage.*, newpackage.CheckRemote.*"%><%         newpackage.CheckRemote check = null;      boolean result;    InitialContext ic = new InitialContext();    check = (newpackage.CheckRemote)ic.lookup(newpackage.CheckRemote.class.getName());   String name =(String)request.getParameter("username");   String pwd=(String)request.getParameter("password");   result=check.check(name,pwd);if(result){    out.println("用户登录成功!");} else    out.println("用户登录失败!"); %>        </body></html>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -