Win a copy of Kotlin for Android App Development this week in the Kotlin 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
  • Devaka Cooray
  • Jeanne Boyarsky
  • Bear Bibeault
Sheriffs:
  • Junilu Lacar
  • Paul Clapham
  • Knute Snortum
Saloon Keepers:
  • Ron McLeod
  • Tim Moores
  • Stephan van Hulst
  • salvin francis
  • Carey Brown
Bartenders:
  • Tim Holloway
  • Frits Walraven
  • Ganesh Patekar

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: 1868
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: 20342
111
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.
 
Attractive, successful people love this tiny ad:
Enterprise Java integration with Delphi and Free Pascal applications - new release 2019.02
https://coderanch.com/t/705708/Enterprise-Java-integration-Delphi-Free
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!