Login form in JSP

后端 未结 2 2199
醉酒成梦
醉酒成梦 2021-01-25 09:11

enter code hereHiya, so far I didn\'t use JSP at all and I find some online tutorials to be very complicated to learn from them, I need to make simple login form .. its not prob

2条回答
  •  南笙
    南笙 (楼主)
    2021-01-25 09:40

    It's a little more involved in Java using old school Servlets and JSP than in PHP. You need to create a servlet which can access the HttpRequest and HttpResponse objects and read out the parameters you sent with the JSP file to that Servlet using the GET or POST method. Furthermore you have to create web descriptor file called web.xml and deploy everything in a servlet container such as Tomcat.

    I would start googling for "hello world servlet", once you get the idea of it works it shouldn't be difficult anymore.

提交回复
热议问题