Hi,
Has anyone tried filters framework (filter tag in web.xml) in struts for role based
access to webpages in a enterprise wide application...deployed in weblogic...we tried
this and seems each sub-application needs a differenet, its own web.xml and a single
integrated web.xml..
Any
: Struts/filters
Hi,
Has anyone tried filters framework (filter tag in web.xml) in struts for
role based access to webpages in a enterprise wide application...deployed in
weblogic...we tried this and seems each sub-application needs a differenet,
its own web.xml and a single integrated web.xml..
Any
, 2004 10:51 AM
To: [EMAIL PROTECTED]
Subject: RE: Struts/filters
Pady,
thats great...May I have a look at the samples if possible...That would help
me a lot with the initial learning curve.
Thanks!
Pady Srinivasan [EMAIL PROTECTED] wrote:
We do this in our web app. We have a config xml
: as as [mailto:[EMAIL PROTECTED]
Sent: Monday, March 22, 2004 10:51 AM
To: [EMAIL PROTECTED]
Subject: RE: Struts/filters
Pady,
thats great...May I have a look at the samples if possible...That would help
me a lot with the initial learning curve.
Thanks!
Pady Srinivasan
wrote:
We do this in our
Subject: servlet filters and authentication
Hello,
I'm configuring the skeleton of a multi module struts application, and i
would like use a filter for the authentication.
here is psuedojava (for easier reading) of the filter:
public final class AuthFilter implements
Hello,
I'm configuring the skeleton of a multi module struts application, and i
would like use a filter for the authentication.
here is psuedojava (for easier reading) of the filter:
public final class AuthFilter implements Filter {
public void doFilter(request, response, chain)
Forward to logon.do, and have the Action check for four cases:
1. no request parameters, display logon form
2. invalid request parameters, display errors
3. unable to authenticate with valid parameters, display error
4. parameters authenticate, forward to home page
Rick DeBay
On Thu, 26 Feb 2004
Thank you. I knew i was overlooking something simple.
On Thu, 2004-02-26 at 15:12, [EMAIL PROTECTED] wrote:
Forward to logon.do, and have the Action check for four cases:
1. no request parameters, display logon form
2. invalid request parameters, display errors
3. unable to authenticate with
Subject: servlet filters and authentication
Hello,
I'm configuring the skeleton of a multi module struts application, and i
would like use a filter for the authentication.
here is psuedojava (for easier reading) of the filter:
public final class AuthFilter implements
got pretty complex for
permissions and this worked extremely well for what we were trying to
accomplish.
-Jake
-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
Sent: None
To: Struts Users Mailing List
Subject: Re: servlet filters and authentication
Forward to logon.do
You may want to see if this supports your requirements:
https://sourceforge.net/projects/securityfilter/
robert
-Original Message-
From: David Evans [mailto:[EMAIL PROTECTED]
Sent: Thursday, February 26, 2004 12:07 PM
To: Struts Users Mailing List
Subject: servlet filters
I have a an interesting issue which at first blush doesn't seem solvable but
could be a bug in struts 1.1 or my use of struts.
I have a partially implemented struts application which is using filters for
security (not the sourceforge security filter). I used to issue a 401
error, have
is familiar with any drawbacks of trapping http error 202, your
commentary would be appreciated.
Thanks again
Edgar
-Original Message-
From: Edgar P Dollin
Sent: Monday, January 12, 2004 7:10 PM
To: Struts Users Mailing List
Subject: filters / tomcat / httpunit / webtest
I have
On 11/04/2003 10:37 PM jeff wrote:
will struts work with filters ?
i am using filters now, and want to start using struts.
Jeff,
that's a bit like asking will servlets work with filters? or will
JSPs work with filters? or even will MVC work with filters?
Struts is compatible with filters
snip
that's a bit like asking will servlets work with filters? or will
JSPs work with filters? or even will MVC work with filters?
/snip
The answer to which is NO if running under a Servlet API 2.2 container...
;-)
-Original Message-
From: Adam Hardy [mailto:[EMAIL PROTECTED]
Sent
On 11/05/2003 09:43 AM Andrew Hill wrote:
snip
that's a bit like asking will servlets work with filters? or will
JSPs work with filters? or even will MVC work with filters?
/snip
The answer to which is NO if running under a Servlet API 2.2 container...
;-)
Well strike me down for misleading
will struts work with filters ?
i am using filters now, and want to start using struts.
thanks,
jeff
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
sure, it will!
- Original Message -
From: jeff [EMAIL PROTECTED]
To: Struts Users Mailing List [EMAIL PROTECTED]
Sent: Tuesday, November 04, 2003 1:37 PM
Subject: struts and filters
will struts work with filters ?
i am using filters now, and want to start using struts.
thanks
jeff wrote:
will struts work with filters ?
Yes.
.V
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
--- jeff [EMAIL PROTECTED] wrote:
will struts work with filters ?
i am using filters now, and want to start using struts.
The two topics are not really related. You can use one without the other
or together.
David
thanks,
jeff
you may use following
request.setAttribute(Globals.ERROR_KEY, errors);
to set global parameter of errors..
set action error as usual...
Nate Drake wrote:
I have a Servlet Filter that checks that the user has permission to
access the requested page. If the user does not, I want to send them
In addition to below reply:
you may set name in html:error and .
request.setAttribute(name, errors)
errors can be string, string[], ActionErrors, ErrorMesssages
Manish Singla wrote:
you may use following
request.setAttribute(Globals.ERROR_KEY, errors);
to set global parameter of errors..
:[EMAIL PROTECTED]
Gesendet: Freitag, 26. September 2003 02:08
An: [EMAIL PROTECTED]
Betreff: ActionErrors and Servlet Filters
I have a Servlet Filter that checks that the user has permission to
access the requested page. If the user does not, I want to send them
back to home.jsp. In home.jsp, I
. Also
you could check to make sure you have imported the html taglibrary in your
home.jsp
-Ursprungliche Nachricht-
Von: Nate Drake [mailto:[EMAIL PROTECTED]
Gesendet: Freitag, 26. September 2003 02:08
An: [EMAIL PROTECTED]
Betreff: ActionErrors and Servlet Filters
I have
I have a Servlet Filter that checks that the user has permission to
access the requested page. If the user does not, I want to send them
back to home.jsp. In home.jsp, I want to use the html:errors tag to
display an error message.
In the filter I do this:
ActionError error = new
Hi,
I am trying to use filters for login authentication using Jakarta struts framework
with Tomcat. Has anyone done this earlier...any helpful tutorial/pointers/website...
Thanks,
Samy
-
Do you Yahoo!?
Yahoo! SiteBuilder - Free, easy-to-use web site design
: as as [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Tuesday, September 16, 2003 11:59 AM
Subject: using struts with filters
Hi,
I am trying to use filters for login authentication using Jakarta struts
framework with Tomcat. Has anyone done this earlier...any helpful
tutorial/pointers/website
to see if he has permission to that action or whatever
resource it may be.
-David
- Original Message -
From: as as [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Tuesday, September 16, 2003 11:59 AM
Subject: using struts with filters
Hi,
I am trying to use filters for login
Sorry for the reposting,
Hi to all,
Suppose we have a tabular jsp, which shows data in the table.
Also in this tabular jsp, we implement a searching mechanism applying some filters.
Suppose that from that jsp we go with links or action in some others (depth 3-4),
and i want to go back
Hi to all,
Suppose we have a tabular jsp, which shows data in the table.
Also in this tabular jsp, we implement a searching mechanism applying some filters.
Suppose that from that jsp we go with links or action in some others (depth 3-4),
and i want to go back from the starting jsp, but i
snip
One can do this with servlet filters, but sometimes its nice to do this
within Struts, to look at the action mapping, pick an action forward, etc.
I could imagine libraries of pluggable 'ActionFilters' for checking that the
user is logged in, security, transaction demarcation, logging, etc
Yes, there's a lot of overlap between servlet filters and 'action filters'. But with
a servlet filter you get control after Struts has already performed the action
forward. With an 'action filter' you'd get control before the forward is performed,
and you would have convenient access
rule 1 easily without
servlet filters. So any
meaningful servlet filters should be placed to pre-filter *.do resources in
a web application, or
post-filter *.jsp resources after the http response has completed. The
pre-fileters get invoked
before Struts request processor. The post-filters get
also do this by extending
RequestProcessor. The problem with these inheritance based approaches is that you
can't mix and match different decorators very easily, without leading to a
combinatorial explosion of derived classes.
One can do this with servlet filters, but sometimes its nice
I am wondering if I have a filter set up and I map *.jsp for it to do
something will using Tiles cause the mapping not to do that something with
my JSP pages? I mean, once my JSPs are all combined into a page is that
page no longer a JSP (as far as the filter is concerned)?
On Fri, 25 Jul 2003, Bailey, Shane C. wrote:
Date: Fri, 25 Jul 2003 11:42:58 -0400
From: Bailey, Shane C. [EMAIL PROTECTED]
Reply-To: Struts Users Mailing List [EMAIL PROTECTED]
To: 'Struts Users Mailing List' [EMAIL PROTECTED]
Subject: How does Tiles effect filters and URL mapping?
I
with /home mapping
and use a regular action instead and I will get the request variables set
by my filter?
-Original Message-
From: Craig R. McClanahan [mailto:[EMAIL PROTECTED]
Sent: Friday, July 25, 2003 11:58 AM
To: Struts Users Mailing List
Subject: Re: How does Tiles effect filters
On Fri, 25 Jul 2003, Bailey, Shane C. wrote:
Date: Fri, 25 Jul 2003 12:19:54 -0400
From: Bailey, Shane C. [EMAIL PROTECTED]
Reply-To: Struts Users Mailing List [EMAIL PROTECTED]
To: 'Struts Users Mailing List' [EMAIL PROTECTED]
Subject: RE: How does Tiles effect filters and URL mapping
PROTECTED]
Sent: Friday, July 25, 2003 1:00 PM
To: Struts Users Mailing List
Subject: RE: How does Tiles effect filters and URL mapping?
On Fri, 25 Jul 2003, Bailey, Shane C. wrote:
Date: Fri, 25 Jul 2003 12:19:54 -0400
From: Bailey, Shane C. [EMAIL PROTECTED]
Reply-To: Struts Users Mailing List
On Fri, 25 Jul 2003, Bailey, Shane C. wrote:
Date: Fri, 25 Jul 2003 14:18:54 -0400
From: Bailey, Shane C. [EMAIL PROTECTED]
Reply-To: Struts Users Mailing List [EMAIL PROTECTED]
To: 'Struts Users Mailing List' [EMAIL PROTECTED]
Subject: RE: How does Tiles effect filters and URL mapping
Am using Struts with tomcat.
Can I use ServletFilters for processing login permissions on URLs?
Or would I have to rewrite the controller Action Class adding a if-then-else
there?
'Cause the web.xml dosent have the servlet entries for rest of the action
classes.
PROTECTED]
Sent: Wednesday, July 23, 2003 9:41 AM
To: Struts Users Mailing List
Subject: filters
Am using Struts with tomcat.
Can I use ServletFilters for processing login permissions on URLs?
Or would I have to rewrite the controller Action Class adding a if-then-else
there?
'Cause the web.xml
Struts doesn't have anything to do with Servlet filters (Servlets 2.3). You
can use filters.
You don't have to rewrite anything.
web.xml only has entries for servlets. A Struts action is not a servlet. Do
you mean role based permissions for actions ?
Mohan
-Original Message-
From
PROTECTED]
Sent: Wednesday, July 23, 2003 9:41 AM
To: Struts Users Mailing List
Subject: filters
Am using Struts with tomcat.
Can I use ServletFilters for processing login permissions on URLs?
Or would I have to rewrite the controller Action Class adding a if-then-else
there?
'Cause the web.xml dosent
Struts will work with Container based authentication/authorisation (a+a)
and with Servlet Filters. If you plan/need to use a Filter to do a+a
with a Filter, take a look at http://securityfilter.org/
Sean
On Wed, 2003-07-23 at 14:40, Balaji R wrote:
Am using Struts with tomcat.
Can I use
I asked a while back about implementing a security check for session data, and some
people recommended using Filter Objects. My current project is working with the
Servlet 2.2 spec, so I don't have the option of using Filters. Someone else mentioned
overriding the Default Action that all my
Jarnot
Quidquid latine dictum sit, altum viditur.
-Original Message-
From: Jason Vinson [mailto:[EMAIL PROTECTED]
Sent: Wednesday, February 26, 2003 7:57 AM
To: Struts Users Mailing List
Subject: Security without the use of Servlet Filters
I asked a while back about implementing
On Tue, 28 Jan 2003, Sterin, Ilya wrote:
Ok, thanks to all:-) Guess my only other option is to either define a
filter for each servlet for now, until 2.4 is prod ready, or as Max
mentioned, and put all actions in need of authentication, within the
members namespace.
Both are a hassle of
, therefore, it allows anonymous access.
If not filters, what are other good/best approaches.
Thanks.
Ilya
:[EMAIL PROTECTED]]
Sent: Monday, January 27, 2003 11:13 AM
To: '[EMAIL PROTECTED]'
Subject: Filters and Struts
I'd like to know if anyone has used and/or knows the best way to use a Login
Filter with Struts. Before utilizing struts, I simply filtered say a
members directory, which took care of all
I could be wrong but I believe filters apply to forwards.
David
From: Sterin, Ilya [EMAIL PROTECTED]
Reply-To: Struts Users Mailing List [EMAIL PROTECTED]
To: '[EMAIL PROTECTED]' [EMAIL PROTECTED]
Subject: Filters and Struts
Date: Mon, 27 Jan 2003 09:13:26 -0700
I'd like to know if anyone
It is in the 2.4 Servlet Spec, but I'm not fully sure if it's included in
2.3, which is 4.1.x I believe.
| -Original Message-
| From: David Graham [mailto:[EMAIL PROTECTED]]
| Sent: Monday, January 27, 2003 10:35 AM
| To: [EMAIL PROTECTED]
| Subject: Re: Filters and Struts
|
| I could
Message-
From: Jacob Hookom
To: 'Struts Users Mailing List'
Sent: 1/27/03 9:39 AM
Subject: RE: Filters and Struts
It is in the 2.4 Servlet Spec, but I'm not fully sure if it's included
in
2.3, which is 4.1.x I believe.
| -Original Message-
| From: David Graham [mailto:[EMAIL PROTECTED
://jcp.org/aboutJava/communityprocess/first/jsr154/
With 2.4, you can define lots more in your filter-mapping for includes,
specific GET/POST requests etc. I'm finishing up a robust caching framework
with the use of tags/filters, and the 2.4 features will really simplify
filter functionality, even
On Mon, 27 Jan 2003, David Graham wrote:
Date: Mon, 27 Jan 2003 09:35:12 -0700
From: David Graham [EMAIL PROTECTED]
Reply-To: Struts Users Mailing List [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Subject: Re: Filters and Struts
I could be wrong but I believe filters apply to forwards.
Only
Filters do not apply to forwards (I thought that, too, but tested it last
week and they don't). The Servlet 2.4 spec has an option to allow you to
turn such forward filtering on.
In reference to the original question, how about naming your action mappings
(in struts-config.xml) so that they can
' '
Subject: RE: Filters and Struts
I did some more checking on the 2.3 Spec and you are correct that it
does not allow for specific include requests. I believe Craig had
mentioned before in Tomcat-User that the Filter chain is created once a
request, which would not accommodate dynamic includes
To: 'Jacob Hookom'; ''Struts Users Mailing List' '
Subject: RE: Filters and Struts
Ok, thanks to allO Guess my only other option is to either define a filter
for each servlet for now, until 2.4 is prod ready, or as Max mentioned, and
put all actions in need of authentication, within the members namespace
In the core technologies section of the struts web pages on Jakarta site
there is mention of filtering using javax.servlet.Filter class. My question
is whether or not this would be the best technology to use to implement
localization of HTML pages for the Tomcat webserver. Localized content for
Ok whats wrong with this thread?
Seems it offended someones highly touchy content filter.
duh! tries-to-clap-but-the-hands-miss/
stupid/
Trend SMEX Content Filter has detected sensitive content.
Place = Struts Users Mailing List; ; ; Struts Users Mailing List
Sender = Andrew Hill
Subject = RE:
] is not a nation of hypocrites.
Mark
-Original Message-
From: Andrew Hill [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, August 20, 2002 12:07 PM
To: Struts Users Mailing List
Subject: Stupid email filters [WAS: DAO - DTO business object to view
beans]
Ok whats wrong with this thread?
Seems it offended
I get a bad filter message for every post I send to struts-user!
I hope it's not my name birch which looks like 'bitch'!?!! what about Birch trees?
sorry all to make you receive annoying filters
Alex
--- Galbreath, Mark [EMAIL PROTECTED] wrote: Heh heh...happens to me all the
time:
Your
Trend SMEX Content Filter has detected sensitive content.
Place = Struts Users Mailing List; ; ; Struts Users Mailing List
Sender = Mark Galbreath
Subject = RE: Stupid email filters [WAS: DAO - DTO business object to
view beans]
Delivery Time = August 20, 2002 (Tuesday) 13:35:22
Policy
-
I'm enjoying Struts again and *really* enjoying filters...
*
This email and any files transmitted with it may be confidential and
privileged. It is intended solely for the use of the individual or
parties to whom
Content-Transfer-Encoding: 7bit
Hi folks,
I am currently endeavouring to add Servlet 2.3 filtering (SiteMesh 1.3,
in fact) to a Struts 1.0.2 application - but having no luck. I have
searched the mailing list archives and can find no reference to this
combination.
I have set up inside one
] [SMTP:[EMAIL PROTECTED]]
Date: jeudi 4 avril 2002 10:20
A:[EMAIL PROTECTED]
Objet:Problem with Struts and 2.3 Filters
Content-Transfer-Encoding: 7bit
Hi folks,
I am currently endeavouring to add Servlet 2.3 filtering (SiteMesh 1.3,
in fact) to a Struts 1.0.2 application
PROTECTED]
Sent: Thursday, April 04, 2002 10:19 AM
Subject: Problem with Struts and 2.3 Filters
Content-Transfer-Encoding: 7bit
Hi folks,
I am currently endeavouring to add Servlet 2.3 filtering (SiteMesh 1.3,
in fact) to a Struts 1.0.2 application - but having no luck. I have
searched
in
the filter, we are all set if we decide for any reason we need to change the
flow of the application. (I think)
Regards,
Todd
-Original Message-
From: John Regan [mailto:[EMAIL PROTECTED]]
Sent: Thursday, March 21, 2002 12:49 PM
To: 'Struts Users Mailing List'
Subject: RE: Using 2.3 Filters
[mailto:[EMAIL PROTECTED]]
Sent: Thursday, March 21, 2002 7:09 AM
To: 'Struts Users Mailing List'
Subject: RE: Using 2.3 Filters and Struts
In your filter, you can do something like the below. We have implemented
something similar to this but have container managed security on top of it.
So
Hello everyone,
What is the best way to redirect a request to a login page from within a
filter? Any examples?
Thanks,
JBR
, February 13, 2002 4:25 PM
To: '[EMAIL PROTECTED]'
Subject: Using Struts with filters
I would like to put my authorization logic in a servlet filter. If
authorization fails, I would like to display an error page by forwarding to
a JSP. I would like to look up this JSP name just as I would while
to filters
and listeners?
--
To unsubscribe, e-mail: mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Subject: Re: Using Struts with filters
From: Vic Cekvenich [EMAIL PROTECTED]
===
Follow J2EE JAS Container based security is an alternative.
Daniel Steinberg wrote:
I would like to put my authorization logic in a servlet filter. If
authorization fails, I would like to display an error page
Hi
I've just read the exVerify user guide. It specifies that ezVerify tags
should enclose html tags. Do these tags still work if they enclose
struts tags?
Thanks
Peter
--
To unsubscribe, e-mail: mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]
PROTECTED]
Subject: Re: Security and Filters
Hi
I've just read the exVerify user guide. It specifies that ezVerify tags
should enclose html tags. Do these tags still work if they enclose
struts tags?
Thanks
Peter
--
To unsubscribe, e-mail: mailto:[EMAIL PROTECTED]
For additional commands, e
75 matches
Mail list logo