I got a JSP problem. Here is my web page: http://www.webappcabaret.com/ganchen/ I insert two links in my main web page. The one is linked to the first Number Guess project, which generates a random number from 1 to 100. Another one is linked to the modified version, which I can set the number range for a random number. The following is the problem. After I tested one project, I just click "back" button and back to my main page and tried to test another one. I got error message (500 Internal Server Error) and some exceptions. But when I closed the window and open a new window, another project worked and no error message. Then I found out I can not run those two projects in the same window, which is not right. Dose anyone know what is the problem? Is that because when I run the second project, the first one is still running. By the way, those two JSP pages does not share Java Beans. Should I use "implements SingleThreadModel"? Thanks,
Madhav Lakkapragada
Ranch Hand
Joined: Jun 03, 2000
Posts: 5040
posted
0
it says its a ClassCastException..... Root Cause: java.lang.ClassCastException: num.NumberGuessBean at scjd.jsp.number._0002fscjd_0002fjsp_0002fnumber_0002fnum_0002ejspnum_jsp_0._jspService(_0002fscjd_0002fjsp_0002fnumber_0002fnum_0002ejspnum_jsp_0.java:66) Is this what you are seeing too...... - satya
Madhav, yes, this is what I got. But if you did another way, which you click the "another version of Number Guess" and test the program and then go back to main page and click "Number Guess Project". You got anothe error message: Root cause: java.lang.ClassCastException: number.NGBean at scjd.jsp.num._0002fscjd_0002fjsp_0002fnum_0002fnumguess_ It seems those two programs have some conflict. OOO...Oh! I find the error when I was coping my code into this message. I used the same id names for both JSP files, which caused the conflict. Thanks, Madhav and Mark! Thanks for your replying!
Madhav Lakkapragada
Ranch Hand
Joined: Jun 03, 2000
Posts: 5040
posted
0
OOO...Oh! I find the error when I was coping my code into this message. I used the same id names I guess then it should be common Cut, Copy, Paste bug...... Good luck........ - satya