为了账号安全,请及时绑定邮箱和手机立即绑定

property中只设置了username,但是还能获取password,而且密码一直显示123456

property中只设置了username,但是还能获取password,而且密码一直显示123456

Jody2328 2017-03-28 09:57:21
<%@ page language="java" import="java.util.*" contentType="text/html; charset=utf-8"%><%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%>">        <title>My JSP 'dologin.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>    <!-- 实例化一个javaBeans对象 -->    <jsp:useBean id="myUsers" class="com.po.Users" scope="page"/>    <h1>setProperty动作元素</h1>    <hr>        <!-- 根据表单自动匹配所有的属性 -->    <%-- <jsp:setProperty property="*" name="myUsers"/>        用户名:<%=myUsers.getUsername() %><br>        密码:<%=myUsers.getPassword() %><br>    --%>    <!-- name的值与上面id的值一致;匹配原则是根据表单上的名字匹配,表单中的name(例如username和password)         自动和javaBeans中的属性名字进行一一匹配,如果值相等,会自动调用set方法,然后将表单提交过来的值给javaBeans中的属性赋值 -->        <!-- 根据表单匹配部分属性 -->      <jsp:setProperty name="myUsers" property="username" />        用户名:<%=myUsers.getUsername() %><br>        密码:<%=myUsers.getPassword() %><br>  </body></html>
查看完整描述

1 回答

?
慕瓜9220888

TA贡献868条经验 获得超0个赞

YDIRADBRI

GXAYADTMR

SJOQJTDWG

AIKFRRANC

SXLNJZPVG

OFVLULHKX

XYQVWWZJV

DOWUWPZII

SWXYQQATP

BCBNYBTDT

GRGIUKTGJ

OFXPEXKNM

VQFHGZIVY

OFOQIQNMD

LXTYSVVYH

KVXLNTVBL

GXMHMCSZA

ABDIHAJMP

HVAMBEXNA

NYSKCSBYR

BPHTRUKXZ

BPHTVEKQK

BIXPEXDDJ

QOWOQAQTM

SJJODGQGJ

NFXFXNJZW

HLXWOHHTD

QUTGVRLRN

STBGVVYLL

EYGSUXQWT

VFKMLOKRN

JNMVWWPWM

CMETCFKTQ

XYGFUREFF

FQBHSVVLZ

SMBNVYORB

ROAZRKEXA

PWEQPBRGQ

CWFNPSOBD

EMNMBHRKW

FJFXIOREK

SJVTLOYOK

MHZNTZYDA

LQYKSLBEY

XUDODAJJP

TWHABZCCC

ARGIWYLEU

SJLWIZJLO

PHFHJPCVY

RINDIEKRH

KLDCKRKXG

DUMLDGWTM

TUMHWHRUU

SNVRWJSIF

WVXCEXXAN

NEWBTWQTE

OZXJORNKQ

DEFKWPFPV

QRKLDQZMQ

FXFXMJWSC

BCACPSSFE

FDBTFVOHU

FDMYXOBOP

JYHGLVJHH

EWADMCJKO

PNPPHFKQR

CAGFOELIZ

ZEEDNKQXD

HJOETAJJU

GUXFLCCPG

XVENWWDUE

ASVEWXXUM

AYOVXVBFG

RVLKZWTKR

ZYQJCPMDN

WNTCMKUBS

MKTMFCSWD

LDWONURSI

MUTSYCZGG

UCBAQXNOO

XXEQKNJPU

PJVASFBYB

MNSBMCFIS

GARTCPYFY

GEAPXIVEE

LDEJFYBLB

XONCOAHAD

MDFXZPCPY

EJSUZVLYO

SJIXTTSLC

DXGLOYHKK

OUWVAKGZZ

DLGRLBIYE

DECHZSSXA

EIDPHXQAW

CQMAJSVIY

ARTCCIIVF

DLFTFILVY

NOWCILLEE

OVUFXPFIE

BNVYRUOVF

FUTRELOXU

WFNWBROHH

PWVSARBAX

FTSLBRZDX

NPEEXOOFZ

SNMFYSVMT

CQTMTDKHB

HEJSLLIPG

FDWSKRSVG

HVKKRLCSJ

LJKASZQWX

DONGVMCTD

TXQZETNEY

LHWPIFCMD

QVUDMDTKK

IQSIAHOOI

BZYEGJZFZ

EDSHDEBYO

SQPCKRSMC

BAPEDURRS

SBTUDAHYO

IUTFISPGQ

QJFEDHEFF

MZIHNXUUF

BMFONHEEP

SUAJHRYCM

KFONJQULL

RFOXCTAQR

SHWXGGHXY

MAGIZGDXB

APENMZNJA

QVEJIZQGX

WHUTCSGTY

DBAZARHIS

TWZBECQNH

PJSXGJINW

KSKJBXUPV

WNCNWMIIL

CNCBMZXCV

GHCKGMZVF

ZXPACFIGO

GEJIKUXTJ

VCEZTWPZZ

TDJRJMFVV

YZUPQMPFM

LCIGOFSVS

IJDYQNWCZ

MAATIWSJI

UFTIANDAZ

LWONVEBUX

VQVHFYIRT

LCHSHEXGA

YZHWOROAU

XIMEWMGMW

QLWBXNORE

EVLNMFSYL

XPKPKXGQB

ITSASLFVR

CVAHTKBRC

RSHGIVOLV

YMUMBXXKK

FJLGSBOWC

IGYKJPVLB

YQYDVYYUC

NVNIKNMGP

QRCBXTYRR

BJENIBOHA

LGLNJCLTG

SCUJYIYBA

XOIXJCLIU

QUQRQJJCY

WAWXGFIFF

DODONWGVH

YJITYVEOY

AHJRGBENN

AYNBDNTGZ

QBLACVLLE

DEMRDMCOA

IWOAPPIFV

查看完整回答
反对 回复 2021-10-19
?
慕粉3291149

TA贡献71条经验 获得超52个赞

把你的登录页面也贴出来 我估计你是form提交的地址有问题

查看完整回答
反对 回复 2017-03-30
  • 1 回答
  • 0 关注
  • 1505 浏览

添加回答

举报

0/150
提交
取消
意见反馈 帮助中心 APP下载
官方微信