struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Erez Efrati <er...@netmedia.net.il>
Subject RE: JAAS Struts & JBoss + Tomcat
Date Sat, 05 Jul 2003 15:48:29 GMT
Thanks a lot Paul for the answers.

-- Erez

-----Original Message-----
From: Paul Thomas [mailto:paul@tmsl.demon.co.uk] 
Sent: Saturday, July 05, 2003 2:49 PM
To: struts-user
Subject: Re: JAAS Struts & JBoss + Tomcat


On 04/07/2003 16:16 Erez Efrati wrote:
> Hi, I am trying to integrate the JAAS into my Struts application
running
> on JBoss 3.0.7 + Tomcat. I am a newbie here, and I would appreciate
your
> help on several questions:
> 
> 1. From what I read here, I saw that I should probably use the FORM
auth
> method, and that this page should not use any of the Struts tags. Is
> that right?

html:form might be a problem but bean:message works fine for me.

> 
> 2. In my application, the first thing a user does is passing a
> registration wizard. How can I set different set of permissions using
> the web.xml to the registration wizard pages and to the rest of the
> application, where both are handled by the struts ActionServlet
servlet?

The ActionServlet doesn't really enter into it. You define constaints 
against urls. So you might have a url /register.do for your registration

wizard and /showdetails.do to show some detail page. Each would have its

own declared contraints in web.xml. I recommend reading the 2.3 servlet 
specs.

> 3. Regarding more to JBoss + Tomcat, I don't understand what happens
> when a web client accesses a protected page. Does JBossSX which
> implements the authentication takes over and perform the
authentication?
> After the authentication is done, does my Struts action can invoke EJB
> methods freely or should they authenticate as well?

I can't answer that I'm afraid. I would suggest you get a sample app 
working under Tomcat alone then try deploying it under JBoss.

HTH

-- 
Paul Thomas
+------------------------------+----------------------------------------
-----+
| Thomas Micro Systems Limited | Software Solutions for the Smaller 
Business |
| Computer Consultants         | 
http://www.thomas-micro-systems-ltd.co.uk   |
+------------------------------+----------------------------------------
-----+

---------------------------------------------------------------------
To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: struts-user-help@jakarta.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: struts-user-help@jakarta.apache.org


Mime
View raw message