title: how to replace coding in gsp?
body: <p>how to replace the coding in the finePrint?</p>
  
  <p><img src="https://i.stack.imgur.com/UmIYy.png" alt="enter image description here"></p>
  
  <p>that large textArea i call "finePrint"...
  this is my problem...i am confusing..
  when i filled with HMTL's coding..with ${name} on gsp..
  like this..</p>
  
  <p><img src="https://i.stack.imgur.com/ic66j.png" alt="enter image description here"></p>
  
  <p>look the arrow...thats have a button submit at below finePrint..when i click that...
  the g:textField of "Your Name" thats i fill with "Bobby"..it will be replace in the finePrint with ${name}..</p>
  
  <p>this ini my gsp coding where i fill it to finePrint..</p>
  
  <pre><code>&lt;table align="center" &gt;
  
              &lt;tbody&gt;
              &lt;tr style="border-spacing:0!important;border-collapse:collapse!important;color:#666666;background-color:#F8F8F8" align="center"&gt;
                  &lt;td style="padding:35px 75px 60px 75px;background-color:#fafafa;"&gt;
                      &lt;table style="border-spacing:0!important;border-collapse:collapse!important;color:#666666;" width="80%"&gt;
                      &lt;tbody&gt;
                      &lt;tr&gt;
                          &lt;td&gt;
                              &lt;p align="center"&gt;&lt;img alt="Tempo AI" border="0"/&gt;&lt;/p&gt;
                              &lt;h1 style="font-family:Arial,Helvetica,sans-serif;color:#ee710b;font-size:30px;font-weight:normal;width:450px"&gt;${name}, you requested to reset your Password&lt;/h1&gt;
                              &lt;p style="padding:0;margin:0 0 15px 0;"&gt;To reset your password, just click the link below.&lt;/p&gt;
                              &lt;p style="padding:0;margin:0 0 15px 0;"&gt;&lt;a href="" style="color:#44b1d9;"&gt;Reset Password&lt;/a&gt;&lt;/p&gt;
                              &lt;p style="padding:0;margin:0;"&gt;Best,&lt;/p&gt;
                              &lt;p style="padding:0;margin:0;color:#bcbcbc;font-size:20px;"&gt;Tempo Team&lt;/p&gt;                  
                          &lt;/td&gt;
                      &lt;/tr&gt;
                      &lt;/tbody&gt;
                      &lt;/table&gt;
                  &lt;/td&gt;
              &lt;/tr&gt;
  
              &lt;tr style="font-family:Arial, Helvetica, sans-serif;padding-top:15px;" align="center" &gt;
                  &lt;td style="font-family:Arial, Helvetica, sans-serif;padding-top:15px;" align="center"&gt;
                      &lt;p style="margin-top:0;margin-bottom:10px;"&gt;
                          &lt;a href="http://www.facebook.com" style="text-decoration:none;"&gt;
                              &lt;img alt="Facebook"  border="0"/&gt;
                          &lt;/a&gt;
                           &amp;nbsp;&amp;nbsp;&amp;nbsp;
  
                          &lt;a href="http://www.twitter.com" style="text-decoration:none;"&gt;
                              &lt;img alt="Twitter" border="0"/&gt;
                          &lt;/a&gt;
                          &amp;nbsp;&amp;nbsp;&amp;nbsp;
  
                          &lt;a href="http://www.plus.google.com" style="text-decoration:none;"&gt;
                              &lt;img alt="Google+" border="0"/&gt;
                          &lt;/a&gt;
                          &amp;nbsp;&amp;nbsp;&amp;nbsp;
  
                          &lt;a href="http://www.mail.yahoo.com" style="text-decoration:none;"&gt;
                              &lt;img alt="Email" border="0"/&gt;
                          &lt;/a&gt;
                      &lt;/p&gt;
                      &lt;p style="margin-top:0;margin-bottom:8px;font-size:12px;font-weight:bold;"&gt;
                          &lt;a style="color:#666666;text-decoration:none;"&gt;
                              ABOUT
                          &lt;/a&gt;
                          &amp;nbsp;&amp;nbsp;&amp;nbsp;
                          &lt;a style="color:#666666;text-decoration:none;"&gt;
                              PRIVACY
                          &lt;/a&gt;
                          &amp;nbsp;&amp;nbsp;&amp;nbsp;
                          &lt;a style="color:#666666;text-decoration:none;"&gt;
                              TERM OF USE
                          &lt;/a&gt;
                      &lt;/p&gt;
                      &lt;p style="padding:0;margin:0;font-size:10px;color:#999999;font-weight:bold;"&gt;
                          If you would like to change your email notification settings 
                          &lt;a style="color:#44b1d9;" href="www.w3school.com"&gt;click here&lt;/a&gt;
                      &lt;/p&gt;
                      &lt;p style="padding:0;margin:0;font-size:10px;color:#999999;font-weight:bold;"&gt;
                          © 2012 Tempo
                      &lt;/p&gt;
  
                  &lt;/td&gt;               
              &lt;/tr&gt;
              &lt;/tbody&gt;
          &lt;/table&gt;
  </code></pre>
  
  <p>and this is my SMTP coding when i click submit..it will send email to abc@yahoo.com</p>
  
  <pre><code>def send = {    
          sendMail {
              multipart true          
              to params.email
              from "s_yoshitsune@yahoo.com"
              subject "Test Reset Password"
              html params.finePrint
          }       
          render params.finePrint
      }
  </code></pre>
  
  <p>and the result when i received email..</p>
  
  <p><img src="https://i.stack.imgur.com/JDE4W.png" alt="enter image description here"></p>
  
  <p>i want the ${name} replaced by my name(Bobby) where i fill before</p>
  
  <p>this is coding for submit email address..</p>
  
  <pre><code>&lt;!DOCTYPE html&gt;
  &lt;html&gt;
  &lt;head&gt;
      &lt;meta name="layout" content="main"/&gt;
      &lt;g:javascript src='jquery-1.6.2.min.js'/&gt;
      &lt;g:javascript src='jquery.cleditor.min.js'/&gt;
      &lt;g:javascript src='test.js'/&gt; &lt;%-- cara import file JavaScript/ JS --%&gt;
      &lt;link rel="stylesheet" href="${resource(dir: 'css', file: 'cleditor/jquery.cleditor.css')}" type="text/css"&gt; &lt;%-- cara import file CSS --%&gt;
      &lt;title&gt;Reset Password&lt;/title&gt;
  
  &lt;/head&gt;
  
  &lt;body&gt;
  
      &lt;g:form action="send"&gt;
          &lt;table style="width:500px"&gt;
              &lt;tbody&gt;
                  &lt;tr&gt;
                      &lt;td&gt;Your Email Address  &lt;/td&gt;
  &lt;%--                    &lt;td&gt;&lt;input style="width:250px" name="email" /&gt;&lt;/td&gt;--%&gt;
                      &lt;td&gt;&lt;g:textField style="width:250px" name = "email"/&gt;&lt;/td&gt;
                  &lt;/tr&gt;
                  &lt;tr&gt;
                      &lt;td&gt;Your Name&lt;/td&gt;
                      &lt;td&gt;&lt;g:textField style="width:250px" name = "user"/&gt;&lt;/td&gt;
                  &lt;/tr&gt;
                  &lt;tr&gt;
                          &lt;td colspan="4"&gt;                            
                              &lt;g:textArea name="finePrint"/&gt;
                          &lt;/td&gt;
  
                   &lt;/tr&gt;              
                  &lt;tr&gt;
                      &lt;td&gt;&lt;input type="submit"/&gt;&lt;/td&gt;
                  &lt;/tr&gt;
              &lt;/tbody&gt;
          &lt;/table&gt;
      &lt;/g:form&gt;
  &lt;div id="finePrintBlank" style="display:none;" title="${message(code: 'campaign.finePrint.label')}"&gt;
      &lt;p&gt;${message(code: 'default.blank.message', args: [message(code: 'campaign.finePrint.label')])}&lt;/p&gt;
  &lt;/div&gt;
  
  &lt;/body&gt;
  
  &lt;/html&gt;
  </code></pre>