第七色在线视频,2021少妇久久久久久久久久,亚洲欧洲精品成人久久av18,亚洲国产精品特色大片观看完整版,孙宇晨将参加特朗普的晚宴

為了賬號(hào)安全,請(qǐng)及時(shí)綁定郵箱和手機(jī)立即綁定

好想沒(méi)有這個(gè)標(biāo)簽啊


package com.ls.action;


import com.ls.entity.User;

import com.opensymphony.xwork2.ActionSupport;

import com.opensymphony.xwork2.ModelDriven;


public class LoginAction extends ActionSupport implements ModelDriven<User>{


private static final long serialVersionUID = 2420947456421303802L;

private User user =new User();

public String login() {

if(user.getUsername()==null || " ".equals(user.getUsername())){

this.addFieldError("username", "姓名不能為空");

return INPUT;

}

System.out.println(user.getUsername());

System.out.println(user.getBookList().get(0).getUsername());

System.out.println(user.getBookList().get(1).getUsername());

return SUCCESS;

}


@Override

public User getModel() {

// TODO Auto-generated method stub

return user;

}




}


正在回答

3 回答

http://img1.sycdn.imooc.com//59cd2eae0001c0c819200944.jpg莫名哦

0 回復(fù) 有任何疑惑可以回復(fù)我~

<?xml version="1.0" encoding="UTF-8" ?>

<!DOCTYPE struts PUBLIC "-//Apache Software Foundation//DTD Struts Configuration 2.1//EN" "http://struts.apache.org/dtds/struts-2.1.dtd">

<struts>

<package name="default" namespace="/" ?extends="struts-default">?

<action name="LoginAction" ?class="com.ls.action.LoginAction" ?method="login">

<result >/success.jsp</result>

<result name="input">/index.jsp</result>

</action>

</package>

</struts> ? ?


0 回復(fù) 有任何疑惑可以回復(fù)我~

<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>

<%@taglib prefix="s" uri="/struts-tags" %>

<%

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 'index.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>

? ? <form action="LoginAction.action" method="post" >

? ? <input type="text" name="username"/><s:fielderror name="username"></s:fielderror><br/>

? ? <input type="text" name="password"/><br/>

? ? <input type="text" name="bookList[0].username"/><br/>

? ? <input type="text" name="bookList[1].username"/><br/>

? ? <input type="text" name="age"/><br>

? ? <input type="submit" value="提交"/><br/>

? ? </form>

? </body>

</html>


0 回復(fù) 有任何疑惑可以回復(fù)我~

舉報(bào)

0/150
提交
取消

好想沒(méi)有這個(gè)標(biāo)簽啊

我要回答 關(guān)注問(wèn)題
微信客服

購(gòu)課補(bǔ)貼
聯(lián)系客服咨詢優(yōu)惠詳情

幫助反饋 APP下載

慕課網(wǎng)APP
您的移動(dòng)學(xué)習(xí)伙伴

公眾號(hào)

掃描二維碼
關(guān)注慕課網(wǎng)微信公眾號(hào)