我用过JBUILDER来开发STRUTS,目前已经有一个项目(WEB),如果你需要,我可以给你一份,不过做的实在是很差劲
解决方案 »
- 在同一个WEB服务器上【Tomcat】的2个WEB应用程序之间如何进行数据交互?大家有这样的经验吗?
- JSP中含有用SERVLET生成的验证码
- 征求一个方案
- 这样子有错么
- [Microsoft][SQLServer 2000 Driver for JDBC]Error establishing socket问题
- 只有最后的80分了,问一个bean连接sql server的问题,大虾帮忙解决,谢谢!
- 撒分啦!JTable的问题
- 学到东西就应该给分
- 问个JDBC连接sql server问题?
- 安装了jb5以后,在IE中怎样测试Tomcat已经成功,怎样运行我的jsp程序?
- Servlet在哪?
- 用servlet实现loading page的效果
================================
在SOLARIS 7 的/WWW下建立apache+tomcat JSP应用服务器 下载原文件
================================
apache_1.3.14.tar.gz
jakarta-tomcat-3.2.tar.gz
jakarta-tomcat-3.2-src.tar.gz 编译 apache
=================================
gzip -dc apache_1.3.14.tar.gz | tar xvf -
cd apache_1.3.14
./configure --prefix=/www/apache --enable-module=so --enable_rule=SHARED_CORE (允许 DSO,运行 apxs 必须)
make
make install
运行 tomcat
=================================
gzip -dc jakarta-tomcat-3.2.tar.gz | tar xvf -
mv jakarta-tomcat-3.2 tomcat
cd tomcat/bin
./startup.sh (自动生成 tomcat-apache.conf 文件)
cp tomcat-apache.conf /www/apache/conf/ 生成 mod_jserv.so 文件
=================================
gzip -dc jakarta-tomcat-3.2-src.tar.gz | tar xvf -
cd jakarta-tomcat-3.2-src/src/native/apache/jserv
/www/apache/bin/apxs -c -o mod_jserv.so *.c (指定 apxs 路径)
cp mod_jserv.so /www/apache/libexec
修改 httpd.conf 和 tomcat-apache.conf
=================================
cd /www/apache/conf
vi httpd.conf
(insert line)Include conf/tomcat-apache.conf(在 httpd.conf 里增加一行)
(tomcat-apache.conf 不做任何修改)
运行 apache
=================================
cd /www/apache/bin
./apachectl start
测试结果
=================================
默认根目录为/webapps/ROOT
class默认目录为/webapps/ROOT/WEB-INF/classes
测试成功。
主要参考资料
=================================
http://www.jguru.com/jguru/faq/printablefaq.jsp?faq=Tomcat
http://jakarta.apache.org/tomcat/jakarta-tomcat/src/doc/uguide/tomcat_ug.html 总结
=================================
SOLARIS 下生成 mod_jserv.so 文件为难点,LINUX 下编译的不能使用。不同的APACHE,UNIX版本都不能通用。 =================================
struts config, additional steps
Tomcat 3.2.1 With Apache
Note that the instructions for Tomcat 4 will be different than those for Tomcat 3, but the Tomcat 4.0 web connector is still under development. Versions of Tomcat prior to 3.2.1 are not recommend for use with Struts.
These instructions assume you have successfully integrated Tomcat with Apache according to the Tomcat documentation.
Copy "struts-documentation.war" and "struts-example.war" to your $TOMCAT_HOME/webapps directory
Restart Tomcat if it is already running
Tomcat will generate a file "$TOMCAT_HOME/conf/tomcat-apache.conf" that will be used by Apache. This file is regenerated every time you start Tomcat, so copy this file to a safe place (such as your Apache configuration directory; on Unix systems this is usually /usr/local/apache/conf.
If you are running Tomcat 3.1, Tomcat will not have generated the entries for your new applications. Add the following lines to the tomcat-apache.conf file that you have saved, replacing $TOMCAT_HOME with the path to your Tomcat home directory:
Alias /struts-documentation "$TOMCAT_HOME/webapps/struts-documentation
<Directory "$TOMCAT_HOME/webapps/struts-documentation>
Options Indexes FollowSymLinks
</Directory>
ApJServMount /struts-documentation/servlet /struts-documentation
<Location "/struts-documentation/WEB-INF/">
AllowOverride None
deny from all
</Location>
Alias /struts-example "$TOMCAT_HOME/webapps/struts-example"
<Directory "$TOMCAT_HOME/webapps/struts-example>
Options Indexes FollowSymLinks
</Directory>
ApJServMount /struts-example/servlet /struts-example
<Location "/struts-example/WEB-INF/">
AllowOverride None
deny from all
</Location>The generated file above does not know anything about extension mappings defined in a web.xml file, so the "*.do" URIs that go to the controller servlet will not be recognized. To fix this, add the following line to the saved version of "tomcat-apache.conf", after the corresponding line for the .jsp extension:
------------------------->
add this line to tomcat-apache.confAddHandler jserv-servlet .do --------------------------------
Ensure that the saved version of "tomcat-apache.conf" is referenced in your Apache "httpd.conf" configuration file. A typical use would have the following line at the bottom of "httpd.conf":
Include /usr/local/apache/conf/tomcat-apache.conf
In order to recognize "index.jsp" as a default page for web applications, search in your "httpd.conf" for a "DirectoryIndex" directive. If you have one, add "index.jsp" to the end of the list, so that it might look like this:
DirectoryIndex index.html index.jsp
If you do not have such an entry, add one like this:
DirectoryIndex index.jsp
Restart Apache to make it aware of the new applications. You should now be able to access the applications from a browser like this:
http://localhost/struts-documentation
http://localhost/struts-example --------------------------------------------------------------------------------
in order to slove the .do;jsessionid= problem
add these line to httpd.conf
<LocationMatch \.jsp;jsessionid= >
SetHandler jserv-servlet
</LocationMatch>
<LocationMatch \.do;jsessionid= >
SetHandler jserv-servlet
</LocationMatch>
不过我用的是WIN2000下的