avatar
Tomcat JSP syntax error# Java - 爪哇娇娃
l*u
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
avatar
c*g
2
my tomcat display the error in browser window on user computer and tomcat
window on server.
what tomcat version you use?
avatar
l*u
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?

avatar
A*o
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

avatar
g*g
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

avatar
l*u
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...
avatar
l*u
7
how about jsp compilation errors?

【在 g*****g 的大作中提到】
: No, tomcat will ignore all html error.
avatar
A*o
8
dump it here if you can.

【在 l****u 的大作中提到】
: how about jsp compilation errors?
avatar
l*u
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.
avatar
S*t
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...

avatar
g*g
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...

avatar
A*o
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...

avatar
l*u
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

avatar
l*u
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

avatar
A*o
15
or to read log files. ;)

【在 l****u 的大作中提到】
: kan lai, they have to read from console le.
avatar
e*0
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.
avatar
l*u
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.

avatar
e*0
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.
avatar
l*u
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.

avatar
e*0
20
Post your code snipet and let us know what do you want to do. So we can
provide some help.
avatar
l*u
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.

avatar
g*g
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.

avatar
l*u
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.

avatar
m*t
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

相关阅读
logo
联系我们隐私协议©2024 redian.news
Redian新闻
Redian.news刊载任何文章,不代表同意其说法或描述,仅为提供更多信息,也不构成任何建议。文章信息的合法性及真实性由其作者负责,与Redian.news及其运营公司无关。欢迎投稿,如发现稿件侵权,或作者不愿在本网发表文章,请版权拥有者通知本网处理。