sharing actions with superuser

2004-01-12 Thread Dan Allen
This seems to be a common design problem, so I figured i would take it to the struts list for advice. In my application, a user can login and perform functions, such as viewing/altering one's own profile. Additionally, a user can have superuser priviledged, in which case they can alter other

Re: newbie: Best Practice Struts/Value-Objects?

2003-10-04 Thread Dan Allen
Ted Husted ([EMAIL PROTECTED]) wrote: Value Objects, also called Transfer Objects, are a design pattern. The idea is that you can minimize the calls to the business tier by collecting all the data you might need at once and submitting it as a batch. (Opposed to, say, updating a form a

merging webwork and struts

2003-10-04 Thread Dan Allen
Maybe I am just a little naive about the topic, but I just read a tutorial on webwork2 and I see absolutely no reason why webwork has to exist. Of course there are great ideas in the implementation of webwork2, but I see no reason why they can't just be added to struts. Take interceptors for

Re: merging webwork and struts

2003-10-04 Thread Dan Allen
Maybe I am just a little naive about the topic, but I just read a tutorial on webwork2 and I see absolutely no reason why webwork has to exist. Of course there are great ideas in the implementation of webwork2, but I see no reason why they can't just be added to struts. Take interceptors

offloading images and taglibs

2003-10-01 Thread Dan Allen
In my current position we are developing an application which lives on two different urls, one for public pages (content) and another for backend account access and content management. They both use the same templates and should look and feel as if there is no transistion. The problem is, the

template theme idea

2003-07-18 Thread Dan Allen
I have an idea which I think would help to make struts more flexible when it comes to skinning an application. I might get shot down for this, but it makes a lot of sense to be, so here goes. Currently in struts, the paths in the configuration file (and taglibs) can follow a forwardPattern and

Re: Authentication question and user accounts.

2003-07-01 Thread Dan Allen
Adam Hardy ([EMAIL PROTECTED]) wrote: Well it is slightly off-topic because it's more a tomcat issue, but in short I don't think you can achieve what you want to achieve using a standard realm and container-managed security. You could easily put a link to create a new account in your

ActionFilter captures requestUri

2003-06-25 Thread Dan Allen
When it comes to pagination, there are two solutions. Either put the dataset in the session and let the taglib return to the jsp on incremental pages or put the dataset in the request from the action each time (or a third one would be to return to the action, but check for the dataset's existence

Re: Escaping ' and in bean:write output for javascript?

2003-06-24 Thread Dan Allen
Kruse, Matt ([EMAIL PROTECTED]) wrote: From: Gemes Tibor [mailto:[EMAIL PROTECTED] addName('bean:write name=person property=lastname filter=true/'); This filters the html sensitive chars. Nope, that doesn't do the job (filter is true by default, btw). It creates output like this:

Re: \n 2 br

2003-06-24 Thread Dan Allen
Gemes Tibor ([EMAIL PROTECTED]) wrote: Franck Lefebure ?rta: Hi, Is there a way to perform nl2br conversion with struts taglibs ? write a new taglib. If the taglib converts its body, you could use it over every other taglib eg app:nl2brbean:write ...//app:nl2br No, no, no. Do

Re: Escaping ' and in bean:write output for javascript?

2003-06-24 Thread Dan Allen
Kruse, Matt ([EMAIL PROTECTED]) wrote: Which is exactly what the string taglib does from jakarta.apache.org, plus a lot of other cool things (think wordwrap and nl2br) I will check this out later. I just didn't want to introduce another taglib into this project at this point in the

DTO vs. JVT

2003-06-23 Thread Dan Allen
I just finished reading an article in the Java Developers Journal about Java Value Types (JVTs) and I am very confused what the difference is between these and Data Transfer Objects (DTOs). I understand that a value objects (VO) is very simple data holder (such as a Date or a Number) which is

nested objects in ActionForm [was: Where to do TextConversion?]

2003-06-23 Thread Dan Allen
Hookom, Jacob ([EMAIL PROTECTED]) wrote: Your ActionForms should never be passed to your DB layer... ActionForms should have strict String attributes and in your Action, take care of mapping your Business Beans to your ActionForms and visa versa-- two similar, but separate objects.

Re: Action attribute 'input'-- why required?

2003-06-23 Thread Dan Allen
Lukas Bradley ([EMAIL PROTECTED]) wrote: Error message: No input attribute for mapping path /user/BankAccount My action: action path=/user/BankAccount type=mypackage.ui.actions.BankAccountAction name=form.user.bankaccount scope=request forward name=success

Re: DTO vs. JVT

2003-06-23 Thread Dan Allen
Hookom, Jacob ([EMAIL PROTECTED]) wrote: I read the article also and it seemed like old news DTO, BO, JVT, POJO, etc they are all the same to me :) It sure would be nice if someone could pick one name and stick with it. It definitely seemed like old news, which is why I just had to ask

Re: Action attribute 'input'-- why required?

2003-06-23 Thread Dan Allen
Lukas Bradley ([EMAIL PROTECTED]) wrote: The input attribute does not seem to need to be required. It should only be required if validation is set to true for this mapping. I explicitly set validation=false and it works now. I'm using 1.1 RC1. According to the DTD, the default is

Re: Action attribute 'input'-- why required?

2003-06-23 Thread Dan Allen
Lukas Bradley ([EMAIL PROTECTED]) wrote: According to the DTD, the default is true if you specify a form (the name attribute). Otherwise it is ignored. So yes, you need to set it to false in this case and that is the expected behavior. Live and learn. I always thought it was

Re: nested objects in ActionForm [was: Where to do TextConversion?]

2003-06-23 Thread Dan Allen
A comment was made a few days back that this dicussion (of DTOs vs ActionForms) comes up every two weeks. I think this is for 2 reaons. The first is that it is clearly the most confusing part of Struts. Second, I don't think there is a single definitive example of this yet. I believe that Matt

Re: Escaping ' and in bean:write output for javascript?

2003-06-23 Thread Dan Allen
Kruse, Matt ([EMAIL PROTECTED]) wrote: Simple question, When I want to use bean:write to print a value into a JSP, to be included as an argument in a javascript function, how can I escape the output in cases where it has ' and and newline characters? For example, addName('bean:write

Re: DTO vs. JVT

2003-06-23 Thread Dan Allen
Laurent PETIT ([EMAIL PROTECTED]) wrote: Hello, IMHO, there's a difference between DTOs and Value Objects. When I use the term Value Object, I mean an immutable object, such as a String, a Date, a Money, those things who are best designed as immutable if you want to take it easy

for users of DispatchAction, a security idea

2003-06-17 Thread Dan Allen
For those of you who are using DispatchAction and are having difficulty with the validation framework, I have an idea to propose. Up to this point the two practices seemed to conflict, namely because the validator cannot distinguish between EditUser?method=save EditUser?method=delete

for users of DispatchAction, a security/validation idea

2003-06-17 Thread Dan Allen
For those of you who are using DispatchAction and are having difficulty with the validation framework, I have an idea to propose. Up to this point the two practices seemed to conflict, namely because the validator cannot distinguish between EditUser?method=save EditUser?method=delete

Re: ORMs proxies and lazy initialisations issues in the view

2003-06-12 Thread Dan Allen
For example, in the Hibernate FAQ, I've found this entry : In an MVC application, how can we ensure that all proxies and lazy collections will be initialized when the view tries to access them? 1- One possible approach is to leave the session open (and transaction uncommitted) when

Re: PHP version of Struts

2003-06-12 Thread Dan Allen
Phillip Qin ([EMAIL PROTECTED]) wrote: From the Hello application, coding is quite neat. phrame however is no where near a complete struts. It has the idea of the same MVC as struts, but you aren't going to be able to start porting applications to it. Coil for python is almost a complete

concept for active tab

2003-06-06 Thread Dan Allen
I have a site that has 6 or so main tabs. I was thinking how I would know which tab was active based on the page the user was currently visiting. I came up with one idea, but perhaps other people have ideas as well. In my tiles I set aside a variable name 'section' which by default is Home. In

Re: concept for active tab

2003-06-06 Thread Dan Allen
Andrew Hill ([EMAIL PROTECTED]) wrote: Im not using tiles and tiles tabs but my app does have navigation links that need to be highlighted. These links come from a config file (navigation-config.xml) , which specifies such things as the links label key and the url to which it points (usually

use of View in roller weblogger

2003-06-05 Thread Dan Allen
I have been studying the roller weblogger very closly lately, but I had a question about how it passes data down to the view. In roller it seems like all the controller does is pick the right page to go to, for example on the news aggregator page it simply forwards to the newsfeed-view.jsp page

multipage form struts example

2003-04-06 Thread Dan Allen
Correct me if I am wrong, but if you are doing a multipage form you have to put the form into the session scope in order to retain it throughout the duration of the wizard, am I right? The only way to avoid it would be to place hidden fields in the second and third pages to hold the values so

Re: [OT] Documenting projects

2003-04-06 Thread Dan Allen
[EMAIL PROTECTED] ([EMAIL PROTECTED]) wrote: As far as requirements, you should pick up a Rational Unified Process book and look at designing use-cases with Word. ...or KWord or swriter (OpenOffice/StarOffice) Design, you can use visio ArgoUML or Dia Sorry, just had to plug for the open

idea for multipage form input attribute

2003-04-06 Thread Dan Allen
When creating a multipage validating form wizard, it can often be inconvient if the user makes an error on the 6th page and is taken all the way to page 1 to notify the user of the error. This happens because the input attribute on an action-mapping can only be a single page. The following would

nested dynaforms possible?

2003-04-05 Thread Dan Allen
In several books, the nested tag library is introduced with struts action forms using the following example: Assume you have a personal information form which includes a person object and a nested address object. The form would contain a single object, the Person object and that person object

Re: nested dynaforms possible?

2003-04-05 Thread Dan Allen
Dan Allen ([EMAIL PROTECTED]) wrote: In several books, the nested tag library is introduced with struts action forms using the following example: Assume you have a personal information form which includes a person object and a nested address object. The form would contain a single object

Re: another site using struts

2003-04-05 Thread Dan Allen
Steve Raeburn ([EMAIL PROTECTED]) wrote: Doesn't look like struts as all URLS use the same path /store/main?cmd=... Though it is using the Front Controller pattern, there's no evidence that this is even running Java. Actually there is a jsessionid in the j2ee format, so I know it is at least

Re: [OT] My Struts webapp and hosting

2003-04-05 Thread Dan Allen
Guido ([EMAIL PROTECTED]) wrote: Hola! I only want to show you my first Struts app. http://sharedfilms.no-ip.com Problems i've found: - My database (mySQL) pool connections seem to crash when they are idle for some time (6-10 hours?) I have the autoReconnect parameter in the

another site using struts

2003-04-04 Thread Dan Allen
I believe that punchstock.com is using struts, and the action mapping prefix they are using is /store rather than /do or *.do Search for an image and look at the source. I could be wrong of course, but it looks and feels like struts. Dan p.s. You web-devs out there should be familiar with

Re: [OT] Help: JavaScript pop-up menu goes behind drop down list i n Internet Explorer

2003-04-02 Thread Dan Allen
While this is a shameless plug, I have worked many hours on an open source solution to this problem, so I felt it needed mentioning here. I wrote a menu system called domMenu and it uses a radial algorithm to detect select boxes and hides them as necessary when opening a menu. The same algorithm

Re: DynaForms perfomance

2003-04-02 Thread Dan Allen
Usually *lots* cheaper than paying your developers the extra hours it takes to build the standard form beans. Amen to that! Dan -- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - Daniel Allen, [EMAIL PROTECTED] http://www.mojavelinux.com/ - - - - - - - - - - - - - - - - - - -

html:rewrite breaking images

2003-04-02 Thread Dan Allen
When I visit a struts page for the very first time in a browser (best way to test this is simply with lynx -source) it is adding the following to the end of all urls: ;jsessionid=F4CF99D47374DF90EA1CEB573A0A32A5 which is breaking the images and stylesheet references until I reload (or in the

[OT] log4j file path issue

2003-04-02 Thread Dan Allen
I am working with a jsp developer who uses windows, where I use linux. When he checks out a copy of the application in the revision system, the log4j.properties file is not playing fair. I have in it log4j.appender.default.File=/var/tomcat4/logs/struts.log But his path to tomcat is not the

Re: [OT] log4j file path issue

2003-04-02 Thread Dan Allen
apachep2 ([EMAIL PROTECTED]) wrote: I want to know too. Currently I use 2 properties files, one for win32, one for linux. When I build my app, I let ant detect which to use. That was one solution I was thinking of but seems pretty lame to have to do. Unfortunately my JSP developer isn't

Re: [OT] log4j file path issue

2003-04-02 Thread Dan Allen
Sounds like a good question for the Log4J user list :-). True true, but sometimes I through in an [OT] just not to have to join yet another mailinglist to post a question. I am already on like 12 mailinglists and sometimes it is a bit of a barrier to asking a question to have to join and setup

Re: html:rewrite breaking images

2003-04-02 Thread Dan Allen
David Graham ([EMAIL PROTECTED]) wrote: Search the bug list for the html:img or html:rewrite tag. I think this is a known issue. Nope, but I added one. I guess I am going to try to hack a solution to this myself because this is screwing up my application and is not going to be acceptable to

Re: html:rewrite breaking images

2003-04-02 Thread Dan Allen
Raible, Matt ([EMAIL PROTECTED]) wrote: For your images and stylesheets, I suggest using html:rewrite for the paths - works great for me. img src=html:rewrite page=/images/myImage.gif/ alt=alt text / I don't think you are understanding the issue at hand. David, sorry about the duplicate

Re: custom tile definitions leads to error

2003-03-31 Thread Dan Allen
Cedric Dumoulin ([EMAIL PROTECTED]) wrote: Hi, If you use your own defined Item class, you can disable the xml validation to add your extra properties (set the appropriate option in the TilesPlugin). Also, you can use the bean tag instead of item: bean classname=...

Re: [OT] JavaScript Debugger For Client-Side Validation

2003-03-31 Thread Dan Allen
MOZILLA! There isn't a person I have introduced to mozilla, both microsoft lovers and haters alike, that do not swear by mozilla now. If tab browsing, dom inspector, javascript console or javascript debugger doesn't catch your interest, then you are just not interested in software. Mozilla

Re: [OT] JavaScript Debugger For Client-Side Validation

2003-03-31 Thread Dan Allen
David Graham ([EMAIL PROTECTED]) wrote: Oh how we all love a good browser war :-). Mozilla is ok but amateur. Opera has those features and they are implemented better than Mozilla's. I will help you out, Opera rocks too! I love them both equally well on different days. Quick examples:

form bean problems in scope

2003-03-31 Thread Dan Allen
I am having a real issue with the way that form beans are cached. If you create a form bean called myForm, visit the page, then change the form bean to MyForm and visit the page again, you will get a form bean retrieval error until you restart the whole container (not just the application in the

custom tile definitions leads to error

2003-03-30 Thread Dan Allen
I took the lead of Cedric when he made his SimpleMenuItem and I extended it to make a SimpleMenuActionItem with the following layout: item text=Home action=/Home classtype=net.creativerge.bean.SimpleMenuActionItem/ However, now I am getting DTD parse errors all over the place. It seems sort of

Re: Why have logic-el:present?

2003-03-26 Thread Dan Allen
The README.txt file in the contrib/struts-el folder explains what JSTL tags to use in place of the missing Struts tags. But I'm not sure why logic-el:present and logic-el:notPresent were implemented in Struts-EL. What can you do with those tags that you cannot do with JSTL? How does

problem with sessions dynaforms

2003-03-26 Thread Dan Allen
I encountered an error which tripped me up for 30 minutes today. I visited one of my deployed pages, then changed one of the fields in my form in both struts-config.xml and validator.xml and then reloaded both my application and tomcat. Each time I got an error that there was no getter for the

Re: jsp editor

2003-03-26 Thread Dan Allen
Ashish Kulkarni ([EMAIL PROTECTED]) wrote: Hi, u may also wana look at macromedia dreamweaver MX, u can add any number of taglibs and it works fine, also have capability to do visual editing I have never understood this request at all, I mean, what does it really mean to have a JSP editor?

question about html:rewrite

2003-03-24 Thread Dan Allen
Is there any reason why action is missing from html:rewrite? Since html:rewrite is just the abtracted part of generating the href for an html:link, it would seem to me like it too should have an action attribute. Am I wrong? Dan -- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -

Re: [friday] NEWBIE - unsubscription help

2003-03-24 Thread Dan Allen
I agree. I've heard on a few other lists that the subscription/unsubscription process can act like 'Hotel Apache' on occasion. You can unsubscribe, but you can NEVER LEAVE!!! BWAHAHAHAHAHAHA Put that one in the top ten for this year! -- - - - - - - - - - - - - - - - - - - - - - - - - -

[OT] jsptag question

2003-03-24 Thread Dan Allen
Is it possible to add a tag onto an existing tag library without adjusting the original *.tld file? What I mean is, in a second *.tld file, would it be possible to specify that it extends a set of tags and then add one or two of your own. Or do you have to use seperate prefixes for the new set

Re: question about html:rewrite

2003-03-24 Thread Dan Allen
James Mitchell ([EMAIL PROTECTED]) wrote: On Mon, 2003-03-24 at 11:39, David Graham wrote: I don't mind if the attribute gets added but *not* for 1.1. There are some simple features I've been tempted to add but we need to keep the code freeze in place. We've got 0 open bug reports!

Re: [OT] jsptag question

2003-03-24 Thread Dan Allen
No, you cannot directly extend a TLD. However, you can write a second TLD that is a copy of the original one, which uses all the same tags and classes, but adds an additional tag and class. In your JSP page, you could use the same prefix, but change the URI on your taglib tag to point to

c:out and escaping quotes

2003-03-24 Thread Dan Allen
While working with javascript I noticed that it would be helpful if I could have the output tag escape either set of quotes (' or ). Do the jstl files have anything like c:out escapeQuotes=true/ similar to escapeXml? Perhaps this would be better for my filter taglibs ;) Dan -- - - - - - - -

case study with security

2003-03-23 Thread Dan Allen
There have been several discussions on this list about how security should be loosely coupled with the ActionServlet itself (a filter on top of the application), but I am curious to know the best practicing for handling the following type of case. Assume I have an action with a path of

Re: case study with security

2003-03-23 Thread Dan Allen
After reading the suggestions, I am going to go with two different actions for setting up the form. In order to use container managed security most effectively, I am going to prefix paths with admin restrictions with admin/ for ease of filter matching. So /EditAccount

[OT] struts/hibernate in Oracle mag

2003-03-23 Thread Dan Allen
This mail is really like a [FRIDAY] coming on Sunday. I just couldn't wait until next Friday to talk about it. I recommend all business conscious or just curious struts developers/users to check out the Jan/Feb 2003 edition of Oracle magazine for a horde of articles on Struts. Sure, most of

binding data to the JSP

2003-03-23 Thread Dan Allen
At some point the action class has to pass data onto the JSP for displaying, such as a list of items. This data can either be placed in the session or the request, depending on how long it needs to persist. So in essence, the JSP has to work with what I view as magical data, since the JSP just

Re: case study with security

2003-03-23 Thread Dan Allen
Looks like a good solution to me. Excellent, I am starting to get this ;) Note, btw, that I did not mean to recommend desk phone as a generic identifier. Naturally, I will use what is specific to my app. Dan -- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - Daniel Allen,

Re: tab problem

2003-03-22 Thread Dan Allen
struts struts ([EMAIL PROTECTED]) wrote: Hi, Has any one used tabs .As they are client side Javascript . How does structs which is a server side framework deal with it . ? -thanx for ur inputs Look at the tiles-documentation.war for an example. Dan -- - - - - - - - - - - - - - -

Re: Retrieving properties from a DynaValidatorForm

2003-03-22 Thread Dan Allen
The alternative is to use the request.getParameter(..) method, which is what I'm doing at present. You definitly don't want to be doing this. First cast your form to a DynaValidatorForm and then case each property as appropriate: String name = (String) form.get(name); ...however, I have

Re: Retrieving properties from a DynaValidatorForm

2003-03-22 Thread Dan Allen
Marco Tedone ([EMAIL PROTECTED]) wrote: Thank you Dan, your suggestions are inviting...In which cases can you use BeanUtils.copyProperties? Sorry for that question, I hadn't time to go trough the documentation, so If you can give me some insights, otherwise I'll wait until I'll have some

Re: BeanUtils.copyProperties between from and DAO issues

2003-03-21 Thread Dan Allen
Mitchell Morris ([EMAIL PROTECTED]) wrote: Hmmm ... looking in the BeanUtils javadocs, I see there's already an IntegerArrayConverter which turns a String[] into an int[]. Oh look! The author's name seems oddly familiar; anybody know some guy named Craig R. McClanahan?

Re: working with a team

2003-03-21 Thread Dan Allen
Stephen Smithstone ([EMAIL PROTECTED]) wrote: Have u tried sharing the drive as a network drive with permissions on it ?? then get the jsp developer to map the network to a drive on his computer We aren't even in the same county, so this will be a little hard. I guess a good question to

Re: BeanUtils.copyProperties between from and DAO issues

2003-03-21 Thread Dan Allen
Dan Allen ([EMAIL PROTECTED]) wrote: Mitchell Morris ([EMAIL PROTECTED]) wrote: Hmmm ... looking in the BeanUtils javadocs, I see there's already an IntegerArrayConverter which turns a String[] into an int[]. Oh look! The author's name seems oddly familiar; anybody know some guy named

Re: BeanUtils.copyProperties between from and DAO issues

2003-03-21 Thread Dan Allen
Here it is: --- StringArrayConverter.java.orig 2003-03-21 04:43:17.0 -0500 +++ StringArrayConverter.java 2003-03-21 04:43:20.0 -0500 @@ -113,6 +113,10 @@ // --- Static Variables + /** +* p Model

dropping sessions

2003-03-21 Thread Dan Allen
Using security filter and the org.apache.catalina.realm.JDBCRealm, if I reload my application all the active sessions are dropped. Isn't the idea of reloading the application (through the manager) to preserve all the sessions? I can't for the life of me figure out what is screwing up. All I am

Re: working with a team

2003-03-21 Thread Dan Allen
So far I don't see much I like. If the JSP developer uploads right to the webapp then my web resources are out of sync. That means if I make a tweak to the JSP the next time he uploads, poof. That is damn ugly. The best scenario is as follows. There is a single CVS repository. I have tomcat

Re: [Q] Apache http.conf, Tomcat Struts

2003-03-21 Thread Dan Allen
I'm running an Apache (1.3) webserver on linux (Suse 8) that has multiple virtual hosts. I'm using JkMount (AJP 13) to get Tomcat to handle my Struts .jsp files. At the moment JkMount only looks in ROOT for jsp files, so even though I have the doc root set to

Re: [Q] Apache http.conf, Tomcat Struts

2003-03-21 Thread Dan Allen
I can't believe it takes a rocket scientist to setup these darn connectors. Plus, I can't for the life of me find a tutorial on doing this in apache 1.3, everyone seems to be running apache2 these days even though it isn't considered stable by most linux distros. Frustrating. Dan -- - - - - -

Re: [Q] Apache http.conf, Tomcat Struts

2003-03-21 Thread Dan Allen
Alright, I got this to work with mod_jk and apache 1.3 out of the box...but be sure to change the locahost to localhost in the workers.properties file (typo) http://jakarta.apache.org/tomcat/tomcat-4.1-doc/jk2/jk/quickhowto.html Dan -- - - - - - - - - - - - - - - - - - - - - - - - - - - - - -

Re: dropping sessions

2003-03-21 Thread Dan Allen
Boris Folgmann ([EMAIL PROTECTED]) wrote: Dan Allen wrote: Isn't the idea of reloading the application (through the manager) to preserve all the sessions? No, you do a reload when your WEB-INF/classes have changed. It's impossible to reuse the old session data, because your classes

Re: [friday] NEWBIE - unsubscription help

2003-03-21 Thread Dan Allen
James Mitchell ([EMAIL PROTECTED]) wrote: On Fri, 2003-03-21 at 00:37, Dan Allen wrote: I'm sorry to bother you all with this silly question but can someone please tell me how to unsubscibe from this list? I've tried sending countless emails to [EMAIL PROTECTED] but that does

Re: refresh command

2003-03-21 Thread Dan Allen
Vladislav Kamensky ([EMAIL PROTECTED]) wrote: Is it possible to create Action that will have forward which is not specified by struts-config.xml. I know that I can create Action that will create its own forward on the basis of HttpRequest parameter, for example, but I need a bit different

Re: struts-config.xml

2003-03-21 Thread Dan Allen
Sloan Seaman ([EMAIL PROTECTED]) wrote: You can also have imultiple files and then have ANT use a skeleton struts-config.xml file to build the final file. Just use variable replacement in ANT to insert all the seperate files into one master file (that is how we do it) Great idea! Who

user active vs. user role

2003-03-21 Thread Dan Allen
Just a quick little security question here. Do you think it would be better to make a special role for inactive users or do you think that an active/inactive switch should be a field in the datatable for the user? Basically, the user signs up, but then they have to be activated before they can

Re: ActionError using non-default resource properties

2003-03-21 Thread Dan Allen
David Graham ([EMAIL PROTECTED]) wrote: http://jakarta.apache.org/struts/userGuide/struts-html.html#errors David I knew that was coming, there is no time for lazyness on this list people ;) Dave will keep you straight, get that manual and do some light reading tonight! hehehee Dan -- -

Re: user active vs. user role

2003-03-21 Thread Dan Allen
David Graham ([EMAIL PROTECTED]) wrote: I would use a database field for this so every app. accessing the database can use the feature. Even if you only have one app. now, you may have more in the future. David So you are saying a field with 'isActive' of type boolean (or whatever the

Re: Country select pull down.

2003-03-20 Thread Dan Allen
I find that the best way to create a (somewhat static) select list of options on an html page (such as a list of countries, states, industries, services, etc..) is to make a Bean for the collection. Then, in the jsp page, you simply do the following: jsp:useBean id=industryOptionBean

logic tag addition proposal

2003-03-20 Thread Dan Allen
While coding my new application in struts, I came across what I deam to be a missing feature in the struts taglibs. As I present the problem and the solution I came up with, hopefully it will become clear that this tag is a good idea. On a particular page, call it a profile page, I was putting

Re: Control Access

2003-03-20 Thread Dan Allen
Mike Ash ([EMAIL PROTECTED]) wrote: Where is this securityfilter project? sourceforge.net -- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - Daniel Allen, [EMAIL PROTECTED] http://www.mojavelinux.com/ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - The package

nl2br taglib

2003-03-20 Thread Dan Allen
I truly believe that nl2br would be a most excellent taglib. Already my web developer has thanked me 10 times for making this tag for him. Here is why. Often times the jsp developer needs to include a large about of descriptive text with paragraph breaks. Normally he/she would have to flood the

struts console small request

2003-03-20 Thread Dan Allen
I have a very small request for struts-console. There is an option to format the output, which I like to use, but it strips comments. Is there anyway to format the output and leave in the comments? Those comments are important for me when I am looking at the raw source code because they are notes

Re: logic tag addition proposal

2003-03-20 Thread Dan Allen
David Graham ([EMAIL PROTECTED]) wrote: This kind of logic is better done in an Action, not in the view layer. David I disagree in this case. Assets should only be the concern of the view and sometimes, the view has to make sure that a certain state exists before it can display the asset.

Re: nl2br taglib

2003-03-20 Thread Dan Allen
Arron Bates ([EMAIL PROTECTED]) wrote: Nice piece of work, it looks familiar... http://www.mail-archive.com/[EMAIL PROTECTED]/msg63442.html ...never thought feedback on the solution would be like this, but each to their own. For those interested, the link contains code which can be used

Re: form validation question

2003-03-20 Thread Dan Allen
Andy Kriger ([EMAIL PROTECTED]) wrote: I have a validation rule that looks like this... field property=phoneExt depends=mask arg0 key=phone/ arg1 key=phone.ext/ var var-namemask/var-name var-value^\s*\d*\s*$/var-value /var

Re: Microsoft

2003-03-20 Thread Dan Allen
Edgar Dollin ([EMAIL PROTECTED]) wrote: I suppose this will start a war, but it is always healthy to keep an eye out. http://www.fawcette.com/javapro/2003_03/online/j2ee_bkurniawan_03_11_03/ http://www.fawcette.com/javapro/2003_03/online/j2ee_bkurniawan_03_11_03/ Who is Microsoft? Oh,

working with a team

2003-03-20 Thread Dan Allen
I am looking for some advice/articles on setting up my struts application so that all members of the team can all work with it. Let me first state my situation/dilemma and let you know what I am looking for. 1. I have a source tree (/home/me/src/struts/projects/project1) outside of the web folder

Re: Fine Grained Access Control in Sturts

2003-03-20 Thread Dan Allen
I always feel bad when I ask a question that is in the existing documentation. For others (unlike David) who do not have the documentation memorized, the logic:present tag will take a role attribute: Checks whether the currently authenticated user (if any) has been associated with any

Re: Fine Grained Access Control in Sturts

2003-03-20 Thread Dan Allen
I always feel bad when I ask a question that is in the existing documentation. For others (unlike David) who do not have the documentation memorized, the logic:present tag will take a role attribute: Checks whether the currently authenticated user (if any) has been associated with any

Re: [friday] NEWBIE - unsubscription help

2003-03-20 Thread Dan Allen
I'm sorry to bother you all with this silly question but can someone please tell me how to unsubscibe from this list? I've tried sending countless emails to [EMAIL PROTECTED] but that does not seem to work. As I share this email with my wife, you can imagine her 'amused' look when the

Re: Searching the Struts Mail List Archive

2003-03-19 Thread Dan Allen
to the Struts Mail List Archive. http://www.mail-archive.com/[EMAIL PROTECTED]/ and http://nagoya.apache.org/eyebrowse/SummarizeList?listId=42 The second interface seems to give more relevant search results. Have others found this to be true? You should also try

Re: bean:write question

2003-03-19 Thread Dan Allen
bean:write name=user property=address.city / Again, with struts-el c:out value=${user.address.city}/ Dan -- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - Daniel Allen, [EMAIL PROTECTED] http://www.mojavelinux.com/ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -

file path

2003-03-19 Thread Dan Allen
Assuming I am storing a public file in my web directory who's real path is /var/tomcat/webapps/program/file.dat How would I reference that file in my Action class in order to read in the data? My concern of course is how to get the path info preceding my application, namely

Re: file path

2003-03-19 Thread Dan Allen
Dan Allen ([EMAIL PROTECTED]) wrote: Assuming I am storing a public file in my web directory who's real path is /var/tomcat/webapps/program/file.dat How would I reference that file in my Action class in order to read in the data? My concern of course is how to get the path info

Re: file path

2003-03-19 Thread Dan Allen
perhaps org.apache.commons.resources.file.web.WebappFileResources? Dan -- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - Daniel Allen, [EMAIL PROTECTED] http://www.mojavelinux.com/ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - When you're raised by the Jesuits,

[OT] tld complaint

2003-03-19 Thread Dan Allen
Does someone out there have something against formatting the .tld xml files for taglib definitions that no one ever does it? Just seems odd that every .tld I open from the struts sourcecode is totally unreadable. Maybe someone could serve them a little xmllint --format? Dan -- - - - - - - - -

  1   2   >