• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

how come my application knows the passwords and usernames which are present in other file.

 
kiran kumar reddy
Ranch Hand
Posts: 94
Eclipse IDE Java Oracle
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi, i am a newbie in struts. so i just started reading "struts for dummies" ebook to learn struts. here is my doubt . as given in that book i created a sample login application using struts 1.x. and here are my files in that sample application.
- login.jsp
-loggedin.jsp
-LoginAction.java
-LoginBean.java
-LoginForm.java
-ApplicationResources.properties
-struts-config.xml
-web.xml

here LoginBean file contains few usernames and passwords combinations. so when i run my application it shows me login page with username and password fields to enter. when i enter them it reacts accordingly. here is my doubt ; i never given any path of LoginBean file(which contains passwords and usernames, mean only these to be enter) in any config files(web.xml, config.xml). how come my application knows and compares and communicates with the usernames and passwords in LoginBean file which i enter in login page and authenticate it.
 
William P O'Sullivan
Ranch Hand
Posts: 859
Chrome IBM DB2 Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Check to see where LoginBean is used.

It could be in the code, injected or pre-loaded.

WP
 
kiran kumar reddy
Ranch Hand
Posts: 94
Eclipse IDE Java Oracle
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
William P O'Sullivan wrote:Check to see where LoginBean is used.

It could be in the code, injected or pre-loaded.

WP

thank you for your reply and i got it and cleared my doubt
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic