views:

222

answers:

2

Hi,

I am using grails 1.1.1 in my application.Flash messages ,like student id created, of my application working fine in local,but when i am updating to app-engine in server flash messages are not working.

I think GAE doesnt support flashmessage from er action. If there is any solution please reposnse.

Thnks billion

A: 

I'm guessing your question is in regards to the flash.message staying persistent when deployed to app engine. Here is a grails-user mailing list thread discussing this same issue. A JIRA issue was requested but never logged. I would suggest you package up a sample project showing the issue and log the JIRA issue.

shek
+1  A: 

I am facing the same problem, even apply the workarounds suggested by other users, it doesn't work. End up, my solution to this issue is replace all flash.message to session.message and in GSP, I write the following code:

       <g:if test="${session.message}">
        <div class="message">${session.message}</div><% session.message = null %>
       </g:if>

The solution was tested in GAE production environment. I wish this is helpful to those developers still facing the same issue.

limcheekin