l****u 发帖数: 2166 | 1 If i have a syntax error on my jsp, let's say, not in the script, but some
html tag. i.e. forget to close a tag.
How can i configure tomcat to give me the error stack on the page source?
right now, it gives me blank page...
-Bow |
c********g 发帖数: 449 | 2 my tomcat display the error in browser window on user computer and tomcat
window on server.
what tomcat version you use? |
l****u 发帖数: 2166 | 3 tomcat 5.5.2
i suspect it is configurable but donno how to do it..
【在 c********g 的大作中提到】 : my tomcat display the error in browser window on user computer and tomcat : window on server. : what tomcat version you use?
|
A**o 发帖数: 1550 | 4 i think tomcat will eat it and give user what you wrote...
【在 l****u 的大作中提到】 : If i have a syntax error on my jsp, let's say, not in the script, but some : html tag. i.e. forget to close a tag. : How can i configure tomcat to give me the error stack on the page source? : right now, it gives me blank page... : -Bow
|
g*****g 发帖数: 34805 | 5 No, tomcat will ignore all html error.
【在 l****u 的大作中提到】 : If i have a syntax error on my jsp, let's say, not in the script, but some : html tag. i.e. forget to close a tag. : How can i configure tomcat to give me the error stack on the page source? : right now, it gives me blank page... : -Bow
|
l****u 发帖数: 2166 | 6 right now, i have compiling error at tomcat server console
but the browser shows blank page....
【在 A**o 的大作中提到】 : i think tomcat will eat it and give user what you wrote...
|
l****u 发帖数: 2166 | 7 how about jsp compilation errors?
【在 g*****g 的大作中提到】 : No, tomcat will ignore all html error.
|
A**o 发帖数: 1550 | 8 dump it here if you can.
【在 l****u 的大作中提到】 : how about jsp compilation errors?
|
l****u 发帖数: 2166 | 9 o. Not about the fixing of the compilation.
We have group of site designers they only develops JSP pages but
knows little about java.
What they complain is that when they wrote JSP, they could not have any clue
where is the JSP is wrong, they want to see the error message on their
browser.
they have no clue about what is printed to the tomcat console...
【在 A**o 的大作中提到】 : dump it here if you can.
|
S*********t 发帖数: 78 | 10 use some IDE or jsp editor, which can give error message on the fly.
clue
【在 l****u 的大作中提到】 : o. Not about the fixing of the compilation. : We have group of site designers they only develops JSP pages but : knows little about java. : What they complain is that when they wrote JSP, they could not have any clue : where is the JSP is wrong, they want to see the error message on their : browser. : they have no clue about what is printed to the tomcat console...
|
|
|
g*****g 发帖数: 34805 | 11 The error message is not html error, more like jsp or
servlet error which a developer should go in and fix.
clue
【在 l****u 的大作中提到】 : o. Not about the fixing of the compilation. : We have group of site designers they only develops JSP pages but : knows little about java. : What they complain is that when they wrote JSP, they could not have any clue : where is the JSP is wrong, they want to see the error message on their : browser. : they have no clue about what is printed to the tomcat console...
|
A**o 发帖数: 1550 | 12 for some error, there is the error page you can resort.
for some other errors, you have to read the console。
clue
【在 l****u 的大作中提到】 : o. Not about the fixing of the compilation. : We have group of site designers they only develops JSP pages but : knows little about java. : What they complain is that when they wrote JSP, they could not have any clue : where is the JSP is wrong, they want to see the error message on their : browser. : they have no clue about what is printed to the tomcat console...
|
l****u 发帖数: 2166 | 13 it is JSP error.
they are JSP developers, they know how to fix the error if they
can see the error messages...
【在 g*****g 的大作中提到】 : The error message is not html error, more like jsp or : servlet error which a developer should go in and fix. : : clue
|
l****u 发帖数: 2166 | 14 kan lai, they have to read from console le.
【在 A**o 的大作中提到】 : for some error, there is the error page you can resort. : for some other errors, you have to read the console。 : : clue
|
A**o 发帖数: 1550 | 15 or to read log files. ;)
【在 l****u 的大作中提到】 : kan lai, they have to read from console le.
|
e*******0 发帖数: 367 | 16 If this is a JSP error, you will see the error in the log file.
Blank page is normally caused by NullPointerException or some common Exceptions that were not caught properly. |
l****u 发帖数: 2166 | 17 true.
issue is web designers want the error stack showing on the browser
Exceptions that were not caught properly.
【在 e*******0 的大作中提到】 : If this is a JSP error, you will see the error in the log file. : Blank page is normally caused by NullPointerException or some common Exceptions that were not caught properly.
|
e*******0 发帖数: 367 | 18 Tomcat only print the JSP error. In order to print your own stack, you need
to catch that exception, store the message in the session.
When rendering the JSP page, check if message is null, if not, print it. |
l****u 发帖数: 2166 | 19 HOW TO PRINT JSP ERRORS TO THE WEB BROWSER NEI? //BOW
need
【在 e*******0 的大作中提到】 : Tomcat only print the JSP error. In order to print your own stack, you need : to catch that exception, store the message in the session. : When rendering the JSP page, check if message is null, if not, print it.
|
e*******0 发帖数: 367 | 20 Post your code snipet and let us know what do you want to do. So we can
provide some help. |
|
|
l****u 发帖数: 2166 | 21 no special codes. it is a general request to redirect a portion of
logs, to be specific, the JSP compiling log, from console to web browser.
【在 e*******0 的大作中提到】 : Post your code snipet and let us know what do you want to do. So we can : provide some help.
|
g*****g 发帖数: 34805 | 22 That probably depends on your app server.
I use tomcat exclusively and jsp compilation error
is showed on web browser automatically.
【在 l****u 的大作中提到】 : no special codes. it is a general request to redirect a portion of : logs, to be specific, the JSP compiling log, from console to web browser.
|
l****u 发帖数: 2166 | 23 yeah. we are using tomcat as well. i know it can be configured to do so
but i just could not figure out how....//sigh
【在 g*****g 的大作中提到】 : That probably depends on your app server. : I use tomcat exclusively and jsp compilation error : is showed on web browser automatically.
|
m******t 发帖数: 2416 | 24
I think in tomcat everything that blows up blows
all the way up to the browser window, and you'd
have to specifically configure it _not_ to do so.
I would start with the web.xml from your own app's
and see if there are any error pages declared.
【在 l****u 的大作中提到】 : yeah. we are using tomcat as well. i know it can be configured to do so : but i just could not figure out how....//sigh
|