File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes JSP and the fly likes page language Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Java » JSP
Bookmark "page language" Watch "page language" New topic
Author

page language

Harikrishna Gorrepati
Ranch Hand

Joined: Sep 23, 2010
Posts: 422
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.


OCPJP 6.0-81% | Preparing for OCWCD
http://www.certpal.com/blogs/cert-articles | http://sites.google.com/site/mostlyjava/scwcd |
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 60739
    
  65

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.


  • [Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
     
    I agree. Here's the link: http://aspose.com/file-tools
     
    subject: page language
     
    Similar Threads
    scripting allow in tag file??
    page directive
    Help Me
    implicit object "page"
    To author