File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Web Component Certification (SCWCD/OCPJWCD) and the fly likes Diff between JSP Page & JSP Document Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login
JavaRanch » Java Forums » Certification » Web Component Certification (SCWCD/OCPJWCD)
Reply Bookmark "Diff between JSP Page & JSP Document" Watch "Diff between JSP Page & JSP Document" New topic
Author

Diff between JSP Page & JSP Document

bernard savary
Ranch Hand

Joined: Jan 09, 2008
Posts: 91
Hi ,
I was going through the JSP specs to read on standard actions and they always mention JSP Page and JSP document seperately . Can someone tell me what is the difference ?
Sandeep Vaid
Ranch Hand

Joined: Feb 27, 2006
Posts: 390
The difference between JSP Page and XML-BASED JSP Document is of syntax.

JSP Page
<%@ page import="java.util.*" %>

In JSP Document, the same thing will be
<jsp irective.page import="java.util.*" >

Similarly there are more tags in JSP Document.

It's explained in HFSJ, in web-deployment chapter...
Aditya Singh
Ranch Hand

Joined: Mar 06, 2008
Posts: 62
There are three main difference:
1. In JSP page we can put normal text but in JSP Document hav <jsp:text> tag.
2. There is no taglib attribute in page directive, its defined as a part of xml root defination of JSP Documents <jsp:root .. xmlns:myLib="location"
version="sth" > (xmlns XML name space)
3.Request time attribute expression for Document is %=expr% rather then <%=expr%>.
 
I agree. Here's the link: http://ej-technologies/jprofiler - if it wasn't for jprofiler, we would need to run our stuff on 16 servers instead of 3.
 
subject: Diff between JSP Page & JSP Document
 
Similar Threads
to know the name of the previous page
<jsp:expression>
Standard actions in a JSP document?
Coffee Cram, Chap 11, Q 7
diff between Jsp Document And Jsp Page