问一下关于JSP登录窗口的问题

来源:百度知道 编辑:UC知道 时间:2024/06/19 03:59:42
目前我们一段登录窗口的代码,是JSP文件,以下是我们登录代码
<form method="POST" action="/auth/authAction.do" onsubmit="return onsubmit_login(this)"">
<input type="hidden" name="becom_auth_url" value="#">
<input type="hidden" name="becom_auth_key" value="<%=session.getId()%>">
<input type="hidden" name="becom_auth_logining" value="1">

<table width="100%" border="0" align="center" cellpadding="6" cellspacing="0">
<tr>
<td align="right">
<input type="hidden" name="becom_auth_logining" value="1">
用户名</td>
<td><input name="becom_auth_username" maxlength="100" type="text" style="width:60"></td>
<t

写在action指定的跳转页面,先获取到登陆用户的用户名:
<%
String name = request.getParameter("becom_auth_username");
%>
然后在要提示的地方这样写:

欢迎<%=name%>用户,修改密码 退出登录

<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@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>
<link href="<c:url value='/css/style.css'/>" rel="stylesheet" type="text/css">

这里是你登陆进来的主界面,leftframe是你进入后左边显示的页面
rightframe是你进入后右边显示的页面
</HEAD>
<FR