document.getElementById(‘frame_id’).contentWindow.function_name()
Archive for September, 2008
Page not found error in a jsp
1) Put the following code in web.xml:
<error-page>
<exception-type>java.lang.Exception</exception-type>
<location>/error/error.jsp</location>
</error-page>
<error-page>
<error-code>400</error-code>
<location>/error/http400.jsp</location>
</error-page>
<error-page>
<error-code>404</error-code>
<location>/error/http404.jsp</location>
</error-page>
<error-page>
<error-code>403</error-code>
<location>/error/http403.jsp</location>
</error-page>
<error-page>
<error-code>500</error-code>
<location>/error/http500.jsp</location>
</error-page>
2) Create above jsp files. Usually to be safe you should make error pages that are larger then 512 bytes. The threshold varies per HTTP status code. You can look at what your thresholds are currently set to. In IE 5 and greater the settings are stored in the registry under[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Internet Explorer\Main\ErrorThresholds]
Err Size(bytes)
400 512
403 256
404 512
405 256
406 512
408 512
409 512
410 256
500 512
501 512
505 512