Win a copy of Functional Reactive Programming this week in the Other Languages forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Implement JAAS in Struts

 
chandar shanmugam
Greenhorn
Posts: 18
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

How to implement JAAS in Struts.I dont know.

Thanks inAdvance.
Chandar


edited out e-mail - Please UseTheForumNotEmail
[ January 26, 2008: Message edited by: Jeanne Boyarsky ]
 
Ulf Dittmer
Rancher
Posts: 42968
73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
What does it mean to "implement JAAS in Struts"? What are you trying to do? Are you familiar with JAAS in general?
 
chandar shanmugam
Greenhorn
Posts: 18
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi

am tried in JAAS in Java.It will work fine.But i don't know how to implement in struts.Thats why am asking.This can be used for authentication purpose.
am working in struts.

Thanks InAdvance,
Chandar
 
chandar shanmugam
Greenhorn
Posts: 18
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
JAAS(java authentication authorization service).This can be used for security.
These are any good tutorials to use jaas in struts
 
Jeanne Boyarsky
author & internet detective
Marshal
Posts: 34973
379
Eclipse IDE Java VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
JAAS isn't used differently in Struts than in any other web app. Have you seen the Sun JAAS tutorial.
 
chandar shanmugam
Greenhorn
Posts: 18
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I have seen this tutorial it will quite easy.I will understand it.
Thanks.........
Is there any tutorial to implement JAAS in Struts.Help me....
please.....
Thanks in advance
 
chandar shanmugam
Greenhorn
Posts: 18
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
how to use JAAS in struts.If anybody knows please send the tutorial.I have seen but not comfortable.If anybody having please send sample or otherwise send the tutorial for JAAS in struts.Please........

Thanks in advance
chandar
 
Ulf Dittmer
Rancher
Posts: 42968
73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
As was said before, there's nothing web-app (or Struts-) specific about JAAS. You'd use it with Struts as you would use it with any other web technology.

How have you tried (and failed) using it?
 
chandar shanmugam
Greenhorn
Posts: 18
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Am trying in JAva only and success one.But in struts i dont how to implement it.Please help me is there any tutorial for it.

Thanks in advance
 
Ulf Dittmer
Rancher
Posts: 42968
73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Which part are you struggling with? Just like in a desktop app you need to get the credentials (username/password). That's just a regular web page. With these credentials you can use JAAS for authentication.

Why do you think using JAAS would be any different in a web app (no matter what technology it's implemented in) and a desktop app?
 
chandar shanmugam
Greenhorn
Posts: 18
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi

If you having please send the sample example for JAAS in struts.I dont know
where keep policy file and how to configure in web.xml.
 
chandar shanmugam
Greenhorn
Posts: 18
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi

If you having please send the sample example for JAAS in struts.I dont know
where keep policy file and how to configure in web.xml with roles etc..........
 
Ulf Dittmer
Rancher
Posts: 42968
73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Yes, I understand that you would like examples or a tutorial, but by now it should be obvious that none will be pointed to, likely because none exists.

The reason for that is that -as has been mentioned repeatedly by now- using JAAS with Struts isn't different from using it with any other web technology.

So I repeat my question yet again: You said you have used JAAS before, and it worked fine. Why do you think using JAAS would be any different in a web app (no matter what technology it's implemented in) and a desktop app? What have you tried, and what hasn't worked? Have you gotten it to work in a non-Struts web app? If not, that should be the first step.
 
chandar shanmugam
Greenhorn
Posts: 18
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
No am not working in any web app.This is my first web app
 
chandar shanmugam
Greenhorn
Posts: 18
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi

Thanks
 
chandar shanmugam
Greenhorn
Posts: 18
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi

What are steps to be followed to implement JAAS in struts.

Thanks in advance
 
Alaa Nassef
Ranch Hand
Posts: 471
Hibernate Mac OS X Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello Chandar,
I didn't work with JAAS before, so I can't help you a lot with that. From the comments of the other members, it seem that there is absolutely no difference between implementing JAAS in struts or in any other web application. Please read the posts in the links I gave to you. They have a lot of steps and how-tos that would solve your problem.
 
chandar shanmugam
Greenhorn
Posts: 18
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi Alaa Nassef

Thanks for you guidance
 
chandar shanmugam
Greenhorn
Posts: 18
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi Alaa Nassef

Thanks for you guidance
 
Alaa Nassef
Ranch Hand
Posts: 471
Hibernate Mac OS X Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
No problem. Always glad to help.
 
chandar shanmugam
Greenhorn
Posts: 18
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi

If anybody working in unix platform.I need one help.I am working windows platform.I want to convert one tar files.It is JAAS Using struts.I am not that
infrastructure.If anybody works please convert the files.I will given the link
please help me.

The link is:

http://mooreds.com/jaas.html

In the intoduction part it is having source code download it.please help me.
please send to mailid: chandarchan@yahoo.co.in
Thanks in advance
 
chandar shanmugam
Greenhorn
Posts: 18
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi

the command to convert tar files is

Unix>tar -xvzf filename.tar.gz
 
chandar shanmugam
Greenhorn
Posts: 18
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi

the command to convert tar files is

Unix>tar -xvzf filename.tar.gz
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic