How to access a request paramater from the page url in HTL(sightly)

Avatar

Avatar

rohitn62196663

Avatar

rohitn62196663

rohitn62196663

26-09-2016

I am converting a component from JSP to HTL(Sightly). In the existing jsp file we are getting the req paramater using the following code:
request.getAttribute("urlAttr");

Similarily, I want to access the above url request paramater using sighlty tags. Is there any sightly tag to get the current request object and get the request params from that ?

I dont want to use the JAVA USE API for this one. I just want to do it in the html file itself using sightly tags so that I can avoid the server side code.

Thanks.

View Entire Topic

Avatar

Avatar

rohitn62196663

Avatar

rohitn62196663

rohitn62196663

27-09-2016

Thanks for the suggestion. I will try that. 

I am aware of the second approach i.e. java class but I dont want to use that just to get the req params from request object.