我在我的eclipse(helios)环境中设置了Tomcat v7.0服务器,用于测试Web应用程序.目前我在我的工作区中有一个struts web-app,它正确地加载到服务器中,以及我试图上传的两个动态web项目.主要是,我想为第一个项目转换为axis2的web服务,为第二个项目转换为简单的html页面(用于测试此问题).
但是,没有人在服务器内正确加载,我看到另一个进程错误导致锁定.
服务器控制台给出的错误是:
Publishing failed with multiple errors
Could not delete C:\Documents and Settings\xgeneric\workspaceSkillInventory\.metadata\.plugins\org.eclipse.wst.server.core\tmp1\wtpwebapps\WStest3\WEB-INF\lib\activation-1.1.jar. May be locked by another process.
Could not delete C:\Documents and Settings\xgeneric\workspaceSkillInventory\.metadata\.plugins\org.eclipse.wst.server.core\tmp1\wtpwebapps\WStest3\WEB-INF\lib\antlr-2.7.7.jar. May be locked by another process.
Could not delete C:\Documents and Settings\xgeneric\workspaceSkillInventory\.metadata\.plugins\org.eclipse.wst.server.core\tmp1\wtpwebapps\WStest3\WEB-INF\lib\axiom-api-1.2.11.jar. May be locked by another process.
Could not delete C:\Documents and Settings\xgeneric\workspaceSkillInventory\.metadata\.plugins\org.eclipse.wst.server.core\tmp1\wtpwebapps\WStest3\WEB-INF\lib\axiom-dom-1.2.11.jar. May be locked by another process.
Could not delete C:\Documents and Settings\xgeneric\workspaceSkillInventory\.metadata\.plugins\org.eclipse.wst.server.core\tmp1\wtpwebapps\WStest3\WEB-INF\lib\axiom-impl-1.2.11.jar. May be locked by another process.
Could not delete C:\Documents and Settings\xgeneric\workspaceSkillInventory\.metadata\.plugins\org.eclipse.wst.server.core\tmp1\wtpwebapps\WStest3\WEB-INF\lib\axis2-adb-1.6.0.jar. May be locked by …Run Code Online (Sandbox Code Playgroud) 我在复选框上单击使用下面的代码.它可以在本地主机上运行,但是当我取消选中复选框时,它无法在移动设备上运行任何一个解决方案吗?
$("#checkbox-1a").change (function(){
var chkstatus = $(this).attr('checked');
alert(chkstatus);
if (chkstatus != 'checked') {
$('#locationdiv').slideUp();
$('#address').val('');
$('#zip').val('');
} else {
$('#locationdiv').slideDown();
}
});
Run Code Online (Sandbox Code Playgroud)
提前致谢
<div class="parent">
<a href="#">download link</a>
</div>
$(".parent").bind("click", function(){
alert('test');
});
Run Code Online (Sandbox Code Playgroud)
想绑定href click函数,以便在单击.parent时,它会转到嵌套链接的位置.
我有两个变量.weekStartDate和startDate.它们都基本上保持相同的时间戳:
this.startDate Date {Mon Mar 26 2012 00:00:00 GMT+0530 (IST)}
this.weekStartDate Date {Mon Mar 26 2012 00:00:00 GMT+0530 (IST)}
Run Code Online (Sandbox Code Playgroud)
问题是:当我尝试getTime()时,它们显示的值略有不同:
this.startDate.getTime() 1332700200000
this.weekStartDate.getTime() 1332700200506
Run Code Online (Sandbox Code Playgroud)
我怎样才能解决这个问题?
下面我使用这个脚本来设置文本框值..
$('#sub').click(function(){
var num1 = $('#text1').val();
var num2 = $('#text2').val();
var newVal = (num1+2)*(num2/4);
var nextVal =(num1+4)*(num2/2);
$(#text1).val(newVal); //setting the textbox value here
Run Code Online (Sandbox Code Playgroud) jquery ×3
javascript ×2
checkbox ×1
date ×1
eclipse ×1
html ×1
java ×1
tomcat7 ×1
web-services ×1