Link to home
Start Free TrialLog in
Avatar of Nika Gudge
Nika GudgeFlag for United States of America

asked on

How to retrieve the HTTPServletResponse header field in script tag

I'm creating a nonce in Servlet and adding this nonce variable to HTTPServletResponse header field as below:
String randomUUIDString = UUID.randomUUID().toString();
res.addHeader("randomUUIDString", randomUUIDString);

My question is how do i retrieve this header value in the script tag in xslt

login.xsl has the <script randomUUIDString ="${randomUUIDString}" language="JavaScript"/>

I'm using randomUUIDString ="${randomUUIDString}" in the script tag as shown above. Is that the correct way of doing it?
ASKER CERTIFIED SOLUTION
Avatar of Siva Prasanna Kumar
Siva Prasanna Kumar
Flag of India image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial