在eclipse Dynamic Web Project中映射tomcat安装外部的外部目录(Map external directory outside tomcat installation in eclipse Dynamic Web Project)
我想在tomcat安装之外映射一个外部目录,它在eclipse Dynamic Web Project的tomcat服务器中存储图像。 我已经通过在server.xml文件中添加context标签直接在tomcat中完成了这个操作。 但是当我在eclipse Dynamic Web Project的tomcat server.xml文件中完成时。 它不起作用。 我正在使用Tomcat 6。
我的问题是:
- 如何在eclipse Dynamic Web Project中映射tomcat安装外的外部目录?
- 这是在tomcat安装之外映射外部目录的好方法吗?
谢谢
Brajesh
I want to map an external directory outside tomcat installation which stores images in eclipse Dynamic Web Project's tomcat server. I have done that in tomcat directly by adding context tag in server.xml file. But when I done that in eclipse Dynamic Web Project's tomcat server.xml file. It is not working. I am using Tomcat 6.
My question is:
- How to map an external directory outside tomcat installation in eclipse Dynamic Web Project?
- Is it the good way to map external directory outside tomcat installation?
Thanks
Brajesh
原文:https://stackoverflow.com/questions/5632145
最满意答案
Stackoverflow上的这个主题描述了有趣的概念:
以下是公认答案的精髓:
ParentMenu.DropDown.AutoClose = false;
它完全符合您的要求 - 在单击子项时阻止菜单关闭。
Interesting concept is described in this thread on Stackoverflow:
Here is the essence of the accepted answer:
ParentMenu.DropDown.AutoClose = false;
It does exactly what you are asking for - prevent menu from closing when subitem is clicked.
相关问答
更多-
如何让WPF菜单看起来像Windows Forms ToolStripMenu?(How to make s WPF menu look like a Windows Forms ToolStripMenu?)[2022-07-06]
尝试这个: 样式和模板介绍: http : //msdn.microsoft.com/en-us/library/ms745683.aspx 工具栏的新样式http://msdn.microsoft.com/en-us/library/aa970772.aspx 或者搜索wpf ToolBar风格 编辑:是的 - 但添加一个像这样的菜单和工具栏改变菜单样式(粘贴在新项目中):在您的第二个表单中,在子表单的代码窗口顶部创建一个这样的Friend属性 Public Class frmWhateverYourNewFormIsCalled Friend Property filepath As String 在您的调用表单中,将listbox1_SelectedIndexChanged属性编辑为此 Private Sub ListBox1_SelectedIndexChanged(ByVal sender As System.Object, ByVal e As Syste ...单击后再次打开它。 由于我无法从您的代码中看到更多内容,因此请将此作为我所说内容的参考。 Private Sub TestToolStripMenuItem_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles TestToolStripMenuItem.Click Me.ToolStripDropDownButton1.ShowDropDown() EndSub Open it again after ...停止点击儿童的传播: DEMO $(".drop li a") .on('click', function (e) { e.stopPropagation(); }); Stop propagation of clicked children: DEMO $(".drop li a") .on('click', function (e) { e.stopPropagation(); });设置父菜单项的AutoClose属性以防止菜单条关闭。 展示: ToolStripMenuItem file = new ToolStripMenuItem("File"); file.DropDown.AutoClose = false; file.DropDownItems.Add("New"); file.DropDownItems.Add("Open"); file.DropDownItems.Add("Exit"); MenuStrip ms = new MenuStrip(); ms.Item ...如果你真的想要一个上下文菜单,那么我将使用Android中设计的上下文菜单,通过长按特定项目。 人们习惯于此,应用程序应该没有区别。 替代方案有点复杂。 您可以做的是将您的菜单加载到一个单独的活动中,您将其设置为对话框窗口(您知道具有褪色的半透明背景)。 通过将Theme.Dialog样式应用于manifest.xml文件中的活动,可以轻松完成此操作:我对这个问题的解决方案是完全避免使用普通的菜单控件包含系统,而是让菜单显示一个FlowLayoutPanel ,而不是包含我的菜单项。 这需要添加一些各种技巧,以使面板与UI表现良好。 这种方法的附加优点是更灵活和对系统的控制。 在缺点方面,当我有一吨子项目时,我注意到性能下降,但我将分别对此进行调查。 My solution to this problem is to completely avoid using the normal menu control containment system and ...Stackoverflow上的这个主题描述了有趣的概念: 以下是公认答案的精髓: ParentMenu.DropDown.AutoClose = false; 它完全符合您的要求 - 在单击子项时阻止菜单关闭。 Interesting concept is described in this thread on Stackoverflow: Here is the essence of the accepted answer: ParentMenu.DropDown.AutoClose = false; ...尝试这个: var button = new ToolStripSplitButton("Save", "path to Save image"); button.ButtonClick += clickEventHandler; ToolStripSplitButton有两个点击处理程序。 一个称为“Click”,另一个称为“ButtonClick”。 此构造函数中的clickEventHandler new ToolStripSplitButton("Save", "path to Save imag ...单击特定菜单项(使用标准信号和插槽处理)后,您可以使用openUrl(const QUrl &url)在默认浏览器中启动该链接。 正如文档所述,它将会打开 ...用户桌面环境的相应Web浏览器中的给定URL,如果成功则返回true; 否则返回false。 所以不需要使用QLabel之类的花哨技巧。 Upon clicking the specific menu item (handled using your standard signals and slots) you could use openUrl ...相关文章
更多- eclipse+tomcat搭建solr
- Tomcat的部署web项目
- eclipse+tomcat+solr开发环境配置
- [ solr入门 ] - 在eclipse中发布solr
- solr学习之(九)_用solr的源码搭建eclipse+tomcat开发环境
- SonarQube集成到Eclipse中
- Gradle构建Java Web应用程序并在Tomcat上运行
- Solr基础,在Eclipse中运行Solr
- 使用eclipse创建maven项目图文详解
- eclipse环境中调试solr源代码
最新问答
更多- sp_updatestats是否导致SQL Server 2005中无法访问表?(Does sp_updatestats cause tables to be inaccessible in SQL Server 2005?)
- 如何创建一个可以与持续运行的服务交互的CLI,类似于MySQL的shell?(How to create a CLI that can interact with a continuously running service, similar to MySQL's shell?)
- AESGCM解密失败的MAC(AESGCM decryption failing with MAC)
- Zurb Foundation 4 - 嵌套网格对齐问题(Zurb Foundation 4 - Nested grid alignment issues)
- 湖北京山哪里有修平板计算机的
- SimplePie问题(SimplePie Problem)
- 在不同的任务中,我们可以同时使用多少“上下文”?(How many 'context' we can use at a time simultaneously in different tasks?)
- HTML / Javascript:从子目录启用文件夹访问(HTML/Javascript: Enabling folder access from a subdirectory)
- 为什么我会收到链接错误?(Why do I get a linker error?)
- 如何正确定义析构函数(How to properly define destructor)
- 垂直切换菜单打开第3级父级。(Vertical toggle menu 3rd level parent stay opened. jQuery)
- 类型不匹配 - JavaScript(Type mismatch - JavaScript)
- 为什么当我将模型传递给我的.Net MVC 4控制器操作时,它坚持在部分更新中使用它?(Why is it that when I pass a Model to my .Net MVC 4 Controller Action it insists on using it in the Partial Update?)
- 在使用熊猫和statsmodels时拉取变量名称(Pulling variable names when using pandas and statsmodels)
- 如何开启mysql计划事件
- 检查数组的总和是否大于最大数,反之亦然javascript(checking if sum of array is greater than max number and vice versa javascript)
- 使用OpenGL ES绘制轮廓(Drawing Outline with OpenGL ES)
- java日历格式(java Calendar format)
- Python PANDAS:将pandas / numpy转换为dask数据框/数组(Python PANDAS: Converting from pandas/numpy to dask dataframe/array)
- 如何搜索附加在elasticsearch索引中的文档的内容(How to search a content of a document attached in elasticsearch index)
- LinQ to Entities:做相反的查询(LinQ to Entities: Doing the opposite query)
- 从ExtJs 4.1商店中删除记录时会触发哪些事件(Which events get fired when a record is removed from ExtJs 4.1 store)
- 运行javascript后如何截取网页截图[关闭](How to take screenshot of a webpage after running javascript [closed])
- 如何使用GlassFish打印完整的堆栈跟踪?(How can I print the full stack trace with GlassFish?)
- 如何获取某个exe应用程序的出站HTTP请求?(how to get the outbound HTTP request of a certain exe application?)
- 嗨,Android重叠背景片段和膨胀异常(Hi, Android overlapping background fragment and inflate exception)
- Assimp详细说明typedef(Assimp elaborated type refers to typedef)
- 初始化继承类中不同对象的列表(initialize list of different objects in inherited class)
- 使用jquery ajax在gridview行中保存星级评分(Save star rating in a gridview row using jquery ajax)
- Geoxml3 groundOverlay zIndex(Geoxml3 groundOverlay zIndex)