aspose file tools*
The moose likes Struts and the fly likes Implement JAAS in Struts Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "Implement JAAS in Struts" Watch "Implement JAAS in Struts" New topic
Author

Implement JAAS in Struts

chandar shanmugam
Greenhorn

Joined: Dec 13, 2007
Posts: 18
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
Marshal

Joined: Mar 22, 2005
Posts: 42919
    
  68
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

Joined: Dec 13, 2007
Posts: 18
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

Joined: Dec 13, 2007
Posts: 18
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

Joined: May 26, 2003
Posts: 31062
    
232

JAAS isn't used differently in Struts than in any other web app. Have you seen the Sun JAAS tutorial.


[Blog] [JavaRanch FAQ] [How To Ask Questions The Smart Way] [Book Promos]
Blogging on Certs: SCEA Part 1, Part 2 & 3, Core Spring 3, OCAJP, OCPJP beta, TOGAF part 1 and part 2
chandar shanmugam
Greenhorn

Joined: Dec 13, 2007
Posts: 18
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

Joined: Dec 13, 2007
Posts: 18
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
Marshal

Joined: Mar 22, 2005
Posts: 42919
    
  68
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

Joined: Dec 13, 2007
Posts: 18
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
Marshal

Joined: Mar 22, 2005
Posts: 42919
    
  68
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

Joined: Dec 13, 2007
Posts: 18
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

Joined: Dec 13, 2007
Posts: 18
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
Marshal

Joined: Mar 22, 2005
Posts: 42919
    
  68
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

Joined: Dec 13, 2007
Posts: 18
No am not working in any web app.This is my first web app
Alaa Nassef
Ranch Hand

Joined: Jan 28, 2008
Posts: 467
Hello Chandar,

You may take a look at the following links
http://technology.amis.nl/blog/?p=259
http://technology.amis.nl/blog/?p=261
http://www.mail-archive.com/user@struts.apache.org/msg66533.html (check the whole thread)
http://www.devarticles.com/c/a/Java/JAAS-Securing-J2EE-Applications-Securing-Web-Components/


Visit my blog: http://jnassef.blogspot.com/
chandar shanmugam
Greenhorn

Joined: Dec 13, 2007
Posts: 18
Hi

Thanks
chandar shanmugam
Greenhorn

Joined: Dec 13, 2007
Posts: 18
Hi

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

Thanks in advance
Alaa Nassef
Ranch Hand

Joined: Jan 28, 2008
Posts: 467
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

Joined: Dec 13, 2007
Posts: 18
hi Alaa Nassef

Thanks for you guidance
chandar shanmugam
Greenhorn

Joined: Dec 13, 2007
Posts: 18
hi Alaa Nassef

Thanks for you guidance
Alaa Nassef
Ranch Hand

Joined: Jan 28, 2008
Posts: 467
No problem. Always glad to help.
chandar shanmugam
Greenhorn

Joined: Dec 13, 2007
Posts: 18
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

Joined: Dec 13, 2007
Posts: 18
hi

the command to convert tar files is

Unix>tar -xvzf filename.tar.gz
chandar shanmugam
Greenhorn

Joined: Dec 13, 2007
Posts: 18
hi

the command to convert tar files is

Unix>tar -xvzf filename.tar.gz
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Implement JAAS in Struts