• Post Reply Bookmark Topic Watch Topic
  • New Topic

JSF+Spring+Hibernate Session Problem  RSS feed

 
Micky Kr
Greenhorn
Posts: 11
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi
When Iam Log in application onward opening a new tab it redirects to Login Page ..or Entereing the URL of login page it asks for log in user id pwd again .it does not check user name and pwd

My Web.xml is







and faces.config.xml as folllows
===============================




------------
PLzz Help
 
Devaka Cooray
Marshal
Posts: 5568
713
Chrome Eclipse IDE Google App Engine IntelliJ IDE jQuery Postgres Database Tomcat Server
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
"Aj Kr", please check your private messages regarding an important administrative matter.
 
Micky Kr
Greenhorn
Posts: 11
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Iam Trying to change my Name But not able to do it now will do it later np Thax
 
Devaka Cooray
Marshal
Posts: 5568
713
Chrome Eclipse IDE Google App Engine IntelliJ IDE jQuery Postgres Database Tomcat Server
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Please UseRealWords instead of something like np, thax...
And, don't forget to change the name before you post again on the forum.
 
Micky Kr
Greenhorn
Posts: 11
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Ok .Sure ..I Will Do it as per instruction ..But i Am Still Not getting the solution . :
 
Tim Holloway
Bartender
Posts: 18715
71
Android Eclipse IDE Linux
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Aj Kr wrote:Ok .Sure ..I Will Do it as per instruction ..But i Am Still Not getting the solution . :


Well, no you're not. And until you fix your display name, I'm not going to give one!
 
Micky Kr
Greenhorn
Posts: 11
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Sorry ! For Delay i Did it Now ..Thank You !
 
Tim Holloway
Bartender
Posts: 18715
71
Android Eclipse IDE Linux
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thank you. And welcome to the JavaRanch!

When I first looked at this I thought you were using the web.xml security (container-managed security) and making a common mistake. Actually, it seems you're working with a Do-it-Yourself security system, which means that instead of being able to give advice on a well-documented standard, all I can do is recommend things to help you debug. Spend any time around the JavaRanch, and you'll hear plenty of ranting from me on why a DIY security system isn't a good thing. I have a fairly long list of reasons, but the most important one is that I've really never seen a DIY security system that was truly secure. Most of them, in fact, wouldn't hold off a real attacker for more than 5 minutes.

Nevertheless, DIY is popular, despite the expenses, both immediate and post-invasion. So here goes.

I can't see your total security infrastructure from these examples, but my suspicion lies in some basic JSF behaviors. When a JSF View posts data (such as a login form), the default behavior is to redisplay the View. That's different from most architectures. So a DIY JSF login form would typically need a login Action method that returns a value that can be used for navigation, such as "success" (user logged in OK) and "failure" (Login failed). The faces-config file then is consulted to find the appropriate navigation rules, which are typically to go to the user's home page :success", or to redisplay the login View ("failure"). Since the default is to redisplay the current View, an explicit failure rule is optional.

Actually, I didn't see any reference to a backing bean at all in your faces-config, so there was no obvious place for the login credentials to be passed, nor definition of a login action processor. Validators and converters are part of the MVC Controller framework and don't have business logic capabilities, so they're not sufficient to process logins.
 
Micky Kr
Greenhorn
Posts: 11
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thank you ! But I Did not understand .can you advise me please some reference or what approach according to you i should follow . actually i have not worked much on here but now its My Responsibility to handle every thing and iam confused.Please guide me.
 
Tim Holloway
Bartender
Posts: 18715
71
Android Eclipse IDE Linux
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The problem is, you've apparently been saddled with the job but you don't even know where to catch the bus to go to work.

You need to find some beginning books on JavaServer Faces and learn how it works. Then you can worry about things like how to handle security and how to interface to Spring and Hibernate.

That's just a little more than we can cover in an online forum.
 
Micky Kr
Greenhorn
Posts: 11
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
?
 
Devaka Cooray
Marshal
Posts: 5568
713
Chrome Eclipse IDE Google App Engine IntelliJ IDE jQuery Postgres Database Tomcat Server
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Micky Kr wrote:?

 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!