• Post Reply Bookmark Topic Watch Topic
  • New Topic

Help with Web page  RSS feed

 
Ranch Hand
Posts: 206
1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I have a Java application and it uses various Freemarker templates to created Web pages for a Web site. Here is a snippet of one of my Freemarker templates that will display the fee description, fee charge, and an add button. The fee has to do with charges that pertain to automobiles. When I click on the "Add" button, I will be taken to another Web page. How would I send the fee.description and the fee.charge to the other page when I click on the "Add" button?

<tr class="${rowclass}">
<td class="leftalign">${Fee.description}</td>
<td class="centeralign"><#if Fee.charge??><#if Fee.charge?trim?upper_case != "No Charge"?trim?upper_case && lot.workOrderFee.charge?trim?upper_case != "Market Price"?trim?upper_case >$</#if>${Fee.charge}</#if></td>
<td class="rightalign">
<input type="button" name="buttonsub" id="buttonsub" onclick="javascript:window.location='myPage.html'" value="Add"/>
</td>


</tr>
 
Rancher
Posts: 42972
73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Possibly as URL parameters:

window.location='myPage.html?charge=${Fee.charge}&desc=${Fee.description}'

URL parameters are of course amenable to client-side tinkering - which may or may not be a security consideration you need to take into account.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!