web.xml配置了HelloServlet.java的信息,

如何打开HelloServlet.java >> http://localhost:8080/javaee3/hello

Servlet_1(java与html链接)

如何打开testHello.html >> http://localhost:8080/javaee3/testHello.html(注意,testHello.html在WebRoot下,而不是WEB-INF下)

Servlet_1(java与html链接)

如何让testHello.html与HelloServlet.java建立联系 >> [action="hello" && <url-pattern>/hello</url-pattern>]

url是HelloServlet.java的,效果图:

Servlet_1(java与html链接)

Servlet_1(java与html链接)

 

附加图:

Servlet_1(java与html链接)

Servlet_1(java与html链接)

Servlet_1(java与html链接)

相关文章:

  • 2021-12-20
  • 2021-11-02
猜你喜欢
  • 2021-11-30
  • 2021-12-04
  • 2022-01-08
  • 2021-04-03
  • 2021-12-11
相关资源
相似解决方案