Category "setattribute"

correctly adding defer attribute to script tag with pure javascript

so I try to add a deferred script tag like this const script = document.createElement('script'); script.setAttribute('src', '/script.js'); script.setAttribu

JSP servlet JSTL

When I send attribute 'saved' from servlet to jsp, if it equals to true I show alert msg otherwise I want to assign it to false in the second refresh. Servlet: