tomcat jsp javabean 问题

fogg 2003-04-01 11:04:20
我用tomcat 作为服务器,请问jsp和javaben存放的目录有什么关系。
要在tomcat 的server.xml中配置一些东西吗?

急!!!
...全文
41 6 打赏 收藏 转发到动态 举报
写回复
用AI写文章
6 条回复
切换为时间正序
请发表友善的回复…
发表回复
chenchao_xjtu 2003-04-01
  • 打赏
  • 举报
回复
是访问你的jsp出错,还是找不到你的beans类阿
如果找不到你的beans,是不是你的jsp中没有正确引用。
zhx_232 2003-04-01
  • 打赏
  • 举报
回复
yourRoot
numguess.jsp
--WEB-INF
--classes
num\NumberGuessBean.class
--lib
--yourLibhere
然后http://localhost:8080/numguess.jsp
fogg 2003-04-01
  • 打赏
  • 举报
回复
谢谢,好像不行啊,能给我更详细的例子吗?
我把tomcat 下的例子,以下列层次配置,
yourRoot
__youjsphere//放了numguess.jsp
--WEB-INF
--classes//放了num\NumberGuessBean.class
--yourclasshere
然后http://localhost:8080/myweb/numguess.jsp 不行啊
请问servlet怎么配置
我qq:9623642

欢迎指教。
moumouren 2003-04-01
  • 打赏
  • 举报
回复
server.xml不需要配置
建议不使用javabean,直接使用import
如果你使用servlet的话,建议配置web.xml
secrets001 2003-04-01
  • 打赏
  • 举报
回复
yourRoot
__youjsphere
--WEB-INF
--classes
--yourclasshere
--lib
--yourLibhere
fogg 2003-04-01
  • 打赏
  • 举报
回复
谢谢各位
请问,servelt怎么配置?

81,092

社区成员

发帖
与我相关
我的任务
社区描述
Java Web 开发
社区管理员
  • Web 开发社区
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧