aspose file tools*
The moose likes Web Component Certification (SCWCD/OCPJWCD) and the fly likes Page Directive Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Spring in Action this week in the Spring forum!
JavaRanch » Java Forums » Certification » Web Component Certification (SCWCD/OCPJWCD)
Bookmark "Page Directive" Watch "Page Directive" New topic
Author

Page Directive

dennis zined
Ranch Hand

Joined: Mar 07, 2003
Posts: 330
Reading SCWCD by Hanumant Deshmukh, et. al, I came across this statement on 'Directives':

There must be no space between the equals sign (=) and the value.


I wrote a simple JSP to test this and works fine. Here's my code:



Am I missing something or is that statement not true at all?

Thanks.


SCJP 1.4<br />SCWCD 1.4
Vishnu Prakash
Ranch Hand

Joined: Nov 15, 2004
Posts: 1026
I don't think this statement is correct. The only condition is when you are using expression then there should be no space between percentage and equal sign like





Servlet Spec 2.4/ Jsp Spec 2.0/ JSTL Spec 1.1 - JSTL Tag Documentation
Alexander Kolesnikov
author
Ranch Hand

Joined: Feb 26, 2005
Posts: 99
I'd say this book is not precise in several areas. For example they go into great details writing about URI used in custom tag libraries. They explain that those URI can be absolute, root relative, non-root relative... When perhaps the most important thing about those URI is that they should bu unique. Nothing is written about that. And if you use the real relative path to your library it will hardly be unique. You don't have to use a real path - but the authors don't mention this.


Alexander Kolesnikov<br />Java Web Developer<br />SCJP 1.4, SCWCD 1.4, SCBCD 1.3<br /><a href="http://sundraw.ws" target="_blank" rel="nofollow">Tapestry 5: Building Web Applications</a><br /><a href="http://sundraw.ws/batik.jsp" target="_blank" rel="nofollow">Java Drawing With Apache Batik</a>
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Page Directive