Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
在创建嵌入式码头实例并将 url 模式映射到特定处理程序时,是否可以将多个 url 映射到同一个 servlet 处理程序?
是的,这应该是可能的(因为它也可以使用 webapps)。
当您创建 aServletHandler时,您可以将多个ServletMappings via添加addServletMapping()到此处理程序。
ServletHandler
ServletMapping
addServletMapping()
In order to fix an IE9 bug I had to put the 'DOCTYPE' declaration at the top of the page:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd"&