I need to pass some values to a template and then print the template. How can I achieve that? Thanks in advance.
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
As I understand, you want to automatically start printing of rendered gsp page.
You shouldn’t try to do this from the controller, the controller is used for passing parameters to .gsp page which is rendered as HTML.
You can automatically start printer by putting this javascript in your gsp file: