简体   繁体   English

如何获取Dashcode打开JSP文件?

[英]How can I get Dashcode to open JSP files?

A simple tools question but it's driving me nuts. 一个简单的工具问题,但这让我发疯。

I have some .jsp files on my computer that I associated with Dashcode, figuring it would be a suitable editor. 我在计算机上有一些与Dashcode关联的.jsp文件,认为它是合适的编辑器。 But when I try to open the files, all I get is a dialog box that says, "Dashcode cannot open files of this type". 但是,当我尝试打开文件时,得到的只是一个对话框,上面写着“ Dashcode无法打开这种类型的文件”。

I thought there'd be an easy way to fix this but I can't find it. 我认为有一种简单的方法可以解决此问题,但我找不到。 Nowhere in Dashcode's preferences can I find any list of valid file extensions. 在Dashcode的首选项中,我找不到任何有效文件扩展名的列表。 I poked around its resources folder for a while and couldn't find it there either. 我在资源文件夹中闲逛了一会儿,也找不到它。

The Dashcode menubar is visible when the error is up, so I'm guessing that this is Dashcode itself complaining that it cannot open this file rather than the OS preventing it from trying. 错误出现时,Dashcode菜单栏可见,因此我猜测这是Dashcode本身在抱怨它无法打开此文件,而无法阻止操作系统尝试打开该文件。

How exactly does this work? 这是如何工作的? Is Dashcode really just hard-coded to recognize only files of certain types by their file extension? Dashcode真的是硬编码的,只能通过文件扩展名识别某些类型的文件吗? Isn't there a way to change it? 有没有办法改变它?

Thanks, Frank 谢谢,弗兰克

Dashcode uses html, javascript and css to write either dashboard widgets or web applications that will run on an http server. Dashcode使用html,javascript和css编写将在http服务器上运行的仪表板小部件或Web应用程序。 JSP files are for running on a Java server such as Tomcat and so Dashcode will not open them because a dashcode project is not targeted for an environment where they will be supported so there would be no point putting the file into the project. JSP文件用于在诸如Tomcat之类的Java服务器上运行,因此Dashcode不会打开它们,因为dashcode项目并非针对将要支持它们的环境,因此没有必要将文件放入项目中。

In a similar way you cannot use PHP files as the target environment cannot guarantee to have a PHP interpreter installed. 以类似的方式,您不能使用PHP文件,因为目标环境不能保证安装PHP解释器。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM