html select 提交問題

2021-08-31 02:18:18 字數 423 閱讀 8128

action:

arraylistuserlist = new arraylist();

userlist.add(new user("1","合格"));

userlist.add(new user("2","非訂貨"));

userlist.add(new user("3","工段廢品"));

userlist.add(new user("4","退庫廢品"));

requset.setattribute("user",uesrlist);

pojo:

public class user

jsp :

請選擇現在的問題是?

怎樣將選中的單值提交到後台對應的action,並把值儲存到資料裡面.

如:選擇了2 ,非訂貨

怎樣取出value的值?

paip 從HTML select 獲取資料

paip.從html select 獲取資料 近日。有個提現模組,使用者需要從select控制項選擇銀行。可是取到的id值。後台儲存的時候需要儲存銀行名。select 的html如下.請選擇銀行 中國工商銀行 中國農業銀行 中國建設銀行 交通銀行 中國銀行 中國郵政儲蓄銀行 招商銀行 浦發銀行 中信...

HTMLSelect中操作Option物件

select 物件其實是乙個包含 option 物件陣列的復合物件。select 物件最重要的屬性是 selectedindex,即當前被選中的框中的文字的索引值 用法為 formobject.selectname selectedindex建立乙個 option 物件,即在 標籤中建立乙個或多個 ...

git提交問題

公司用sourcetree,我自己的檔案放在github上,今天提交git的時候出現錯誤 fatal authentication failed for 參照網上修改 git config global user.name git config global user.email com 後仍然無效...