Apr 23 2008

Caching issue when using JSPF

Tag: jspYogesh @ 11:38 am

Do the changes you make to JSPF not reflect immediately, until you change something in the main jsp file which has the include statement?

this is due to the use of include.include directive causes your Web browser to cache complete pages so it wont get updated until the cache times out or there is a change in the main jsp.

to avoid this use jsp:include derivative instead .

As a rule of thumb use include for static pages which do not change and use jsp:include for dynamic pages.

Continue reading "Caching issue when using JSPF"


Apr 23 2008

code too large for try statement in jsp / jspf ?

Tag: WebSphere, jspYogesh @ 10:29 am

This usually happens while combining multiple jspf`s using include statement(other than the obvious meaning of the error message that is ).

it seems that include can only support a specific number of lines(or more likely some specific size) of code in the jspf beyond which it throws this exception "code too large for try statement".

interestingly it shows this error in the least expected lines of code!

if you delete a few lines and check, it would probably work.

the solution is to use jsp:include instead of include