• 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
  • Bear Bibeault
  • Jeanne Boyarsky
  • Tim Cooke
Sheriffs:
  • Knute Snortum
  • Junilu Lacar
  • Devaka Cooray
Saloon Keepers:
  • Ganesh Patekar
  • Tim Moores
  • Carey Brown
  • Stephan van Hulst
  • salvin francis
Bartenders:
  • Ron McLeod
  • Frits Walraven
  • Pete Letkeman

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:
 
Bartender
Posts: 1856
81
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: 19807
93
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.
 
Consider Paul's rocket mass heater.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!