Re: Custom tag attribute runtime expression containing and delimited by quotes. Supported in Tomcat, but not other JSP containers. What is the standard?

2004-11-18 Thread Sean Dockery
Hmmm...  We found in section JSP 2.6 (page 41) in the Core Syntax and 
Semantics chapter of the JSP 1.2 specification that this...

mytags:tag value=%= hi! % /

...is expressly illegal.

Should this be considered to be a bug in Jasper?

Sean Dockery [EMAIL PROTECTED] wrote in message 
news:[EMAIL PROTECTED]
 Hello,

 We recently came upon an issue in migrating our web application from 
 Tomcat 4.1.x to SAP Web AS 6.4 SP7.

 Here is an example of the offending code (which involves indexed beans 
 managed by a Struts ActionForm):

 logic:iterate ... indexId=offset
Name: html:text property=%= people[ + offset + ].name %/
 /logic:iterate

 The quotes embedded in the property attribute's runtime expression work 
 fine under Tomcat, but failed under SAP Web AS during JSP translation. 
 The Web AS JSP compiler sees the quote before the word people as the 
 closing delimiter for the property attribute value.

 We found that the following variations work in both Tomcat and SAP Web 
 AS.

 html:text property='%= people[ + offset + ].name %'/
 (using apostrophes instead of quotes to delimit the attribute values)

 html:text property=%= \people[\ + offset + \].name\ %/
 (escaping the embedded quotes)

 The former solution seems to be sanctioned (according to Google, anyway). 
 The latter solution (though looking to be pure evil) seems to solve a 
 situation where you would have both quotes and apostrophes in the same 
 attribute value.

 Is there anything in the (current or previous) JSP specification dealing 
 with quotes embedded in runtime expressions?  (It is an unfortunately 
 happy coincidence that Jasper supports embedded quotes; anyone else 
 enjoying this behaviour should be aware that it may not be supported by 
 other containers.)

 Thanks for your precious time. 




-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: Custom tag attribute runtime expression containing and delimited by quotes. Supported in Tomcat, but not other JSP containers. What is the standard?

2004-11-18 Thread Shapira, Yoav

Hi,
What happens with Tomcat 5.x?  (To which JSP Spec 2.0, not 1.2,
applies).

The reason I ask is that while you can file away bugs against 4.x to
your heart's content, it's not being actively developed and you
shouldn't hold your breath waiting for a fix.

Yoav Shapira http://www.yoavshapira.com


-Original Message-
From: news [mailto:[EMAIL PROTECTED] On Behalf Of Sean Dockery
Sent: Thursday, November 18, 2004 11:21 AM
To: [EMAIL PROTECTED]
Subject: Re: Custom tag attribute runtime expression containing and
delimited by quotes. Supported in Tomcat, but not other JSP containers.
What is the standard?

Hmmm...  We found in section JSP 2.6 (page 41) in the Core Syntax and
Semantics chapter of the JSP 1.2 specification that this...

mytags:tag value=%= hi! % /

...is expressly illegal.

Should this be considered to be a bug in Jasper?

Sean Dockery [EMAIL PROTECTED] wrote in message
news:[EMAIL PROTECTED]
 Hello,

 We recently came upon an issue in migrating our web application from
 Tomcat 4.1.x to SAP Web AS 6.4 SP7.

 Here is an example of the offending code (which involves indexed
beans
 managed by a Struts ActionForm):

 logic:iterate ... indexId=offset
Name: html:text property=%= people[ + offset + ].name %/
 /logic:iterate

 The quotes embedded in the property attribute's runtime expression
work
 fine under Tomcat, but failed under SAP Web AS during JSP
translation.
 The Web AS JSP compiler sees the quote before the word people as the
 closing delimiter for the property attribute value.

 We found that the following variations work in both Tomcat and SAP
Web
 AS.

 html:text property='%= people[ + offset + ].name %'/
 (using apostrophes instead of quotes to delimit the attribute values)

 html:text property=%= \people[\ + offset + \].name\ %/
 (escaping the embedded quotes)

 The former solution seems to be sanctioned (according to Google,
anyway).
 The latter solution (though looking to be pure evil) seems to solve a
 situation where you would have both quotes and apostrophes in the
same
 attribute value.

 Is there anything in the (current or previous) JSP specification
dealing
 with quotes embedded in runtime expressions?  (It is an unfortunately
 happy coincidence that Jasper supports embedded quotes; anyone else
 enjoying this behaviour should be aware that it may not be supported
by
 other containers.)

 Thanks for your precious time.




-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




This e-mail, including any attachments, is a confidential business 
communication, and may contain information that is confidential, proprietary 
and/or privileged.  This e-mail is intended only for the individual(s) to whom 
it is addressed, and may not be saved, copied, printed, disclosed or used by 
anyone else.  If you are not the(an) intended recipient, please immediately 
delete this e-mail from your computer system and notify the sender.  Thank you.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Custom tag attribute runtime expression containing and delimited by quotes. Supported in Tomcat, but not other JSP containers. What is the standard?

2004-11-18 Thread Sean Dockery
We won't be going to Tomcat 5 at work for a couple of months yet, but I'll 
try it out at home when I have some spare time.

Shapira, Yoav [EMAIL PROTECTED] wrote in message 
news:[EMAIL PROTECTED]

Hi,
What happens with Tomcat 5.x?  (To which JSP Spec 2.0, not 1.2,
applies).

The reason I ask is that while you can file away bugs against 4.x to
your heart's content, it's not being actively developed and you
shouldn't hold your breath waiting for a fix.

Yoav Shapira http://www.yoavshapira.com


-Original Message-
From: news [mailto:[EMAIL PROTECTED] On Behalf Of Sean Dockery
Sent: Thursday, November 18, 2004 11:21 AM
To: [EMAIL PROTECTED]
Subject: Re: Custom tag attribute runtime expression containing and
delimited by quotes. Supported in Tomcat, but not other JSP containers.
What is the standard?

Hmmm...  We found in section JSP 2.6 (page 41) in the Core Syntax and
Semantics chapter of the JSP 1.2 specification that this...

mytags:tag value=%= hi! % /

...is expressly illegal.

Should this be considered to be a bug in Jasper?

Sean Dockery [EMAIL PROTECTED] wrote in message
news:[EMAIL PROTECTED]
 Hello,

 We recently came upon an issue in migrating our web application from
 Tomcat 4.1.x to SAP Web AS 6.4 SP7.

 Here is an example of the offending code (which involves indexed
beans
 managed by a Struts ActionForm):

 logic:iterate ... indexId=offset
Name: html:text property=%= people[ + offset + ].name %/
 /logic:iterate

 The quotes embedded in the property attribute's runtime expression
work
 fine under Tomcat, but failed under SAP Web AS during JSP
translation.
 The Web AS JSP compiler sees the quote before the word people as the
 closing delimiter for the property attribute value.

 We found that the following variations work in both Tomcat and SAP
Web
 AS.

 html:text property='%= people[ + offset + ].name %'/
 (using apostrophes instead of quotes to delimit the attribute values)

 html:text property=%= \people[\ + offset + \].name\ %/
 (escaping the embedded quotes)

 The former solution seems to be sanctioned (according to Google,
anyway).
 The latter solution (though looking to be pure evil) seems to solve a
 situation where you would have both quotes and apostrophes in the
same
 attribute value.

 Is there anything in the (current or previous) JSP specification
dealing
 with quotes embedded in runtime expressions?  (It is an unfortunately
 happy coincidence that Jasper supports embedded quotes; anyone else
 enjoying this behaviour should be aware that it may not be supported
by
 other containers.)

 Thanks for your precious time.




-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Custom tag attribute runtime expression containing and delimited by quotes. Supported in Tomcat, but not other JSP containers. What is the standard?

2004-11-17 Thread Sean Dockery
Hello,

We recently came upon an issue in migrating our web application from Tomcat 
4.1.x to SAP Web AS 6.4 SP7.

Here is an example of the offending code (which involves indexed beans 
managed by a Struts ActionForm):

logic:iterate ... indexId=offset
Name: html:text property=%= people[ + offset + ].name %/
/logic:iterate

The quotes embedded in the property attribute's runtime expression work 
fine under Tomcat, but failed under SAP Web AS during JSP translation.  The 
Web AS JSP compiler sees the quote before the word people as the closing 
delimiter for the property attribute value.

We found that the following variations work in both Tomcat and SAP Web AS.

html:text property='%= people[ + offset + ].name %'/
(using apostrophes instead of quotes to delimit the attribute values)

html:text property=%= \people[\ + offset + \].name\ %/
(escaping the embedded quotes)

The former solution seems to be sanctioned (according to Google, anyway). 
The latter solution (though looking to be pure evil) seems to solve a 
situation where you would have both quotes and apostrophes in the same 
attribute value.

Is there anything in the (current or previous) JSP specification dealing 
with quotes embedded in runtime expressions?  (It is an unfortunately happy 
coincidence that Jasper supports embedded quotes; anyone else enjoying this 
behaviour should be aware that it may not be supported by other 
containers.)

Thanks for your precious time.




-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]