Re: JSP - code size too large for try catch block...

2002-03-28 Thread ShriKant Vashishtha
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

Re: JSP - code size too large for try catch block...

2002-03-27 Thread Mattias J
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

Re: JSP - code size too large for try catch block...

2002-03-27 Thread ShriKant Vashishtha
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 (

Re: JSP - code size too large for try catch block...

2002-03-26 Thread Mattias J
> 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

Re: JSP - code size too large for try catch block...

2002-03-26 Thread ShriKant Vashishtha
" 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

Re: JSP - code size too large for try catch block...

2002-03-26 Thread Sharan, Dharmendra
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

Re: JSP - code size too large for try catch block...

2002-03-25 Thread Erwin DSouza
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

Re: JSP - code size too large for try catch block...

2002-03-25 Thread Vikramjit Singh
: [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

Re: JSP - code size too large for try catch block...

2002-03-25 Thread ShriKant Vashishtha
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

JSP - code size too large for try catch block...

2002-03-25 Thread Sharan, Dharmendra
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