How to transfer data from JSP to servlet when submitting HTML form

前端 未结 4 1219
陌清茗
陌清茗 2020-11-21 23:14

I have a JSP page with an HTML form:


4条回答
  •  佛祖请我去吃肉
    2020-11-22 00:13

    first up on create your jsp file : and write the text field which you want
    for ex:

    after that create your servlet class:

    public class test{
    
    protected void doGet(paramter , paramter){
    
    String name  = request.getparameter("name");
     }
    
    }
    

提交回复
热议问题