struts与jsp之间的值传递

                    1.jsp向action

                     jsp:                      

 <form action="strust2Test!login.action" method="post">
   <input  type="text"  name="username"/>
   <input  type="submit" value="查询"/>
   </form>

                          action:                     

ServletRequest request=ServletActionContext.getRequest();
    	String name=request.getParameter("username"); 
            

                      后续不断补充.......

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章