Re: Question on use of Java style comments in JSP

2004-09-17 Thread Jarl Skogsholm
I tried it again using a 5+ version, it works correctly.  Is this a bug 
version 4?  Anyone else care to comment?

  out.write(
tr\r\n);
//a
  out.write(td align=\right\ class=\formfield\ valign=\top\ 
Comment:/td\r\n);

On Fri, 17 Sep 2004 09:15:03 +0530, Antony Paul [EMAIL PROTECTED] 
wrote:

t.jsp
%//a%
aaa
t_jsp.java
//a  out.write(\naaa\n);
The out.write() needs to be on second line.
rgds
Antony Paul
- Original Message -
From: Jarl Skogsholm [EMAIL PROTECTED]
To: Tomcat Users List [EMAIL PROTECTED]
Sent: Thursday, September 16, 2004 8:14 PM
Subject: Re: Question on use of Java style comments in JSP

Go look in the work directory and find the corresponding java file to 
this
jsp.

On Thu, 16 Sep 2004 19:22:50 +0530, Antony Paul 
[EMAIL PROTECTED]
wrote:

 It is not producing error messages on stdout/stderr or to screen 
instead
 it
 gives this output

 !DOCTYPE HTML PUBLIC -//W3C//DTD HTML 4.0 Transitional//EN
 HTMLHEAD
 META http-equiv=Content-Type content=text/html;
 charset=iso-8859-1/HEAD
 BODY/BODY/HTML

 rgds
 Anotny Paul.


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

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

--
They that can give up essential liberty to obtain a little temporary 
safety deserve neither liberty nor safety.
-- Benjamin Franklin (1755)

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


Question on use of Java style comments in JSP

2004-09-16 Thread Antony Paul
Hi,
I have problems in displaying a JSP page in Tomcat 4.1.12. A file
containing code like this is not displayed
%//a%
aaa

Instead it is displayed properly in Tomcat 4.1.30. Whic one behaves
correctly ?. 4.1.12 or 4.1.30

rgds
Anto Paul

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



Re: Question on use of Java style comments in JSP

2004-09-16 Thread Tim Funk
Never use // in JSP code. Also never use if conditionals without {} (as well 
as for loops).

-Tim
Antony Paul wrote:
Hi,
I have problems in displaying a JSP page in Tomcat 4.1.12. A file
containing code like this is not displayed
%//a%
aaa
Instead it is displayed properly in Tomcat 4.1.30. Whic one behaves
correctly ?. 4.1.12 or 4.1.30
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: Question on use of Java style comments in JSP

2004-09-16 Thread Antony Paul
Do you mean that none of the Tomcat versions behave properly ?.
I had used it at lot of JSP pages. It is for the first time I am having a
problem.

rgds
Antony Paul

- Original Message -
From: Tim Funk [EMAIL PROTECTED]
To: Tomcat Users List [EMAIL PROTECTED]
Sent: Thursday, September 16, 2004 6:29 PM
Subject: Re: Question on use of Java style comments in JSP


 Never use // in JSP code. Also never use if conditionals without {} (as
well
 as for loops).

 -Tim

 Antony Paul wrote:

  Hi,
  I have problems in displaying a JSP page in Tomcat 4.1.12. A file
  containing code like this is not displayed
  %//a%
  aaa
 
  Instead it is displayed properly in Tomcat 4.1.30. Whic one behaves
  correctly ?. 4.1.12 or 4.1.30
 

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



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



Re: Question on use of Java style comments in JSP

2004-09-16 Thread Jarl Skogsholm
This displays properly if versions 5+.
There is nothing wrong with using // in jsp files,  jsp's are converted 
into valid java code. Are you getting error messages?  does it produce any 
code at all?

On Thu, 16 Sep 2004 18:42:44 +0530, Antony Paul [EMAIL PROTECTED] 
wrote:

Do you mean that none of the Tomcat versions behave properly ?.
I had used it at lot of JSP pages. It is for the first time I am having a
problem.
rgds
Antony Paul
- Original Message -
From: Tim Funk [EMAIL PROTECTED]
Sent: Thursday, September 16, 2004 6:29 PM
Never use // in JSP code. Also never use if conditionals without {} (as
well
as for loops).
-Tim
Antony Paul wrote:
 Hi,
 I have problems in displaying a JSP page in Tomcat 4.1.12. A file
 containing code like this is not displayed
 %//a%
 aaa

 Instead it is displayed properly in Tomcat 4.1.30. Whic one behaves
 correctly ?. 4.1.12 or 4.1.30



--
They that can give up essential liberty to obtain a little temporary 
safety deserve neither liberty nor safety.
-- Benjamin Franklin (1755)

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


Re: Question on use of Java style comments in JSP

2004-09-16 Thread Antony Paul
It is not producing error messages on stdout/stderr or to screen instead it
gives this output

!DOCTYPE HTML PUBLIC -//W3C//DTD HTML 4.0 Transitional//EN
HTMLHEAD
META http-equiv=Content-Type content=text/html;
charset=iso-8859-1/HEAD
BODY/BODY/HTML

rgds
Anotny Paul.


- Original Message -
From: Jarl Skogsholm [EMAIL PROTECTED]
To: Tomcat Users List [EMAIL PROTECTED]
Sent: Thursday, September 16, 2004 6:52 PM
Subject: Re: Question on use of Java style comments in JSP


 This displays properly if versions 5+.
 There is nothing wrong with using // in jsp files,  jsp's are converted
 into valid java code. Are you getting error messages?  does it produce any
 code at all?


 On Thu, 16 Sep 2004 18:42:44 +0530, Antony Paul [EMAIL PROTECTED]
 wrote:

  Do you mean that none of the Tomcat versions behave properly ?.
  I had used it at lot of JSP pages. It is for the first time I am having
a
  problem.
 
  rgds
  Antony Paul
 
  - Original Message -
  From: Tim Funk [EMAIL PROTECTED]
  Sent: Thursday, September 16, 2004 6:29 PM
 
  Never use // in JSP code. Also never use if conditionals without {} (as
  well
  as for loops).
 
  -Tim
 
  Antony Paul wrote:
 
   Hi,
   I have problems in displaying a JSP page in Tomcat 4.1.12. A file
   containing code like this is not displayed
   %//a%
   aaa
  
   Instead it is displayed properly in Tomcat 4.1.30. Whic one behaves
   correctly ?. 4.1.12 or 4.1.30
  
 




 --
 They that can give up essential liberty to obtain a little temporary
 safety deserve neither liberty nor safety.
 -- Benjamin Franklin (1755)

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



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



Re: Question on use of Java style comments in JSP

2004-09-16 Thread Jarl Skogsholm
Go look in the work directory and find the corresponding java file to this 
jsp.

On Thu, 16 Sep 2004 19:22:50 +0530, Antony Paul [EMAIL PROTECTED] 
wrote:

It is not producing error messages on stdout/stderr or to screen instead 
it
gives this output

!DOCTYPE HTML PUBLIC -//W3C//DTD HTML 4.0 Transitional//EN
HTMLHEAD
META http-equiv=Content-Type content=text/html;
charset=iso-8859-1/HEAD
BODY/BODY/HTML
rgds
Anotny Paul.
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: Question on use of Java style comments in JSP

2004-09-16 Thread Antony Paul
t.jsp

%//a%
aaa

t_jsp.java
//a  out.write(\naaa\n);

The out.write() needs to be on second line.

rgds
Antony Paul

- Original Message -
From: Jarl Skogsholm [EMAIL PROTECTED]
To: Tomcat Users List [EMAIL PROTECTED]
Sent: Thursday, September 16, 2004 8:14 PM
Subject: Re: Question on use of Java style comments in JSP


 Go look in the work directory and find the corresponding java file to this
 jsp.

 On Thu, 16 Sep 2004 19:22:50 +0530, Antony Paul [EMAIL PROTECTED]
 wrote:

  It is not producing error messages on stdout/stderr or to screen instead
  it
  gives this output
 
  !DOCTYPE HTML PUBLIC -//W3C//DTD HTML 4.0 Transitional//EN
  HTMLHEAD
  META http-equiv=Content-Type content=text/html;
  charset=iso-8859-1/HEAD
  BODY/BODY/HTML
 
  rgds
  Anotny Paul.
 

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



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