Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 5957395
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 22, 20262026-05-22T18:23:40+00:00 2026-05-22T18:23:40+00:00

My controller is the folowing: def participated = { def temp = ConferenceUser.get(params.temp) def

  • 0

My controller is the folowing:

def participated = {
  def temp = ConferenceUser.get(params.temp)

  def prizes = Prizes.findAllByConferenceUser(temp) // find all rooms where current computer is
  def subms = Submissions.findAllByConferenceUser(temp) // find all rooms where current computer is

  [temp: temp, priz: prizes, subm: subms]
}

But somehow, when I successfully update a conference value, I wanna go back to the initial page (participated) but I don’t know how to pass back the params.temp. (if I do a simple redirect, as the controller is expecting params.temp, it will give me an error because I cannot search prizes with a null object as parameter. So, imagine my update controller is the following:

def update = {
  def saveParamshere = params.temp
  ...
  ...
  (code here)
  ...
  ...

  redirect(action: "participated", params: [temp: saveParamshere])
}

This code isn’t working. How can I successfully go back to my main page and pass in params.temp ?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-22T18:23:41+00:00Added an answer on May 22, 2026 at 6:23 pm

    I think the problem may be, that you are calling update action by submitting form (I suppose). Maybe you are not passing temp value from that form? You can do it by embedding temp as hidden input field into form, or apply it to url by param attribute on form tag.

    Using hidden field it might be something like this (in your view file):

    <g:form controller="somecontroller" action="update">
      (...)
      <g:hiddenField name="temp" value="${temp}" />
      (...)
    </g:form>
    

    Using params attribute:

    <g:form controller="somecontroller" action="update" params="[temp : temp]">
      (...)
    </g:form>
    

    I didn’t test any of these so there might be some issues, especially in the second approach.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have the following controller code: def calculate_quote @mouldings = Moulding.find( params[:id].split(,), :select =>
In my controller's create action, I have the following: def create @article = Article.find(params[:id])
Given the following controller code def update params[:image][:contributor_ids] ||= [] params[:image][:category_ids] ||= [] @image
In my companies_controller, I have the following: def show @company = Company.find(params[:id], :conditions =>
Here's my controller method def check @added_word = Word.where(:word => params[:word][:word]).first respond_to do |format|
I have the following controller action: def create @board = Board.new(params[:board]) respond_to do |format|
I have the following controller code: def create @admin = Admin.new(params[:admin]) respond_to do |format|
I have following controller: def personalization @title = t generic.forms.personalization end def update_personalization begin
Take the following controller: package test class TestController { static defaultAction = test def
I have the following controller: class FirstController < ApplicationController helper_method :contoller_method private def contoller_method

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.