Re: [OT] User Preference System Design

2004-11-17 Thread Adam Hardy
Hi Julian, you should take a look at CMS (container-managed security) as this is probably the most effective solution - integrated, portable, widespread etc. Try either tomcat's website for documentation there, or even look in the servlet spec from Sun, or in your appserver's docs, to see if

Re: [OT] User Preference System Design

2004-11-17 Thread bryan
If you have a good learner and familiar with Dependancy injection/IOC I would recomend you look at acegi. It has a steep initial learning curve but there is no need that it doesn't satisfy, I think it is the most flexible and advanced security system/framework I've ever seen, providing security

Re: [OT] User Preference System Design

2004-11-17 Thread Erik Weber
I like java.util.Properties, or, if Strings aren't good enough, another wrapper for a Map that allows put/get of Objects but that uses a hierarchical default system like Properties does. Properties has built in load/save methods that you can use to store your properties on disk until you move

Re: [OT] User Preference System Design

2004-11-17 Thread Julian
Hi, Thanks for the input. The Properties object is more inline with what I was thinking. The problem with it however, is that there can only be one key/value pair. I see no ability to have one key with multiple pairs other than doing comma delimitation. This is why XML was chosen originally.

RE: [OT] User Preference System Design

2004-11-17 Thread Daniel Perry
, but it works. Daniel. -Original Message- From: Julian [mailto:[EMAIL PROTECTED] Sent: 17 November 2004 14:08 To: Struts Users Mailing List Subject: Re: [OT] User Preference System Design Hi, Thanks for the input. The Properties object is more inline with what I was thinking

RE: [OT] User Preference System Design

2004-11-17 Thread Michael Klaene
Preference System Design Hi, Thanks for the input. The Properties object is more inline with what I was thinking. The problem with it however, is that there can only be one key/value pair. I see no ability to have one key with multiple pairs other than doing comma delimitation. This is why

Re: [OT] User Preference System Design

2004-11-17 Thread atta-ur rehman
if JDK 1.4 is an option you might want to take a look at: java.util.prefs.* HTH. ATTA On Tue, 16 Nov 2004 19:09:55 -0800 (PST), Julian [EMAIL PROTECTED] wrote: Hi, I am a Struts Newbie and would appreciate if anyone could give me some pointers on a user preferences/ configuration system

RE: [OT] User Preference System Design

2004-11-17 Thread Julian
properties. Not very elegant, but it works. Daniel. -Original Message- From: Julian [mailto:[EMAIL PROTECTED] Sent: 17 November 2004 14:08 To: Struts Users Mailing List Subject: Re: [OT] User Preference System Design Hi, Thanks for the input. The Properties object is more

Re: [OT] User Preference System Design

2004-11-17 Thread Dakota Jack
Why don't you just use a database? Am I missing something? Why XML, properties files, etc.? Jack On Wed, 17 Nov 2004 10:44:04 +, Adam Hardy [EMAIL PROTECTED] wrote: Hi Julian, you should take a look at CMS (container-managed security) as this is probably the most effective solution -

Re: [OT] User Preference System Design

2004-11-17 Thread Dakota Jack
You received several answers about security, but that is not what you want, right? You want to be able to set and to deliver user preferences. As part of any suggestion about how you should do this, one would need to know what the app is all about. Different solutions for different problems is

RE: [OT] User Preference System Design

2004-11-17 Thread David G. Friedman
Why not do both and use XML database like Apache Xindice? http://xml.apache.org/xindice/ Regards, David -Original Message- From: Dakota Jack [mailto:[EMAIL PROTECTED] Sent: Wednesday, November 17, 2004 12:33 PM To: Struts Users Mailing List Subject: Re: [OT] User Preference System

Re: [OT] User Preference System Design

2004-11-17 Thread Julian
Comments inline: --- Dakota Jack [EMAIL PROTECTED] wrote: You received several answers about security, but that is not what you want, right? You want to be able to set and to deliver user preferences. Exactly. As part of any suggestion about how you should do this, one would need to

Re: [OT] User Preference System Design

2004-11-17 Thread Julian
I forgot to mention: 1) I cannot use Xindice since I do not feel it is viable. 2) I expect to have thousands of users with a moderate load. 3) I am leaning towards Michael's suggestion: http://www.developer.com/db/print.php/10920_3413151_1 Comment appreciated :) Thanks again, Julian

Re: [OT] User Preference System Design

2004-11-17 Thread Michael Klaene
I'd like to learn more about storing XML in the database myself. I really haven't had much experience there so I couldn't say if it is beneficial or not. I started out as a database developer so I tend to rely heavily on the database for a number of things, system prefs being one of those

Re: [OT] User Preference System Design

2004-11-17 Thread Julian
Hey Michael, Thanks for the input, you've offered me some great insight. I was wondering if you may know a good resource that discusses database design patterns like the codelist or a line table? Otherwise, afaik I have stored XML in the database and it's great if you just transform it to an

Re: [OT] User Preference System Design

2004-11-17 Thread Michael Klaene
I don't know of any resources like this, but I'm sure there are database books which detail the use of tables to help configure code. Like I said, I based my own tables off of what I've seen Oracle do, but there's probably a lot of variations on the same concept. Mike Julian [EMAIL

[OT] User Preference System Design

2004-11-16 Thread Julian
Hi, I am a Struts Newbie and would appreciate if anyone could give me some pointers on a user preferences/ configuration system design. Perhaps a link to a good resource? I have an ASP system with several levels of users that are as broad as an organization and as fine-grained as an individual