aspose file tools*
The moose likes Web Component Certification (SCWCD/OCPJWCD) and the fly likes Standard actions in a JSP document? 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 "Standard actions in a JSP document?" Watch "Standard actions in a JSP document?" New topic
Author

Standard actions in a JSP document?

Jan Sterk
Ranch Hand

Joined: Jun 06, 2008
Posts: 139
Is it possible?

E.g. there is a <jsp:include> in a JSP page, but can we use it in a JSP document?


SCJP 1.4 (81%)<br />SCWCD 5 (95%)
Christophe Verré
Sheriff

Joined: Nov 24, 2005
Posts: 14688
    
  16

Why couldn't you ? It's a well-formed tag, isn't it ?


[My Blog]
All roads lead to JavaRanch
Ramesh Ponnada
Greenhorn

Joined: Nov 05, 2004
Posts: 18
Just curious, is there any difference between JSP page and JSP document ?


Thanks<br />Ramesh <br />SCJP 5.0 | SCWCD 5.0
Christophe Verré
Sheriff

Joined: Nov 24, 2005
Posts: 14688
    
  16

An JSP document is written in XML, so it must be well formed. Which means that directives like <%@ page ... %> cannot be used directly. Special tags must be used instead, <jsp irective.page ... /> in this case.
Ramesh Ponnada
Greenhorn

Joined: Nov 05, 2004
Posts: 18
Chris, Thanks for clarifying
Jan Sterk
Ranch Hand

Joined: Jun 06, 2008
Posts: 139
Thanks Chris.

Never knew that smileys were allowed in jsp docs
Christophe Verré
Sheriff

Joined: Nov 24, 2005
Posts: 14688
    
  16

doooh
 
Don't get me started about those stupid light bulbs.
 
subject: Standard actions in a JSP document?