Home Not able to pass the ID to the controller from gsp
Reply: 0

Not able to pass the ID to the controller from gsp

user1226 Published in April 26, 2018, 1:46 pm

I want to pass the id="${training.id}" to the Organization controller wiith the confirmed() function inside the controller.but when i am passing it,it is showing me the NULL result.The (id) i am printing is NULL.

gsp file

<g:each in="${trainingLists}" var="training">
    <div class="card">
        <div class="card-header">
            <h3>Organization Name:</h3>${training.organization.orgName}</div>
        <div class="card-body">
            <h3>Organization Description:</h3>${training.organization.orgDesc}</div>
        <div class="card-body">
          <h3>Training Available:</h3>${training.name}</div>
        <g:link controller="organization" action="notconfirmed">Apply</g:link>
            <g:link action="confirmed" id="${training.id}">Apply</g:link>


def confirmed(){
        def id = params.id

You need to login account before you can post.

About| Privacy statement| Terms of Service| Advertising| Contact us| Help| Sitemap|
Processed in 0.457013 second(s) , Gzip On .

© 2016 Powered by mzan.com design MATCHINFO