You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by Kurt Olsen <ko...@get2hawaii.com> on 2001/03/19 19:03:36 UTC

500 lines of jsp is 10k lines of java

Hi everybody,

I'm fighting a problem whereby the java code generated by a 500 line jsp
file is so large (10,200) lines that a try/catch block contains so much code
that the file won't compile, giving a msg saying something like 'jump target
out of range'...

Surely I'm not the first to deal with this (and it's a real show-stopper).
Anybody know a way to deal with this (other that hand editing the
source-code)?

This isn't a struts problem per-se but it's being interpreted that way by
the powers that be where I work. Not good!

Later,
Kurt


-----Original Message-----
From: Kyle Robinson [mailto:KRobinson@pangaeainc.com]
Sent: Monday, March 19, 2001 7:36 AM
To: Struts (E-mail)
Subject: Locales and images


I understand Struts has support for makeing web apps available in different
languages.  Does this include images?  If I have images with text on them in
English can I make images with text in French as well?  Do I name the image
files differently or do I have to include the paths to the images in the
property files?  Has anyone done this?  What's the best approach?

Kyle Robinson
Systems Consultant
Pangaea Systems Inc.
(250) 360-0111


Re: 500 lines of jsp is 10k lines of java

Posted by pdw <pd...@dowman.net>.
There is a limit to the size of a compiled method in java, I think it's 64k,
it's probably not specifically related to the try/catch block.  Split it up
into multiple jsp's and use includes to make it into one page.   It seems to
me that a good jsp compiler should generate multiple methods, but I don't
know if any actually do that.

----- Original Message -----
From: "Kurt Olsen" <ko...@get2hawaii.com>
To: <st...@jakarta.apache.org>
Sent: Monday, March 19, 2001 11:03 AM
Subject: 500 lines of jsp is 10k lines of java


> Hi everybody,
>
> I'm fighting a problem whereby the java code generated by a 500 line jsp
> file is so large (10,200) lines that a try/catch block contains so much
code
> that the file won't compile, giving a msg saying something like 'jump
target
> out of range'...
>
> Surely I'm not the first to deal with this (and it's a real show-stopper).
> Anybody know a way to deal with this (other that hand editing the
> source-code)?
>
> This isn't a struts problem per-se but it's being interpreted that way by
> the powers that be where I work. Not good!
>
> Later,
> Kurt
>
>
> -----Original Message-----
> From: Kyle Robinson [mailto:KRobinson@pangaeainc.com]
> Sent: Monday, March 19, 2001 7:36 AM
> To: Struts (E-mail)
> Subject: Locales and images
>
>
> I understand Struts has support for makeing web apps available in
different
> languages.  Does this include images?  If I have images with text on them
in
> English can I make images with text in French as well?  Do I name the
image
> files differently or do I have to include the paths to the images in the
> property files?  Has anyone done this?  What's the best approach?
>
> Kyle Robinson
> Systems Consultant
> Pangaea Systems Inc.
> (250) 360-0111
>
>