That's quite possible if you have some monster JSP.
Java classfiles can contain at most 64KB compiled code per method, and the entire content of a JSP (except methods declared in header scriptlet blocks) is compiled into the service method of the generated classfile.
Split up that JSP, such errors are always an good indication of extremely bad design, usually some sort of God class.
42
navi kumar
Ranch Hand
Joined: May 10, 2006
Posts: 47
posted
0
hi thanks for your replies.
As i said, i am using htmlptions and also the jsp is splitted into 3 parts.
fortunately, it is working at the moment , when I moved the javascript functions to seperate javascript file. there were some 3 of them left in the jsp. so moved to .js file. Now it is o.k
But, what if it happens in future again, when we are required to add few more fields(some drop downs, etc) , the same problem will be there again for sure. Some solution should be there right? any suggestions? help out please
Jeroen T Wenting
Ranch Hand
Joined: Apr 21, 2006
Posts: 1847
posted
0
The ONLY solution is redesigning the JSP to create a smaller classfile. Either use dynamic includes rather than static includes, or divide it up into multiple JSPs and let the controller choose which to call if it's the typical God JSP with tons of conditional code to have it render in many different ways depending on parameters.
navi kumar
Ranch Hand
Joined: May 10, 2006
Posts: 47
posted
0
hi, thanks for reply..I am dividing the JSP into multiple parts...
Say like this
<%@ include file="/jsp/f1/applic/record_II.jsp"%></td> <%@ include file="/jsp/f1/applic/record_III.jsp"%></td>
I am adding this lines at the end of the first page inside the <body> tags.
Still no use. Could some one suggest how to do that? I mean how to split into multiple jsp's and let controller know which to call?
I am using an external Javascript file. which i am calling into parent jsp like <script src="/scripts/left.js" language="javascript" type="text/javascript"></script>
Also, I am importing several taglibs like html, logic..etc
DO i need to do all these stuff in the child JSP( the jsp which was split from parent jsp) when I do Include Action. Beacause, it says "The included page must be able to be run on its own. "
Also, possible could you elaborate on "Pages can conditionally be included at run time."
regards
navi kumar
Ranch Hand
Joined: May 10, 2006
Posts: 47
posted
0
Because, I am getting the following error weblogic.utils.ParsingException: Could not complete parsing, unmatched tags: form
I agree. Here's the link: http://ej-technologies/jprofiler - if it wasn't for jprofiler, we would need to
run our stuff on 16 servers instead of 3.