现在的位置: 首页 > 综合 > 正文

用dreamweaver 8打开gsp文件

2013年09月20日 ⁄ 综合 ⁄ 共 512字 ⁄ 字号 评论关闭

没办法,dreamweaver暂时不支持grails,但为了编辑GSP文件方便,可以看到设计时的状态,可以这样做
1 打开dw 8安装时的目录
  /Documents and Settings/username/Application Data/Adobe/Dreamweaver 8/Configuration,
在其中的extenstion.txt文件中的第一行,有很多文件后缀的,加入gsp
在最后一行,加入
gsp:grails文件。
  这样以后dw8里,打开的设置里,可以选出gsp的文件来打开
2 打开configuration/DocumentTypes/MMDocumentTypes.xml这个文件
找到"jsp",加入gsp,如下
<documenttype id="JSP" servermodel="JSP" internaltype="Dynamic" winfileextension="jsp,jst,gsp" macfileextension="jsp,jst" file="Default.jsp" writebyteordermark="false">
这样打开gsp文件后,就可以切换到设计状态了,不用再是只看到代码状态的view了

抱歉!评论已关闭.