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

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

無(wú)法跳轉(zhuǎn)到登錄界面

helloword.xml

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

<!DOCTYPE struts PUBLIC

"-//Apache Software Foundation//DTD Struts Configuration 2.3//EN"

"http://struts.apache.org/dtds/struts-2.3.dtd">

<struts>

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

<default-action-ref name="index"></default-action-ref>

<action name="index">

<result>/error.jsp</result>

</action>

<action name="helloword_*" method="{1}" class="com.jia.action.HelloWordAction">

<result>/result.jsp</result>

<result name="add">/{1}.jsp</result>

<result name="update">/{1}.jsp</result>

<result name="error">/error.jsp</result>

</action>

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

<result>/success.jsp</result>

</action>

</package>

</struts>


struts.xml

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

<!DOCTYPE struts PUBLIC

"-//Apache Software Foundation//DTD Struts Configuration 2.3//EN"

"

<struts>

<include file="helloword.xml"></include>

<constant name="struts.action.extension" value=""></constant>

</struts>


web.xml

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

<web-app xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://java.sun.com/xml/ns/javaee" xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_3_0.xsd" id="WebApp_ID" version="3.0">

? <display-name>HelloWord</display-name>

? <filter>

? <filter-name>struts2</filter-name>

? <filter-class>org.apache.struts2.dispatcher.ng.filter.StrutsPrepareAndExecuteFilter</filter-class>

? </filter>??

? <filter-mapping>

? <filter-name>struts2</filter-name>

? <url-pattern>/*</url-pattern>

? </filter-mapping>??

? <welcome-file-list>

? ? <welcome-file>index.jsp</welcome-file>

? </welcome-file-list>

</web-app>


login.jsp

<%@ page language="java" contentType="text/html; charset=UTF-8"

? ? pageEncoding="UTF-8"%>

<!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>Insert title here</title>

</head>

<body>

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

用戶名:<input type="text" name="user.username">

密碼:<input type="password" name = "user.password">

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

</form>

</body>

</html>


LoginAction.java

package com.jia.action;

import com.jia.po.User;

import com.opensymphony.xwork2.ActionSupport;

public class LoginAction extends ActionSupport {

private User user;

public String login(){

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

return SUCCESS;

}

public User getUser() {

return user;

}

public void setUser(User user) {

this.user = user;

}

}

success.jsp

<%@ page language="java" contentType="text/html; charset=UTF-8"

? ? pageEncoding="UTF-8"%>

<!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>Insert title here</title>

</head>

<body>

? This is success.jsp

</body>

</html>


User.java

package com.jia.po;


public class User {

private String username;

private String password;

public String getUsername() {

return username;

}

public void setUsername(String username) {

this.username = username;

}

public String getPassword() {

return password;

}

public void setPassword(String password) {

this.password = password;

}

}


正在回答

1 回答

附上截圖

http://img1.sycdn.imooc.com//5673734b0001778c07300114.jpg

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

舉報(bào)

0/150
提交
取消

無(wú)法跳轉(zhuǎn)到登錄界面

我要回答 關(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)