Fine Grained Access Control in Sturts

2003-03-20 Thread Mike Duffy
Does anyone have any thoughts on fine grained access control in Struts? Struts enables access control based on actions (see “Struts in Action”, Husted, et. al., pp 550-553), and most application servers can protect resources based on realms/roles. But what about display options based on roles.

Re: Fine Grained Access Control in Sturts

2003-03-20 Thread Mike Duffy
-logic.html#present David From: Mike Duffy [EMAIL PROTECTED] Reply-To: Struts Users Mailing List [EMAIL PROTECTED] To: [EMAIL PROTECTED] Subject: Fine Grained Access Control in Sturts Date: Thu, 20 Mar 2003 12:23:07 -0800 (PST) Does anyone have any thoughts on fine grained access control

Bookmarking the Login Page - Container Managed Security

2003-03-23 Thread Mike Duffy
Does anyone know of a Struts work around for the problem with Tomact in bookmarking the login page for container managed security? There was a brief thread on this issue about a month ago [http://www.mail-archive.com/[EMAIL PROTECTED]/msg59734.html] There is a SourceForge project called

RE: case study with security

2003-03-23 Thread Mike Duffy
It is not necessary to create a specialty tag. If you are using container managed security and your users are set in specific roles you can use the logic:present tag with the role attribute. I do think the right way to do this is have the view conditional based on roles. Mike --- Marco

Status 400 - Invalid direct reference to form login page

2003-03-24 Thread Mike Duffy
Status 400 - Invalid direct reference to form login page The above error is generated when a user bookmarks the login page on an application server where container managed security is used. Does anyone have an elegant way of dealing with this error? Putting a note on the login page saying,

Re: [OT] JSP custom tags

2003-03-25 Thread Mike Duffy
Try deleting the Tomcat work directory. --- Becky Norum [EMAIL PROTECTED] wrote: I've been beating my head against this problem for the last two hours; I'm hoping someone here can point me in the right direction. I have created a custom tag in the class CheckOwnerTag . I have defined the

Re: Actions based on Role

2003-03-27 Thread Mike Duffy
Mark, Do you have experience with security filter? Have you examined the source code? I went to SourceForge to get the download. There was a JAR but no source except for a limited implementation class. I would not want to implement a security filter without seeing the source. Can anyone tell

RE: Populating Value Objects for the Business Tier

2003-05-30 Thread Mike Duffy
I would suggest option 1, with a slight variation. I think it is best to keep action classes as lean as possible. Rather than doing any heavy lifting in an action class it is better to make calls to delegates and other helper classes. The modular nature of the code enhances code reuse and

nested:link with multiple parameters

2003-06-11 Thread Mike Duffy
Could someone please provide a simple example showing the use of nested:link with multiple parameters? According to the documentation: This tag is an extension of the html:link tag. Please consult its documentation for information on tag attributes and usage details. According to one book on

Struts Tags Breaking with Resin 2.19

2003-06-16 Thread Mike Duffy
Has anyone else noted any problems with Struts and Resin 2.19? __ Do you Yahoo!? SBC Yahoo! DSL - Now only $29.95 per month! http://sbc.yahoo.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For

Not Accepting Posts from Struts Forms

2002-04-23 Thread Mike Duffy
We are running Struts under Resin with IIS on the front end. Any type of get request processes fine. However, post requests generate the error below. Has anyone run into a similar problem? Thanks. Mike HTTP Error 405 405 Method Not Allowed The method specified in the Request Line is not

Forms Beans and DAO (Best Practices)

2002-05-03 Thread Mike Duffy
I am pre-populating a form with information from a data base. Is the following procedure acceptable, or is there another procedure that would be considered a Best Practice? Instantiate the form bean in the action class. Instantiate one or more DAO objects in the action class. Call methods in

RE: Forms Beans and DAO (Best Practices)

2002-05-03 Thread Mike Duffy
and the Action class from the structure of the DAOs and the back-end sysems. Given all this, I like the first approach above the best. FWIW - Kevin Mike Duffy [EMAIL PROTECTED] on 05/03/2002 11:50:37 AM Please respond to Struts Users Mailing List [EMAIL PROTECTED

Re: Re[2]: Forms Beans and DAO (Best Practices)

2002-05-04 Thread Mike Duffy
Also, You might find the following links useful: http://java.sun.com/blueprints http://java.sun.com/blueprints/code/jps13/src/index.html Mike --- Rick Reumann [EMAIL PROTECTED] wrote: Thanks all for your responses to this topic. I have been trying to find more concrete examples of using

Re: Struts Architecture - PLEASE END THIS THREAD

2002-05-06 Thread Mike Duffy
sample does exactly above. Mike Duffy wrote: Vic, Please take a few moments to review the following, I would value your opinion before I send it to the Struts user group. Thanks in advance for your time and insight. Mike

Sending a Redirect Directly from an Action Class

2003-06-28 Thread Mike Duffy
What are your thoughts on sending a redirect directly from an Action class: response.sendRedirect(/somePage.jsp?); return null; There is a setRedirect(boolean redirect) in the ActionForward class that could be used for the same purpose (with a few extra lines of code and an entry in the

Re: nested tags

2003-07-03 Thread Mike Duffy
I did not try to run the example specifically; however, I've built some applications based on the Monkey Tree source and I will say that nested tags are very elegant, very cool. It does work. If you have a speciffic question, the guy who wrote the nested tags code, Arron Bates, is very good

JSTL Book

2003-07-10 Thread Mike Duffy
Does anyone have a recommendation for a good JSTL book? __ Do you Yahoo!? SBC Yahoo! DSL - Now only $29.95 per month! http://sbc.yahoo.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For

Struts and Workflow

2003-07-11 Thread Mike Duffy
I think that Struts and the MVC architecture could be used to create a basic workflow system. A WorkflowState object would represent the state of items in the workflow (current assignment, current status, and other attributes). A WorkflowRights object would represent a user's right to view or

Re: Struts and Workflow

2003-07-11 Thread Mike Duffy
and not a combination of logic decided in the JSP (if a user is in X role AND the status is Y, etc.). Mike --- Mike Duffy [EMAIL PROTECTED] wrote: I think that Struts and the MVC architecture could be used to create a basic workflow system. A WorkflowState object would represent the state of items

Struts and JSTL - Basic Questions

2003-07-17 Thread Mike Duffy
I am just starting to explore JSTL. I can see how JSTL will replace the Struts logic tags, but what about the Struts html tags? Will Struts html tags be used along with JSTL? A map can be used with JSTL to create the select options for a drop down list. Will the select tag itself reamin an

RE: Struts and JSTL - Basic Questions

2003-07-17 Thread Mike Duffy
There was a discussion in this list last week about Struts tags eventually being replaced by JSTL. I admit that I am a little confused about how things will progress. Will the Struts-EL continued to be supported? Mike --- Wendy Smoak [EMAIL PROTECTED] wrote: Mike wrote: A map can be used

Re: Struts and JSTL - Basic Questions

2003-07-17 Thread Mike Duffy
Craig, Good information. Thanks for being so responsive to the questions raised in this list. Mike --- Craig R. McClanahan [EMAIL PROTECTED] wrote: On Thu, 17 Jul 2003, Mike Duffy wrote: Date: Thu, 17 Jul 2003 13:18:52 -0700 (PDT) From: Mike Duffy [EMAIL PROTECTED] Reply

paramId in html-el:link tag - Referenceing a Constant

2003-07-20 Thread Mike Duffy
The struts-example\registration.jsp contains the following code: html:link page=/editSubscription.do?action=Create paramId=username paramName=registrationForm paramProperty=username bean:message key=registration.addSubscription/ /html:link Switching this to an html-el:link tag is easy.

RE: J2EE IDE

2003-08-28 Thread Mike Duffy
I agree with the points David makes below. Eclipse Rocks. And with the plugin framework, it is getting better all the time. I run Eclipse on Windows XP at work and on Linux 9.0 at home. No problems. Mike --- Hibbs, David [EMAIL PROTECTED] wrote: a) Boot time : I haven't met a Java-based

Re: EJB's vs. Hibernate vs. Torque vs. custom DTO's (EJBs are OK)

2003-10-04 Thread Mike Duffy
I think that Hibernate and iBATIS were probably created in reaction to the inefficiencies and complexities of EJB 1.1. In terms of efficiency, EJB 2.0 is a significant improvement over EJB 1.1. In terms of complexity, XDoclet offers an elegant approach to coding EJBs

Re: EJB's vs. Hibernate vs. Torque vs. custom DTO's (EJBs are OK)

2003-10-04 Thread Mike Duffy
is that within a year there will be a completely decoupled fine grained persistence service within EJB. Perhaps there will be some sort of byte code enhancement for entity beans. :( Mike --- Ted Husted [EMAIL PROTECTED] wrote: Mike Duffy wrote: In the short term, a non-standard solution may

Determining if Values Have Changed - Or Does it Even Matter?

2003-10-09 Thread Mike Duffy
Example: A data entry tech request a customer profile. The system gets a CustomerProfile business model object from the data access layer. The CustomerProfile business model is debriefed into a CutomerProfileForm ActionForm object. The values from the CutomerProfileForm are displayed in

Under What Circumstances Would You Recommend the Use of EJB?

2003-10-09 Thread Mike Duffy
Thank you Harm. I agree with your assessment of JBoss. JBoss is also a great value (although I think they should charge some nominal fee to insure the viability of their organization; see Alan Williamson's August editorial in JDJ). :) Under what circumstances would you recommend the use of

RE: Role based action

2003-10-21 Thread Mike Duffy
SecurityFilter works great, without those annoying container managed security limitations! http://securityfilter.sourceforge.net/ SecurityFilter is a Java Servlet Filter that mimics container managed security. It looks just like container managed security to your app, as you can call

[OT] Security Folter

2003-11-06 Thread Mike Duffy
Does anyone know if SecurityFilter supports encrypted passwords for a DB realm, or must passwords be stored in plain text? http://securityfilter.sourceforge.net/ Thanks! Mike __ Do you Yahoo!? Protect your identity with Yahoo! Mail AddressGuard

RE: Server manged vs. struts managed db pools

2003-11-24 Thread Mike Duffy
Tomcat has exceptionally clear documentation in this area: http://jakarta.apache.org/tomcat/tomcat-4.1-doc/jndi-datasource-examples-howto.html Mike --- Craig R. McClanahan [EMAIL PROTECTED] wrote: Quoting Edgar P Dollin [EMAIL PROTECTED]: I like struts managed db pools, however, the

Re: logic:iterate help

2003-11-24 Thread Mike Duffy
I recommend you drop the Struts logic tags and switch to JSTL combined with the Struts-el tags. JSTL has support for common, structural tasks such as iteration and conditionals, tags for manipulating XML documents, internationalization and locale-sensitive formatting tags, and SQL tags. It

[OT] Handling SQL Exceptions - Best Practices

2003-12-15 Thread Mike Duffy
I am having a difficult time finding a definitive Best Practices for handling SQL exceptions in a web application. I would like to gain from the experience of users on this list. For relatively simple web applications do you think it is acceptable to simply wrap SQL exceptions as Runtime

Re: [OT] Handling SQL Exceptions - Best Practices

2003-12-15 Thread Mike Duffy
After some further research I was able to answer my own question. The answer was yes. Best Practices for Exception Handling http://www.onjava.com/pub/a/onjava/2003/11/19/exceptions.html --- Mike Duffy [EMAIL PROTECTED] wrote: I am having a difficult time finding a definitive Best Practices

Re: Struts EL status

2003-12-15 Thread Mike Duffy
IMHO: Using the Struts HTML-EL tags with JSTL is the best way to go. The Struts Logic tags are not as funtional as JSTL. Mike --- Derek Clarkson [EMAIL PROTECTED] wrote: Hi all, My boss doesn't want to use Struts EL because as he puts it it's not part of the main development and

[OT] Shifting Resources

2004-01-06 Thread Mike Duffy
the latest generation of leading edge tools. Mike Duffy Austin, TX __ Do you Yahoo!? Yahoo! Hotjobs: Enter the Signing Bonus Sweepstakes http://hotjobs.sweepstakes.yahoo.com/signingbonus

RE: Exception handling in struts

2004-01-11 Thread Mike Duffy
I think it is best to limit the number of exceptions thrown. Best Practices for Exception Handling http://www.onjava.com/pub/a/onjava/2003/11/19/exceptions.html Mike --- Robert Taylor [EMAIL PROTECTED] wrote: H. When I cut and paste the url (both lines because it was split in the email

[OT] Eclipse and JSTL

2004-01-18 Thread Mike Duffy
Has anyone found a good Eclipse plugin for editing JSPs containing JSTL? Thanks. Mike __ Do you Yahoo!? Yahoo! Hotjobs: Enter the Signing Bonus Sweepstakes http://hotjobs.sweepstakes.yahoo.com/signingbonus

Re: [OT] Examining Response Headers

2004-02-06 Thread Mike Duffy
Robert, DevProxy is a great program for monitoring the request and response headers: http://www.widgetbuilders.com/ I recently did some socket programming. DevProxy was an invaluable tool. You can see exactly what flows through the socket between browser and host. Very good GUI interface.

[OT] CachedRowSet - Table View

2004-02-20 Thread Mike Duffy
Has anyone tried implementing the CachedRowSet for displaying data in tables on a web page? If so, please pass on the benefit of your experience. I'd be interested if anyone has a great way for displaying hundreds of rows of data from an RDBMS on a web page. It would be great if there was an

Struts Workflow

2004-02-26 Thread Mike Duffy
Does anyone have any great ideas on creating customizable workflows in Struts? __ Do you Yahoo!? Get better spam protection with Yahoo! Mail. http://antispam.yahoo.com/tools - To unsubscribe,

Using JSTL Instead of Nested Tags

2004-03-25 Thread Mike Duffy
I'm trying to convert an application from Struts display tags to JSTL (still using Struts as the MVC). I am having some difficulty converting nested tags to JSTL. Can anyone offer any guidance? Thanks. Mike __ Do you Yahoo!? Yahoo! Finance Tax Center - File

RE: Using JSTL Instead of Nested Tags

2004-03-25 Thread Mike Duffy
=${form.some.nestedProperty}/ robert -Original Message- From: Mike Duffy [mailto:[EMAIL PROTECTED] Sent: Thursday, March 25, 2004 4:46 PM To: Struts Users Mailing List Subject: Using JSTL Instead of Nested Tags I'm trying to convert an application from Struts display tags to JSTL