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 8285075
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 8, 20262026-06-08T11:21:29+00:00 2026-06-08T11:21:29+00:00

Im developing a webapp that is feeded via a server. Its index presents some

  • 0

Im developing a webapp that is feeded via a server. Its index presents some shops deals, having all of these deals ann id. In the .gsp, i have this code:

<div id="content">
<g:each in='${promos}' var='promo'>
<div id="up_box"></div>
<div class="deal_container">
    <div class="images_container"><img src="${createLink(action:'showImage',controller:'image',id:promo.fotoPrincipal.id)}" width="120" height="105" />

    </div>

    <g:link controller='promotion' action='openPromo' params="[promoid:promo.id]">

   <div class="oferta">${promo.name}</div>
   </g:link>
    <g:link controller='promotion' action='openPromo' params="[promoid:promo.id]">
    <div class="flecha">
     </div>
    </g:link>


</div>

That means, when I click in one of the links, it will open an url like this:

app/promotion/openPromo/3

In case the deal with the id “3” is clicked. I have a “general” deal details page. I want that page to load always, and fulfill its details dinamically, depending the deal the user clicked. How can I do that?

I don’t know if I have been clear in my explanation, if i haven’t please ask.

Thank you!

  • 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-06-08T11:21:32+00:00Added an answer on June 8, 2026 at 11:21 am

    Both links will be handled by the openPromo action in the PromotionController and will be passed the id of the promo as promoid.

    You can then load the appropriate promo along with any other related offers you want the user to see and give these to the view. Eg:

    class PromotionController {
    
      def openPromo() {
        Promo promo = Promo.get(params.promoid)
    
        // Load any other relevant data or offers
    
       render (view:'openPromo', model:[promo:promo, <any other model data here>]
      }
    }
    

    You can then use the model data in your gsp.

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

Sidebar

Related Questions

I am currently developing a webapp based on c# that calls some webservices. I
Developing a little survey webapp, ran into problem that deals with ranges for rating
I'm developing an intranet webapp in asp.net that has a requirement for storing user
I'm developing web app that user can save his/her work to server. The data
I'm developing an intranet-based web app that integrates with Facebook via the Graph API.
I am developing a webapp that requires setting up a DataSource with JNDI using
I have a mobile webapp that I am developing using jquery mobile. I am
I am trying to unit test a webapp that I am developing in Maven/Eclipse.
I have been developing my webapp with a certain zoom level on firefox that
I am developing a java webapp, using jsp/jquery/ejb/jboss. I have a web-form that enables

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.