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

為了賬號(hào)安全,請(qǐng)及時(shí)綁定郵箱和手機(jī)立即綁定
已解決430363個(gè)問(wèn)題,去搜搜看,總會(huì)有你想問(wèn)的

struts界面無(wú)法跳轉(zhuǎn)

struts界面無(wú)法跳轉(zhuǎn)

這是登錄界面<%@ 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><from action="LoginAction.action" method="post">用戶(hù)名:<input ?type="text" name="user.username"><br/>密碼:<input type="password" name="user.password"><br/><input type="submit" value="提交"/></from></body></html><?xml version="1.0" encoding="UTF-8"?><!DOCTYPE struts PUBLIC? ? ? ? "-//Apache Software Foundation//DTD Struts Configuration 2.0//EN"? ? ? ? "http://struts.apache.org/dtds/struts-2.3.dtd"><struts>? ? <package name="default" extends="struts-default">? ??? ? <default-action-ref name="index"></default-action-ref>? ??? ? <action name="index">? ? <result>/error.jsp</result>??? ? </action>? ?? ? ? ? <action name="helloworld" class="an.cm.HelloWorldAction">? ? ??? ? ? ? <result>/result.jsp</result>? ? ? ? ? ??? ? ? ? </action>? ? ? ??? ? ? ? <action name="addAction" method="add" class="an.cm.HelloWorldAction">? ? ? ? ? ? <result>/add.jsp</result>? ? </action>? ? ? ? <action name="updateAction" method="update" class="an.cm.HelloWorldAction">? ? ? ? ? ? <result >/update.jsp</result>? ? ? ? </action>? ? ? ??? ? ? ? <action name=" LoginAction" method="login" class="an.cm.LoginAction">? ?? ? ? ? ? ? <result >/success.jsp</result>? ? ? ? </action>? ? ??? ? </package>? ??</struts>package an.cm;import com.opensymphony.xwork2.ActionSupport;import an.cm.User;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; }}package an.cm;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; } }代碼我都是根據(jù)視頻寫(xiě)的 點(diǎn)擊提交按鈕 界面無(wú)法調(diào)轉(zhuǎn)到另外一個(gè)界面
查看完整描述

1 回答

已采納
?
sep123

TA貢獻(xiàn)2條經(jīng)驗(yàn) 獲得超1個(gè)贊

Form表單路徑后綴.action去掉,或者在web配置文件加后綴?
查看完整回答
反對(duì) 回復(fù) 2017-04-03
  • 1 回答
  • 0 關(guān)注
  • 1170 瀏覽
慕課專(zhuān)欄
更多

添加回答

舉報(bào)

0/150
提交
取消
微信客服

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

幫助反饋 APP下載

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

公眾號(hào)

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