My JSP used to get compiled (to Java code) whenever I made any valid changes to it before. Now when I write Java code (as simple as creating string with hard coded string value) inside that JSP page, it does not compile and as a result of that, I can't see any change reflected when I run the JSP. However when I write log statement or System.out.println(), it works. Strange thing is: System.out.println() is also Java Code. Please note that JSP file is included (with <%@ include..) inside another JSP file (Parent). When I write Java code in Parent JSP, it just works. Please rest assured that: Java code that I wrote is correct and include directive (<%@ include..) is also correct (I have not make any change to that)
If I put the following code in already compiling and running JSP (Child), JSP file does not simply compile.
String myString = "Hello bro"
If I put the following code, it just works- meaning it gets compiled and it gets reflected when I run the JSP.
There should be some problem with compiling Java code in inner (child) JSP.
Thanks for your help guys!