Win a copy of Think Java: How to Think Like a Computer Scientist this week in the Java in General forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Grails, chain forwards and values not getting set.

 
Lori Cook
Greenhorn
Posts: 7
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Folks

Please help someone who has had to teach themselves how to do Grails...

I have some code that is trying to call a controller to do some work, then call another controller to do some work and then back to the original controller. I need to pass an id along the chain but after the first forward, the value becomes null. Why? And how do I do it right? The code is this:


I tried putting the id in the params ("params: [companyName: params.companyName, id: id]") when passing back to the RoomController, but it was still null. Even tried creating a new version of the id and passing it - still came through as null. I suspect (but have not tried), that the companyName getting passed get nulled too.

What am I doing wrong?

Lori <*>
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic