• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Paul Clapham
  • Ron McLeod
  • Jeanne Boyarsky
  • Tim Cooke
Sheriffs:
  • Liutauras Vilda
  • paul wheaton
  • Henry Wong
Saloon Keepers:
  • Tim Moores
  • Tim Holloway
  • Stephan van Hulst
  • Carey Brown
  • Frits Walraven
Bartenders:
  • Piet Souris
  • Himai Minh

Diff between JSP Page & JSP Document

 
Ranch Hand
Posts: 91
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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 ?
 
Ranch Hand
Posts: 392
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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...
 
Ranch Hand
Posts: 62
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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 got this tall by not having enough crisco in my diet as a kid. This ad looks like it had plenty of shortening:
free, earth-friendly heat - a kickstarter for putting coin in your pocket while saving the earth
https://coderanch.com/t/751654/free-earth-friendly-heat-kickstarter
reply
    Bookmark Topic Watch Topic
  • New Topic