Topic: JAVA类的引用的问题 请教

  Print this page

1.JAVA类的引用的问题 请教 Copy to clipboard
Posted by: athen
Posted on: 2005-04-18 01:35

<%@ page contentType="text/html;charset=GB2312" %>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<meta name="GENERATOR" content="Microsoft FrontPage 4.0">
<meta name="ProgId" content="FrontPage.Editor.Document">
<%@ page language="java" import="java.util.*" %>
<%@ page import="java.math.*" %>
<%@ page import="java.lang.*" %>
<%@ page import="java.io.*" %>
<%@ page import="cart.*" %>
<html>
<head>
<title>
cartform
</title>
</head>
<jsp:useBean id="bean0" scope="session" class="cart.Cart" />
<%
String loginInfo="欢迎你";
int result= Cart.
if(result==1)
      loginInfo="登录成功!欢迎你";
    else
      loginInfo="登录失败!";

%>
<body bgcolor="#ffffff">
<h1>
用户提交实验
</h1>
<form method="POST" action="cartform.jsp">
<br><br>
<tr bgcolor="pink"><td>登录</td></tr>
<tr><td>用户名:<input type="text" name="userName" size="10"></td></tr>
<tr><td>密  码:<input type="text" name="userPassword" size="10"></td></tr>
<input type="submit" name="提交" value="Submit">
<input type="reset" value="重置">
<hr>bean0<br>
<hr><br>
</form>
<%=loginInfo%>
</body>
</html>

2.Re:JAVA类的引用的问题 请教 [Re: athen] Copy to clipboard
Posted by: why
Posted on: 2005-04-18 05:45

What is your 问题? Question


   Powered by Jute Powerful Forum® Version Jute 1.5.6 Ent
Copyright © 2002-2021 Cjsdn Team. All Righits Reserved. 闽ICP备05005120号-1
客服电话 18559299278    客服信箱 714923@qq.com    客服QQ 714923