• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Diff between JSP Page & JSP Document

 
bernard savary
Ranch Hand
Posts: 91
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 392
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 62
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic