This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
The moose likes Struts and the fly likes how come my application knows the passwords and usernames which are present in other file. Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "how come my application knows the passwords and usernames which are present in other file." Watch "how come my application knows the passwords and usernames which are present in other file." New topic
Author

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

kiran kumar reddy
Ranch Hand

Joined: Jun 28, 2012
Posts: 94

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

Joined: Mar 28, 2012
Posts: 860

Check to see where LoginBean is used.

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

WP
kiran kumar reddy
Ranch Hand

Joined: Jun 28, 2012
Posts: 94

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
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: how come my application knows the passwords and usernames which are present in other file.
 
Similar Threads
XML Doubt
ServletContextListener Doubt??
Authentication doubt
Authentication
XML Doubt