Win a copy of Functional Reactive Programming this week in the Other Languages forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

JSP 500 Error

 
Mary Wang
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 5040
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
Mark Savory
Ranch Hand
Posts: 122
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Please post your JSP code.
 
Mary Wang
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 5040
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic