From this declaration, it means that scripting is not allowed in do.jsp. My question is what happen if we declare scripting in do.jsp 1. Scripting Not evaluated and print nothing or 2. Scripting not evaluated and exception is thrown
Could anyone please explain about this? I am still new about this.
If you use any declaration, expression or scripting in a JSP whose <scripting-invalid> element is set to true, it will throw the exception with the following message:
But i read in HFS that as per final JSP sepcs you now can not specify the <scripting-invalid> element through JSP. you have to declare it only in DD for the required JSP. What about this?
That is exactly true. Scripting cannot be disabled at page level through Page directive attribute in the JSP. However you can make scripting invalid for a particular JSP using <url-pattern> element in web.xml file as shown below: