![](https://img-blog.csdnimg.cn/20201014180756754.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
grails
zoneya
这个作者很懒,什么都没留下…
展开
-
webflow不能在wap中使用
主要是事件触发的html控件在wml里<a href="" event="e">可以使用但wml没有submit,只有<go href="" method="post">,不知道webflow里使用submit的原理是什么,网上没搜到...原创 2008-08-11 19:15:07 · 89 阅读 · 0 评论 -
Mail Plugin插件使用的问题
按照http://www.grails.org/Mail+Plugin的说明安装此插件,然后再Config.groovy里加入//grails.mail.default.from="server@yourhost.com"grails { mail { host = "smtp.gmail.com" port = 465 username = "youracount@g...原创 2008-08-11 19:16:06 · 1162 阅读 · 0 评论 -
Premature end of file错误
搜索了一下,java里面也发生这种错误,说是xml输出时的问题在grails的jira里面看到,这个问题好像是某些浏览器accept头的问题,1.0.4版本已修正这个bug,1.0.3在config.groovy里面 grails.mime.types = [ html: ['text/html','application/xhtml+xml'],xml: ['text/xml', 'app...原创 2008-08-13 22:12:34 · 880 阅读 · 0 评论 -
在src/groovy中获得domain和service
import org.codehaus.groovy.grails.commons.ApplicationHolder//…def book = ApplicationHolder.application.getClassForName("Book").findByTitle("Groovy in Action") ----------------------------------...原创 2008-08-13 22:49:34 · 143 阅读 · 0 评论 -
get a resource from the servletContext or applicat
To get the ApplicationContext, have your service implement ApplicationContextAware and declare an 'applicationContext' field. Then from within your service: def resource = applicationContext.getRe...原创 2008-08-13 22:52:42 · 93 阅读 · 0 评论 -
gsp修改自动生效
gsp在tomcat下部署后,每次更改都需要重新启动tomcat才能生效之前大家也一直在问这个问题,这次终于从Graeme Rocher哪里知道了一个方法设置grails.gsp.enable.reload=true 就可以了,哈哈不过这样会影响性能 原文:http://markmail.org/message/3eqhbi7lg3p5c3gp#query:+page:1+mi...原创 2008-08-13 23:01:18 · 272 阅读 · 0 评论 -
定制Grails的web.xml
Grails的web.xml是自动生成的。如果需要修改web.xml该怎么办?先说一下grails的web.xml的产生过程Grails的web.xml是在Package.groovy的generateWebXml target中生成的。可以在%Grails_Home%/scripts下找到它。其实在运行grails war时也是先走的这一步。在generateWebXml里1.先判断有没...原创 2008-08-24 01:23:59 · 123 阅读 · 0 评论