当前位置: 技术问答>java相关
高分请教:JBuilder怎末和Tomcat联合开发及调试jsp?
来源: 互联网 发布时间:2015-01-07
本文导语: 高分请教:JBuilder怎末和Tomcat联合开发及调试jsp? 请详细告知! | JBuilder自带Tomcat,你可以在JBuilder中调试好了再移植 JBuilder 4 lets you run and debug servlets and JSPs on TomcatTM 3.1, the reference...
高分请教:JBuilder怎末和Tomcat联合开发及调试jsp?
请详细告知!
请详细告知!
|
JBuilder自带Tomcat,你可以在JBuilder中调试好了再移植
JBuilder 4 lets you run and debug servlets and JSPs on TomcatTM 3.1, the reference implementation of Servlet 2.2/JSP 1.1. For more information on Tomcat, refer to Apache Software Foundation's Jakarta web site at http://jakarta.apache.org Each servlet may have an alias (servlet-name) and init() parameters, and can be executed directly without an SHTML file. The web server can also have context parameters and a context path to make the development configuration match the deployment configuration more closely. JBuilder 4 provides extended JSP support. Debugging your JSP is easy, as you can debug your source code directly. CodeInsight, ErrorInsight, and syntax highlighting are supported in JSP files. For more information on JSPs, see "Developing JavaServer Pages" in the Distributed Applications Guide. For more information on servlets, see "Developing Servlets" in the Distributed Applications Developer's Guide. This product includes software developed by the Apache Software Foundation (http://www.apache.org/) which is released with the following copyright: Copyright (c) 2000 The Apache Software Foundation. All rights reserved. This software from the Apache Software Foundation is being distributed according to the conditions and disclaimer found at the end of this file.
JBuilder 4 lets you run and debug servlets and JSPs on TomcatTM 3.1, the reference implementation of Servlet 2.2/JSP 1.1. For more information on Tomcat, refer to Apache Software Foundation's Jakarta web site at http://jakarta.apache.org Each servlet may have an alias (servlet-name) and init() parameters, and can be executed directly without an SHTML file. The web server can also have context parameters and a context path to make the development configuration match the deployment configuration more closely. JBuilder 4 provides extended JSP support. Debugging your JSP is easy, as you can debug your source code directly. CodeInsight, ErrorInsight, and syntax highlighting are supported in JSP files. For more information on JSPs, see "Developing JavaServer Pages" in the Distributed Applications Guide. For more information on servlets, see "Developing Servlets" in the Distributed Applications Developer's Guide. This product includes software developed by the Apache Software Foundation (http://www.apache.org/) which is released with the following copyright: Copyright (c) 2000 The Apache Software Foundation. All rights reserved. This software from the Apache Software Foundation is being distributed according to the conditions and disclaimer found at the end of this file.
|
我用jb4开发,但不在jb4下调试,太慢了……
一般我直接用weblogic调试,感觉还行。
一般我直接用weblogic调试,感觉还行。
|
你装的是jb4企业版吗?不然不行
|
jbuilder 4 enterprise:
run -->configurations -->new
新建一个,取一个名字,然后选“Jsp/Servlet”-->server options
server 选tomcat3.X(jb内置)
port number 80
document base 填要发布的目录(目录下面包括你的类和JSP文件)
project-->project properties里面的run设置看看是不是和上面的一样
把项目的class文件按包放到发布目录下面的web-inf目录下面的classes目录里
好了,现在运行,点“run project”按扭旁边的那个小黑箭头,会出来你刚才新建的设置
运行它,这样jb4内置的tomcat 就跑起来了
然后就可以在jb4外面用ie跑系统了,所有系统的信息会出现在jb4里面
run -->configurations -->new
新建一个,取一个名字,然后选“Jsp/Servlet”-->server options
server 选tomcat3.X(jb内置)
port number 80
document base 填要发布的目录(目录下面包括你的类和JSP文件)
project-->project properties里面的run设置看看是不是和上面的一样
把项目的class文件按包放到发布目录下面的web-inf目录下面的classes目录里
好了,现在运行,点“run project”按扭旁边的那个小黑箭头,会出来你刚才新建的设置
运行它,这样jb4内置的tomcat 就跑起来了
然后就可以在jb4外面用ie跑系统了,所有系统的信息会出现在jb4里面
|
可以在java class里设置断点
至于jsp里的代码么......反正也不会多,写几个输出就行了
所有系统输出会显示在jb里面
不过设断点调试的话会狂慢~
等在这里面都调好了,你再发布到其他服务器上好了
至于jsp里的代码么......反正也不会多,写几个输出就行了
所有系统输出会显示在jb里面
不过设断点调试的话会狂慢~
等在这里面都调好了,你再发布到其他服务器上好了