1 2 3 4 5 6 7 8 9 10 11 | <h:head> <h ![]() <h ![]() <title>JSF 2.3 ServerPush Example</title> </h:head> <h:body> <h:form> <h:graphicImage library="images" name="logo.jpg"/> </h:form> </h:body> </html> |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 | @WebServlet({"/path/*", "*.ext"}) public class ServletMapping extends HttpServlet { protected void doGet(HttpServletRequest request, HttpServletResponse response) throws IOException { HttpServletMapping mapping = request.getHttpServletMapping(); String mapping = mapping.getMappingMatch().name(); String value = mapping.getMatchValue(); String pattern = mapping.getPattern(); String servletName = mapping.getServletName(); } } |
欢迎光临 电子技术论坛_中国专业的电子工程师学习交流社区-中电网技术论坛 (http://bbs.eccn.com/) | Powered by Discuz! 7.0.0 |