Win a copy of Kotlin in Action this week in the Kotlin forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Jsp and javabeans: jsp on refresh doenot recognize the exisitng javabean  RSS feed

 
zaanif Kugashia
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi There guys this is my first time with jsp's and javabeans The problem is brief is when i refresh my page the page appears blank(or the stuff in between the jsp:Usebean tag is missing.

About what i am trying to achieve is a scenario of the game deal or no deal. When a box is clicked it displays the value inside the box so what i have done is when a box gets clicked i reload the jsp which will make the box disappear just leaving the value.( variable b is a list of booleans which points to if a box has been accessed or not). But unfortunately when the jsp is redirect to itself anything in between the jsp:useBean tag is not displayed.


 
Bear Bibeault
Author and ninkuma
Marshal
Posts: 66184
146
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Welcome to the Ranch!
zaanif Kugashia wrote:this is my first time with jsp's and javabeans

Well, you're off to a bad start by using decade-old technology. Using Java code and scriptlets in a JSP became obsolete in 2002 with the introduction of the JSTL and EL in JSP 2.0.

I'd advise you to update your tutorials or reference to something that's at least more modern than over 11 years ago.

P.S. A blank page is usually a sure sign of an exception on the server.
 
zaanif Kugashia
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I have to use jsp and javabeans as its my assignment specification. There is no exception error in the tomcat logs either.
 
Bear Bibeault
Author and ninkuma
Marshal
Posts: 66184
146
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
No one said not to use JSP or JavaBeans -- you're just using them as if it were still 2001. Is that what you've been taught in your class? If so, then I guess that's what you need to do -- but I'd certainly ask the teacher why you're being taught outdated stuff.
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!