jQuery in Action, 2nd edition*
The moose likes Web Component Certification (SCWCD/OCPJWCD) and the fly likes JSP Specs, Chap 5, Qeustion????? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Certification » Web Component Certification (SCWCD/OCPJWCD)
Bookmark "JSP Specs, Chap 5, Qeustion?????" Watch "JSP Specs, Chap 5, Qeustion?????" New topic
Author

JSP Specs, Chap 5, Qeustion?????

Guy Allard
Ranch Hand

Joined: Nov 24, 2000
Posts: 776
Hi - The 1st page of the chapter, the second paragraph after the bullets says:
" ...... but it is not valid to intermix 'standard
syntax' and XML syntax inside the same source
file."
But??? I do this all the time, for example:
<jsp:useBean id=....yada, yada ..../>
<!-- And later .... -->
<%= new java.util.Date() %>
The example is intermixed, isn't it??
What am I missing here??? I am thinking there is something simple I am failing to observe.
Regards, Guy
[ February 07, 2002: Message edited by: Guy Allard ]
Ijlal Jinnah
Greenhorn

Joined: Nov 25, 2001
Posts: 21
Yes, Guy, I think you are missing something here. The title of the article says it all:
"JSP.5.1 Uses for XML Syntax for JSP Pages"
...
"A JSP page in either syntax can include via a directive a JSP page in either syntax. It is not valid, however, to intermix standard JSP syntax and XML syntax inside the same source file."
It simply means that it is not valid to write both type of 'syntaxes' for a tag that has both the versions available, e.g.
<%= new java.util.Date()%> // std. JSP Syntax
<jsp:expression>new java.util.Date()</jsp:expression> // invalid if used with above.
This is in cases where standard JSP syntax and XML equivalent are both available and as such does not apply to your example where <jsp:useBean/> is the only available, or standard syntax!
Well this is what I gathered from the specs. I might be wrong though!


Syed Ijlal Hussain-Jinnah<br /> <br />SCWCD, OOAD(IBM-486), SCJP-2
Guy Allard
Ranch Hand

Joined: Nov 24, 2000
Posts: 776
Ah, for a given tag!!
I will experiment some with this ......
Thanks, Guy
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: JSP Specs, Chap 5, Qeustion?????