Win a copy of The Journey To Enterprise Agility this week in the Agile and Other Processes forum! And see the welcome thread for 20% off.
  • 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:
  • Jeanne Boyarsky
  • Liutauras Vilda
  • Campbell Ritchie
  • Tim Cooke
  • Bear Bibeault
Sheriffs:
  • Paul Clapham
  • Junilu Lacar
  • Knute Snortum
Saloon Keepers:
  • Ron McLeod
  • Ganesh Patekar
  • Tim Moores
  • Pete Letkeman
  • Stephan van Hulst
Bartenders:
  • Carey Brown
  • Tim Holloway
  • Joe Ess

Managed bean class doesn't declare a public no-argument constructor  RSS feed

 
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I'm trying to program  signup.xhtml and login.xhtml wepgaes for my system but when I run them they give me an error that the Managed bean for my admin class for managed bean adminObj doesnt declare a public no-argument constructor. I do not understand where the problem is. Here is my admin class:


the signup.xhtml page:


The login.xhtml webpage:
 
Saloon Keeper
Posts: 1796
74
Android Chrome IntelliJ IDE Java MySQL Database
  • Likes 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You need to define a no Arg Constructor like
to your admin class.
 
Elle Danielles
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

Pete Letkeman wrote:You need to define a no Arg Constructor like
to your admin class.



thankyou that solved it.
 
Bartender
Posts: 19656
92
Android Eclipse IDE Linux
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Also, class names should start with an UPPERCASE letter, so "Admin", not "admin".

And object names should start with a LOWERcase letter. So "userObj", not "UserObj".

And finally, the technical term for "I wrote my own login" is "hacked" or "pwned". Unless you are a professionally-trained full-time security person, my experience tells me that there's about a 95% chance that a non-technical person can bypass your security in 15 minutes or less.

JEE has an official security framework for webapps. It's about 20 years old, well-documented, well-debugged, well-supported and I've never heard of anyone breaking through it. It blocks many attacks at the server level so they never reach the web application.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!