Yes!!! I agree to it. I hope it depends upon the kind of Application Server
we
are using, and its implementation of JSP specs. For me, WebSpehere
Application
Server never posed this kind of problem. I don't have any statistics about
others.
-ShriKant
A mailing list about Java Server Pages specif
I totally agree that we should avoid using try/catch-blocks in our JSPs.
They belong in servlets, beans and tags.
BUT when the JSP is compiled into a servlet all of the code is included into
one big try/catch - at least all our pages in Resin, I don't know if there
are any conditions.
For example
Mattias..
I agree to your point of view. You have expended the explanation which was
subject of question. But don't you think we are hiding the real issue.
These
are round-abouts of the problem when we have that much of code existing in
the
JSP. But my intention is to avoid that much of code (
> When we talk in terms of file include or , the only
> difference comes up is, file include will contain the code at the
> compile time, whereas use servlet chaining to use that code.
I'd say thats a great deal of differense, especially in this case.
If you use the include directive, <%@ inclu
" instead of "<%@ include>" and see if that does the trick,
> (although I doubt if this should be any different, none the less...)
>
>Thanks for your input on the same,
>
>Dharmendra
>
> -Original Message-----
> From: ShriKant Vashishtha [mail
ROTECTED]]
Sent: Monday, March 25, 2002 11:23 PM
To: [EMAIL PROTECTED]
Subject: Re: JSP - code size too large for try catch block...
Hi,
First of all, according to MVC pattern, JSP (presentation layer) should
contain
only HTML, very less amount of Java code. The controller logic should
reside either
i
Hi,
Have you considered using instead of <%@ include>?
I guess this would reduce the code size considerably. I could be
wrong
good luck
-Erwin
On Mon, 25 Mar 2002 Sharan, Dharmendra wrote :
>Hi JSP Developers,
>
> I am getting this error in JSP of "code size too large for
>try catch
>bloc
: [EMAIL PROTECTED]
Subject: Re: JSP - code size too large for try catch block...
Hi,
First of all, according to MVC pattern, JSP (presentation layer) should
contain
only HTML, very less amount of Java code. The controller logic should
reside either
in Servlet or in a Java bean. In your case, it
Hi,
First of all, according to MVC pattern, JSP (presentation layer) should
contain
only HTML, very less amount of Java code. The controller logic should
reside either
in Servlet or in a Java bean. In your case, it seams that Java code itself
is more
than 16KB which is coming in between try-catch
Hi JSP Developers,
I am getting this error in JSP of "code size too large for try catch
block" and
when I looked into the compiled java file it has this huge block of
code translated
from the included JSPs inside of a try catch block.
I think it was more that 8k or 16k lines
10 matches
Mail list logo