• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Liutauras Vilda
  • Jeanne Boyarsky
  • Devaka Cooray
  • Paul Clapham
Sheriffs:
  • Tim Cooke
  • Knute Snortum
  • Bear Bibeault
Saloon Keepers:
  • Ron McLeod
  • Tim Moores
  • Stephan van Hulst
  • Piet Souris
  • Ganesh Patekar
Bartenders:
  • Frits Walraven
  • Carey Brown
  • Tim Holloway

Grails, chain forwards and values not getting set.

 
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 <*>
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!