Thursday, March 17, 2011

Is it not possible to use System class inside JSP declarations ...

Hi Guys.....

have you ever tried to use the following code into your JSP


<%!
 System.out.println(" it is blunder");
 %>


because  jsp declarative tag is for jsp declarations only but not for the definitions


it is as simple as this


public class Demo{
System.out.println("hello world");// its is joke
public static void  main(String ar[]){
System.out.println("hello world from main");
 }

}
Thanks & Regards


Rajesh Kumar Yuvaraj

No comments:

Post a Comment