12
返回列表 发新帖
楼主: zcp

请教:javabean的放置目录

[复制链接]
论坛徽章:
1
授权会员
日期:2005-10-30 17:05:33
11#
发表于 2004-11-4 21:24 | 只看该作者
e.g. your javabean is in the package of A. you javabean class is B
then put this class file into the server. if you are using Tomcat,
then you need to create a directory named as A under the webapps/WEB-INF/classes/
and put the B.class into A directory, you will have the tree structure like this

----webapps
    ----WEB-INF
         -------classes
                 ------A
                       -------B

Remeber, you have to put your bean class into a package, this is the purpose of avoiding name conflicting problem, even it is not tend to be if you design your code carefully.

使用道具 举报

回复
论坛徽章:
1
授权会员
日期:2005-10-30 17:05:33
12#
发表于 2004-11-4 21:28 | 只看该作者
----webapps
---------WEB-INF
---------------classes
---------------------A
--------------------------B

sorry, it is not clear in the last post

使用道具 举报

回复
招聘 : Java研发
论坛徽章:
114
SQL数据库编程大师
日期:2013-12-06 13:59:43萤石
日期:2013-12-06 15:50:21ITPUB元老
日期:2007-09-25 17:05:532011数据库大会纪念章
日期:2015-04-23 10:33:192010数据库技术大会纪念徽章
日期:2015-04-23 10:33:19喜羊羊
日期:2015-03-24 13:02:282015年新春福章
日期:2015-03-06 11:57:31喜羊羊
日期:2015-03-04 14:49:39马上有房
日期:2015-01-22 17:30:45马上加薪
日期:2014-12-25 08:48:51
13#
发表于 2004-11-9 12:46 | 只看该作者
其实CLASSES目录不一定要放入WEB-INF里的,它可以自己定义,在配制文件中,!

使用道具 举报

回复

您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

TOP技术积分榜 社区积分榜 徽章 团队 统计 知识索引树 积分竞拍 文本模式 帮助
  ITPUB首页 | ITPUB论坛 | 数据库技术 | 企业信息化 | 开发技术 | 微软技术 | 软件工程与项目管理 | IBM技术园地 | 行业纵向讨论 | IT招聘 | IT文档
  ChinaUnix | ChinaUnix博客 | ChinaUnix论坛
CopyRight 1999-2011 itpub.net All Right Reserved. 北京盛拓优讯信息技术有限公司版权所有 联系我们 未成年人举报专区 
京ICP备16024965号-8  北京市公安局海淀分局网监中心备案编号:11010802021510 广播电视节目制作经营许可证:编号(京)字第1149号
  
快速回复 返回顶部 返回列表