This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
The moose likes JSP and the fly likes <jsp:directive.page contentType='application/javascript' />   vs  <%@ page contentType='applicatio 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 "<jsp:directive.page contentType= Watch "<jsp:directive.page contentType= New topic
Author

<jsp:directive.page contentType='application/javascript' /> vs <%@ page contentType='applicatio

Kasun Wixkramanayake
Ranch Hand

Joined: Feb 09, 2010
Posts: 74
what is the difference between


<jsp:directive.page contentType='application/javascript' />
and


<%@ page contentType='application/javascript' %>
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 60759
    
  65

None. The former is rarely used.


[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: <jsp:directive.page contentType='application/javascript' /> vs <%@ page contentType='applicatio
 
Similar Threads
How to show word file in IE with JSP coding
Display pdf in browser
JSF chart and Chinese font
jsp page appears in xml tree format. how can i fix this?
JSP to RTF renders as text