Re: JSP comment tag.
Hi Jose, I havent tried this. What I feel is you have given browser comment. Try giving jsp comments and see. jsp comments are shown below %% From: Jose Mena [EMAIL PROTECTED] Reply-To: Orion-Interest [EMAIL PROTECTED] To: Orion-Interest [EMAIL PROTECTED] Subject: JSP comment tag. Date: Fri, 15 Mar 2002 11:50:11 +0100 Hi, I have a problem when putting comments in JSP code. Orion doesn't process the code inside a comment, but if i look at the sun's jsp reference(http://java.sun.com/products/jsp/tags/11/syntaxref11.fm1.html) it says that the server must process it when it's put inside a comment. Here you are an example extracted from the browser's source code(Explorer): !-- tr td% if (modem) { % img src=../images/ok.gif % }else{ % img src=../images/notok.gif % } %/td tdimg src=../../images/blank.gif width=8/td tdfont face=verdana size=1bModem pitican + Tarjeta Ethernet:/bfont/td tdimg src=../../images/blank.gif width=8/td tdfont face=verdana size=1b400.00 euro;/bfont/td tdimg src=../../images/blank.gif width=8/td % if (tipprod == 3) { % td% if (maskwan) { % img src=../images/ok.gif % }else{ % img src=../images/notok.gif % } %/td tdimg src=../../images/blank.gif width=8/td td font face=verdana size=1bMask WAN:/b/font/td tdimg src=../../images/blank.gif width=8/td td nowrapfont face=verdana size=1b40.08 euro;/bfont/td % } else { % td% if (inst_mod) { % img src=../images/ok.gif % }else{ % img src=../images/notok.gif % } %/td tdimg src=../../images/blank.gif width=8/td tdfont face=verdana size=1bInstalación y configuración de Modem:/b/font/td tdimg src=../../images/blank.gif width=8/td td nowrapfont face=verdana size=1b40.08 euro;/bfont/td % } % /tr -- as you can see it shows my code to the end user's browser without processing it. Do you know if there is a setting that controls the comment processing behaviour in orion? Thank you. _ Send and receive Hotmail on your mobile device: http://mobile.msn.com
Re: JSP comment tag.
Hi, Jose td% if (modem) { % img src=../images/ok.gif % }else{ % img No one promise to run code in comments. ONLY EXPRESSIONS allowed there. From Sun site: Generates a comment that is sent to the client. JSP Syntax !-- comment [ %= expression % ] -- Expressions are working fine for me. Regards, D.S. - Original Message - From: prasanth sb [EMAIL PROTECTED] To: Orion-Interest [EMAIL PROTECTED] Sent: Friday, March 15, 2002 10:38 AM Subject: Re: JSP comment tag. Hi Jose, I havent tried this. What I feel is you have given browser comment. Try giving jsp comments and see. jsp comments are shown below %% From: Jose Mena [EMAIL PROTECTED] Reply-To: Orion-Interest [EMAIL PROTECTED] To: Orion-Interest [EMAIL PROTECTED] Subject: JSP comment tag. Date: Fri, 15 Mar 2002 11:50:11 +0100 Hi, I have a problem when putting comments in JSP code. Orion doesn't process the code inside a comment, but if i look at the sun's jsp reference(http://java.sun.com/products/jsp/tags/11/syntaxref11.fm1.html) it says that the server must process it when it's put inside a comment. Here you are an example extracted from the browser's source code(Explorer): !-- tr td% if (modem) { % img src=../images/ok.gif % }else{ % img src=../images/notok.gif % } %/td tdimg src=../../images/blank.gif width=8/td tdfont face=verdana size=1bModem pitican + Tarjeta Ethernet:/bfont/td tdimg src=../../images/blank.gif width=8/td tdfont face=verdana size=1b400.00 euro;/bfont/td tdimg src=../../images/blank.gif width=8/td % if (tipprod == 3) { % td% if (maskwan) { % img src=../images/ok.gif % }else{ % img src=../images/notok.gif % } %/td tdimg src=../../images/blank.gif width=8/td td font face=verdana size=1bMask WAN:/b/font/td tdimg src=../../images/blank.gif width=8/td td nowrapfont face=verdana size=1b40.08 euro;/bfont/td % } else { % td% if (inst_mod) { % img src=../images/ok.gif % }else{ % img src=../images/notok.gif % } %/td tdimg src=../../images/blank.gif width=8/td tdfont face=verdana size=1bInstalación y configuración de Modem:/b/font/td tdimg src=../../images/blank.gif width=8/td td nowrapfont face=verdana size=1b40.08 euro;/bfont/td % } % /tr -- as you can see it shows my code to the end user's browser without processing it. Do you know if there is a setting that controls the comment processing behaviour in orion? Thank you. _ Send and receive Hotmail on your mobile device: http://mobile.msn.com
Re: JSP comment tag.
That's actually a little incorrect - what Orion is doing is spec compliant. Scriptlets are not processed within comments ie (% %) BUT expressions are (ie %= %). Who knows why they designed the spec like this ;) Cheers, Mike Mike Cannon-Brookes [EMAIL PROTECTED] ATLASSIAN - Your J2EE Expert Partner Brilliant Software - http://www.atlassian.com/software Legendary Services - http://www.atlassian.com/support On 15/3/02 9:50 PM, Jose Mena ([EMAIL PROTECTED]) penned the words: Hi, I have a problem when putting comments in JSP code. Orion doesn't process the code inside a comment, but if i look at the sun's jsp reference(http://java.sun.com/products/jsp/tags/11/syntaxref11.fm1.html) it says that the server must process it when it's put inside a comment. Here you are an example extracted from the browser's source code(Explorer): !-- tr td% if (modem) { % img src=../images/ok.gif % }else{ % img src=../images/notok.gif % } %/td tdimg src=../../images/blank.gif width=8/td tdfont face=verdana size=1bModem pitican + Tarjeta Ethernet:/bfont/td tdimg src=../../images/blank.gif width=8/td tdfont face=verdana size=1b400.00 euro;/bfont/td tdimg src=../../images/blank.gif width=8/td % if (tipprod == 3) { % td% if (maskwan) { % img src=../images/ok.gif % }else{ % img src=../images/notok.gif % } %/td tdimg src=../../images/blank.gif width=8/td td font face=verdana size=1bMask WAN:/b/font/td tdimg src=../../images/blank.gif width=8/td td nowrapfont face=verdana size=1b40.08 euro;/bfont/td % } else { % td% if (inst_mod) { % img src=../images/ok.gif % }else{ % img src=../images/notok.gif % } %/td tdimg src=../../images/blank.gif width=8/td tdfont face=verdana size=1bInstalación y configuración de Modem:/b/font/td tdimg src=../../images/blank.gif width=8/td td nowrapfont face=verdana size=1b40.08 euro;/bfont/td % } % /tr -- as you can see it shows my code to the end user's browser without processing it. Do you know if there is a setting that controls the comment processing behaviour in orion? Thank you.