Hi Chloe,
It's quite simple, If you are using this in webapp then you have two options
1. use parameters available in web app under properties.
2. use this in your script this.webApp.request.getParameter("cval");
if you are using a jssp page or java script templates or codes use below
request.getParameter("cval");
Regards,
Amit