This week's book giveaway is in the Reactive Progamming forum.
We're giving away four copies of Reactive Streams in Java: Concurrency with RxJava, Reactor, and Akka Streams and have Adam Davis on-line!
See this thread for details.
Win a copy of Reactive Streams in Java: Concurrency with RxJava, Reactor, and Akka Streams this week in the Reactive Progamming forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Liutauras Vilda
  • Junilu Lacar
  • Jeanne Boyarsky
  • Bear Bibeault
Sheriffs:
  • Knute Snortum
  • Tim Cooke
  • Devaka Cooray
Saloon Keepers:
  • Ron McLeod
  • Stephan van Hulst
  • Tim Moores
  • Tim Holloway
  • Carey Brown
Bartenders:
  • Piet Souris
  • Frits Walraven
  • Ganesh Patekar

weird error when my jsp page uses a javabean for help

 
Ranch Hand
Posts: 158
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I have a web page that is asking the user to select from a choice of check boxes and sned it to a jsp (http://localhost:8080/card_trick_results.jsp) for processing.
the jsp page calls on a javabean (CardTotal.class) to process the logic:
here is some of the code from the top of the CardTotal.java file -

the problem:
When I execute the jps page, the server responds with an error:

org.apache.jasper.JasperException:
Can't find a method to write property 'card1' of
type 'int' in a bean of type 'CardTotal'


now, if I rewrite

public int getCard1 () {
return card1;
}


to note: changing the case of method name)

public int getcard1 () {
return card1;
}


and recompile this class, then the jsp page is able to process and return the correct page result.
If I shut down and reboot the computer and restart tomcat, I get the same sequence of problems again!
anybody know what is happening?
 
Ranch Hand
Posts: 5390
1
Spring Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
dont shut, reboot and restart server.
 
"The Hood"
Posts: 8521
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
This was an actual java question that he chose THIS forum to post in :roll: .
Should I say it?? YES!! - Please do NOT cross post!!!
There - I feel much better now .
 
R K Singh
Ranch Hand
Posts: 5390
1
Spring Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

Originally posted by Cindy Glass:
This was an actual java question that he chose THIS forum to post in :roll: .
Should I say it?? YES!! - Please do NOT cross post!!!
There - I feel much better now .


This is not fair ..
You should have told me earlier .. atleast I would have not wasted my time in replying.
 
mister krabs
Posts: 13974
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I'm posting all my Java questions in this forum so that everyone will know that they are important and urgent and they should drop everything (including their pants) to respond to my questions.
 
See ya later boys, I think I'm in love. Oh wait, she's just a tiny ad:
Java file APIs (DOC, XLS, PDF, and many more)
https://products.aspose.com/total/java
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!