• 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 Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Tim Cooke
  • Campbell Ritchie
  • Ron McLeod
  • Liutauras Vilda
  • Jeanne Boyarsky
Sheriffs:
  • Junilu Lacar
  • Rob Spoor
  • Paul Clapham
Saloon Keepers:
  • Tim Holloway
  • Tim Moores
  • Jesse Silverman
  • Stephan van Hulst
  • Carey Brown
Bartenders:
  • Al Hobbs
  • Piet Souris
  • Frits Walraven

weird error when my jsp page uses a javabean for help

 
Ranch Hand
Posts: 158
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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: 5397
1
Spring Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
dont shut, reboot and restart server.
 
"The Hood"
Posts: 8521
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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: 5397
1
Spring Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
Don't get me started about those stupid light bulbs.
reply
    Bookmark Topic Watch Topic
  • New Topic