Two Laptop Bag
The moose likes Web Component Certification (SCWCD/OCPJWCD) and the fly likes Doubt in page attribute Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Certification » Web Component Certification (SCWCD/OCPJWCD)
Bookmark "Doubt in page attribute" Watch "Doubt in page attribute" New topic

Doubt in page attribute

V Gala
Ranch Hand

Joined: Aug 06, 2007
Posts: 113
Difference between
<%@ page contentType="image/svg" %>
<%@ page pageEncoding="image/svg" %>

Are page Atttribute Case-sensitive
<%@ page CONTENTTYPE="image/svg" %>
is valid?
Nitin Vashishtha
Ranch Hand

Joined: Mar 26, 2008
Posts: 31
page Atttributes are Case-sensitive
hence <%@ page CONTENTTYPE="image/svg" %>
will not work and will through a 500 server error(jsp invalid attribute: CONTENTTYPE) when you will run your jsp page.

SCJP 91%, TOFAG 9 certified 89%
I agree. Here's the link:
subject: Doubt in page attribute
jQuery in Action, 3rd edition