在启动应用程序或通过ant编译JSP时,Tomcat 7 Jasper会抱怨多余或错位的JAR文件.我得到了以下信息
**compile-jsp:**
[jasper] Jul 31, 2012 7:15:15 PM org.apache.jasper.compiler.TldLocationsCache tldScanJar
[jasper] INFO: At least one JAR was scanned for TLDs yet contained no TLDs. Enable debug logging for this logger for a complete list of JARs that were scanned but no TLDs were found in them. Skipping unneeded JARs during scanning can improve startup time and JSP compilation time.
Run Code Online (Sandbox Code Playgroud)
如何在扫描期间跳过不需要的JAR可以改善tomcat中的启动时间和JSP编译时间?
如何实现更好的输出?
public class HelloWorld extends HttpServlet{
public void doGet(HttpServletRequest request,
HttpServletResponse response)
throws ServletException,IOException{
**response.setContentType("text/html");**
PrintWriter pw = response.getWriter();
pw.println("<html>");
pw.println("<head><title>Hello World</title></title>");
pw.println("<body>");
pw.println("<h1>Hello World</h1>");
pw.println("</body></html>");
}
}
Run Code Online (Sandbox Code Playgroud) 如何在knockoutjs中为optionsCaption设置一个值?例如,在我的应用程序中,我有一个选择框:
<select name="item" id="item" class="input-fo" multiple="multiple" data-bind="
options : categories,
optionsValue : '_id',
optionsCaption :'Select All',
optionsText : 'name',
selectedOptions : $data['item'],
select2 : {}
">
</select>
Run Code Online (Sandbox Code Playgroud)
在选项之上,我将optionsCaption设置为"全选".如何在页面加载时为"全选"选项设置值?任何人都可以请你告诉我如何做到这一点?