Win a copy of Think Java: How to Think Like a Computer Scientist this week in the Java in General forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

page language

 
Harikrishna Gorrepati
Ranch Hand
Posts: 423
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi, What is the use of saying <%@page language="java" %> ? We are not using Javascript or ASP or C language here..Do we ever use besides java? Even if I remove, I don't see any effect.
 
Bear Bibeault
Author and ninkuma
Marshal
Pie
Posts: 64827
86
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Back in the Ice Ages, when it was appropriate to include scriptlets in a JSP, this was intended to identify the scripting language, just in case any other language was ever supported in scripted pages.

Luckily, before that could happen, scriptlets went out of vogue and have been replaced by the JSTL and EL.

So the directive is doubly useless nowadays because:
  • No language but Java ever ended up being supported.
  • Even Java is no longer used in JSP pages.
  •  
    • Post Reply
    • Bookmark Topic Watch Topic
    • New Topic