RE: Best Place for config values

2005-06-06 Thread Durham David R Jr Ctr 805 CSPTS/SCE
> Whats the best place / access method to storing and retriving > config attributes like administrator email addresses and directories > to store uploaded files in a multi-tiered webapp, web.xml? > Resources file? Both servlets and non servlets need to access > these values. Opinions greatly

RE: Reading value from HashMap via JSTL

2005-06-07 Thread Durham David R Jr Ctr 805 CSPTS/SCE
> How can I access value for specific key from JSTL > > > > Or is it better way to store these values. I rule out having each > value as a different variable since I'll have 52*3 different > variables You can just do: ${myhashmap.mykey} - Dave ---

RE: carriage returns

2005-06-14 Thread Durham David R Jr Ctr 805 CSPTS/SCE
> I'm finally sick of all the unwanted carriage returns created by > tiles and struts tags. > I searched the archives and found this trick: > > > > > > but it doesn't fix everything, especially comments. > > Has anyone else gotten sick of this and came up with a quick > and clean solution? W

RE: [OT] Character '+' not transmitted to server ?!?!?! Hope you canhelp .... it's really bizarre

2005-06-20 Thread Durham David R Jr Ctr 805 CSPTS/SCE
> Thanks for your help Frank and Michael. I think that you meant to thank Wendy. Hers was the only informative post. - Dave - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

RE: problem with removing form bean

2005-06-21 Thread Durham David R Jr Ctr 805 CSPTS/SCE
> The problem is that when I get the input form the second time - it > still shows the data of the first Item that was created before, Perhaps simply call form.reset() before returning from your save action. - Dave - To uns

[OT] RE: javascript html:fprm and getElementById

2005-06-28 Thread Durham David R Jr Ctr 805 CSPTS/SCE
Hopefully this e-mail's format doesn't get butchered too badly, but here's a function that walks down a DOM tree looking for a Node with specific attribute value: /** * startNode is the node to start searching from * criteria is the attribute name * value is the attribute value * ** isIE is a

RE: [OT] RE: javascript html:fprm and getElementById

2005-06-28 Thread Durham David R Jr Ctr 805 CSPTS/SCE
oops > if (isIE && startNode.nodeName == "FORM" && criteria == "name"){ > if (startNode.attributes['name'].nodeValue == value) { > return startNode; > } > } else { The code above is not needed. It has something to do with an IE problem with Form Nodes an

RE: Is there any Jsp template like Smarty template ?

2005-06-29 Thread Durham David R Jr Ctr 805 CSPTS/SCE
> > > http://uab.blogspot.com/2005/06/ides-we-dont-need-no-stinking- > ides.html > > It is the most stupid blog I have ever seen. Go back to the cave > where you belong to. I think the article was meant to be taken with a grain of salt. - Dave

[OT] RE: Is there any Jsp template like Smarty template ?

2005-06-29 Thread Durham David R Jr Ctr 805 CSPTS/SCE
> Most autogenerated code is less programmer friendly than it could > be, it's purpose being to be easily created rather than read and > maintained. I call throwing out the baby with the bathwater. The "unreadable" code that is being spoken of, I presume, is basically UI stuff. IMO, UI code ha

[OT] RE: Is there any Jsp template like Smarty template ?

2005-06-29 Thread Durham David R Jr Ctr 805 CSPTS/SCE
> I see the morons around this list are as gullible to my posts > as ever Careful, you could get modded -1 troll and have your messages sent to Craig's noise folder. - Dave - To unsubscribe, e-mail: [EMAIL PROTECTED] For a

RE: [OT] RE: Is there any Jsp template like Smarty template ?

2005-06-29 Thread Durham David R Jr Ctr 805 CSPTS/SCE
> I stick to my assertion that it is not auto-generated. It might > be inserted by the IDE, but it is not written by the IDE. Maybe we are splitting the auto-generated hair, but I'll concede the point. There probably is some level of code generation complexity that distinguishes between simple m

RE: [OT] Stinking IDEs

2005-06-29 Thread Durham David R Jr Ctr 805 CSPTS/SCE
> I've noticed over the years that people who start IDE threads > are unappreciated. > > I've also noticed that programmers who talk about how other > programmers are the worst, are the worst programmers. Real > programmers are too busy fixing the worst programmers to > complain. How exactly

RE: [slightly OT] alternatives to Tiles?

2005-06-30 Thread Durham David R Jr Ctr 805 CSPTS/SCE
> What about plain-old jsp includes? Maybe they're "enough" for your needs. I think tiles controllers provided added benefit/functionality beyond something like SiteMesh. Furthermore, use of tiles does not preclude the use of SiteMesh. - Dave --

RE: [OT] Re: Unacceptable Behaviour of Mark Galbreath

2005-06-30 Thread Durham David R Jr Ctr 805 CSPTS/SCE
> > ...just trying to keep the conversation lively. ;-) > by insulting people? Evidently. That's my one word sentence for the day. - Dave - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PRO

RE: [OT] Re: Fired???? was...Re: Struts Books Recommendations [OT]

2005-07-08 Thread Durham David R Jr Ctr 805 CSPTS/SCE
> ROFL > > Oh ya! My mom can beat up your dad! Your dad beat up my mom! BTW, she wants a rematch. - Dave - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

RE: How to set tiles attribute dynamically?

2005-07-08 Thread Durham David R Jr Ctr 805 CSPTS/SCE
> The problem is that the pageTitle depends on the parameter > value and is not fixed. Is there a way to put a method > call in the tiles-defs.xml so I can pull the correct page > title from the database? IMO, the best way to do this is at the Tiles Controller level. Controllers receive a Compo

RE: tiles and multipart messages

2005-07-11 Thread Durham David R Jr Ctr 805 CSPTS/SCE
> What is the recommended way of working with multipart messages and > tiles at the same time? SFAIK, Tiles and multipart encoding have nothing to do with each other. You're going to have to post some more info about your problem in order to get help. Try posting the relevant Struts config items

RE: Re: Using struts forms as Value Objects: your opinion?

2005-07-11 Thread Durham David R Jr Ctr 805 CSPTS/SCE
> W/ a Map: > - you don't have VO/DTO classes, but still have layer, 0 code, 0 bugs > - It's dynamic, when DAO SQL string changes... so does your > jxTable/Displaytag. > > I removed an entire layer and still have the layer. > > Developers are so pasionate... that's what makes them good. I'm with

RE: tiles and multipart messages

2005-07-11 Thread Durham David R Jr Ctr 805 CSPTS/SCE
> I suspect my error is that instead of sending the request directly to > the *Action and then forward - in case of success - to a page > definition, I tried to send the request to a page definition > (containing the *Action) and from the *Action forwarding to a > tile definition. > > Do you a

RE: Using struts forms as Value Objects: your opinion?

2005-07-12 Thread Durham David R Jr Ctr 805 CSPTS/SCE
> > Is it crucial for the Action Form to have String properties? > > > > Five years of history with Struts (and I should know, since I > created it originally) says "yes" :-) I think it's reasonable to have a numeric type for select-box. - Dave

RE: tiles and multipart messages

2005-07-12 Thread Durham David R Jr Ctr 805 CSPTS/SCE
> No, I don't have this problem for the moment! But, I might come across > it as the project progresses. Is there anything changing then? > In any case, thanks a lot for your help. Not really. I was just trying to figure out why the form was submitting to a JSP. - Dave ---

RE: anyone else pass their ActionForm off to another layer

2005-07-12 Thread Durham David R Jr Ctr 805 CSPTS/SCE
> So what happens is the Action looks like... > > //EmployeeAction > execute(...) or dispatchmethod() { > EmployeForm empForm = (EmployeeForm)form; > //validate form, if success proceed.. > boolean success = EmployeeActionHelper.updateEmployee( > empForm, request ); > //messages

RE: passing param as part of URL path

2005-07-15 Thread Durham David R Jr Ctr 805 CSPTS/SCE
> I was thinking that I would somehow capture CATALOG1 and CATALOG2 > and stick them into the request, but I'm not sure how to go about it. > It this functionality that Struts already has, do I need to implement > a filter, or should I subclass the main ActionServlet? I think you could use a

RE: passing param as part of URL path

2005-07-15 Thread Durham David R Jr Ctr 805 CSPTS/SCE
> is there a way to specify a new default ActionMapping class? ModuleConfig does indeed have a method for setting the default action mapping class, but I'm not sure how you would set this. - Dave - To unsubscribe, e-mail: [EM

html:cancel

2005-05-04 Thread Durham David R Jr Ctr 805 CSPTS/SCE
I've got a jsp chunk like this: "> And this code in an action: if (isCancelled(request)) { // do something } When I click cancel, isCancelled(request) returns false. Checking the Action.isCancelled() method reveals that it looks for a request attribute not a request parame

RE: [OT] Recommendation of Instant Messagging System

2005-05-04 Thread Durham David R Jr Ctr 805 CSPTS/SCE
> The requirements are these: > 1. A user has a list of the other users in the system. He can click > a button that initiates a conversation with the selected user. The > other user can accept or not the conversation. If accepts, a "chat > room" is opened and now then can have a conversation. Th

RE: html:cancel

2005-05-04 Thread Durham David R Jr Ctr 805 CSPTS/SCE
> Try using > > Hmm, I'll have to look at this. My reason for not using is that I need to specify the "value" as a message resources property. > " onclick="bCancel=true;" type="submit"> Thanks. - Dave - To unsubscribe, e-m

RE: html:cancel

2005-05-04 Thread Durham David R Jr Ctr 805 CSPTS/SCE
> tag submits "org.apache.struts.taglib.html.CANCEL" > as request parameter. Then RequestProcessor checks for > "org.apache.struts.taglib.html.CANCEL" request key and sets > "org.apache.struts.action.CANCEL" (that is, Globals.CANCEL_KEY) > attribute, which is checked by Action.isCancelled() Ah,

multiple file uploads with one property

2005-05-05 Thread Durham David R Jr Ctr 805 CSPTS/SCE
Tried using a property like this: But I get the following class cast exception: org.apache.commons.beanutils.ConversionException: Cannot assign value of type rg.apache.struts.upload.CommonsMultipartRequestHandler$CommonsFormFile' to property 'files' of type '[org.apache.struts.upload.FormF

RE: multiple file uploads with one property

2005-05-05 Thread Durham David R Jr Ctr 805 CSPTS/SCE
Upon further investigation, it appears that commons-fileupload does not support uploading multiple files with the same parameter name. I'm going to take this discussion (with myself) over to commons list. - Dave > -Original Message- > From: Durham David R Jr Ctr 805 CSPTS

RE: multiple file uploads with one property

2005-05-05 Thread Durham David R Jr Ctr 805 CSPTS/SCE
> There are these tickets related to this: > > http://issues.apache.org/bugzilla/show_bug.cgi?id=6847 > http://issues.apache.org/bugzilla/show_bug.cgi?id=25963 > http://issues.apache.org/bugzilla/show_bug.cgi?id=29807 Hmm, yeah ok, I'll look at these. It would be nice if this were fixed before 1

RE: multiple file uploads with one property

2005-05-06 Thread Durham David R Jr Ctr 805 CSPTS/SCE
> http://issues.apache.org/bugzilla/show_bug.cgi?id=25963 I applied the suggested patch, and tested it. Looks like it works, though I'm not exactly sure what an automated test script would like for this use case. BTW, does anyone else find the ASCII art in this test hilarious? http://tinyu

RE: Sample Code for Desclarative Security in Struts

2005-05-09 Thread Durham David R Jr Ctr 805 CSPTS/SCE
> Is there any particular reason why custom logins are not favored > over using this sort of approach? I think it comes down to standards and the relative difficulties associated with implementing security. But, as far as favorites go, everyone has them. > They seem to be capable of more fin

RE: Sample Code for Desclarative Security in Struts

2005-05-09 Thread Durham David R Jr Ctr 805 CSPTS/SCE
> > They seem to be capable of more fine tuned access control > > You're talking about URL filtering, yeah, definitely. Just to clarify, you're talking about security beyond URL filtering providing more fine tuned access control. I concur. - Dave --

RE: html:image and IE

2005-05-11 Thread Durham David R Jr Ctr 805 CSPTS/SCE
> > >From the docs: A way of retrieving these values through a form bean is to define getX(), getY(), setX(), and setY() methods, and specify your property as a blank string (property=""). So, you could just do: In a JSP: Then in your action: if (((DynaBean)f

logic:iterate and LazyValidatorForm

2005-05-18 Thread Durham David R Jr Ctr 805 CSPTS/SCE
I'm trying to iterate over a String[] in a LazyValidatorForm using: ... But I get the following error: Unable to find a value for "first" in object of class "org.apache.struts.validator.LazyValidatorForm" using operator "." So, does the logic:iterate tag work with DynaBeans? From

RE: logic:iterate and LazyValidatorForm

2005-05-18 Thread Durham David R Jr Ctr 805 CSPTS/SCE
> So, does the logic:iterate tag work with DynaBeans? From the source > code, it uses BeanUtils.getProperty(), which works with DynaBeans. > Any ideas? Thanks. Please disregard this post. The problem was actually later on when I attempted to access the DynaBean via JSTL, which doesn't work fo

RE: Security in Struts

2005-05-25 Thread Durham David R Jr Ctr 805 CSPTS/SCE
> Are there any widely used approaches or best practices that we > can follow? The acegi security framework offers a widely used approach: http://acegisecurity.sourceforge.net/ - Dave - To unsubscribe, e-mail: [EMAIL PROTECT

RE: Could someone on the dev team add link to mailing list on Struts site

2005-05-25 Thread Durham David R Jr Ctr 805 CSPTS/SCE
> You won't believe this, Rick, but they actually make these things > hard to find on purpose. Check the archives if you think I am > kidding. Yeah, you've been quite the jokester so far. http://struts.apache.org/mail.html - Dave -

RE: Could someone on the dev team add link to mailing list on Struts site

2005-05-25 Thread Durham David R Jr Ctr 805 CSPTS/SCE
> Also, the "List Archive" link is broken, so it's doubly annoying > to someone coming in for the first time. I use this one: http://marc.theaimsgroup.com/?l=struts-user - Dave - To unsubscribe, e-mail: [EMAIL PROTECTED] F

RE: Could someone on the dev team add link to mailing list on Struts site

2005-05-25 Thread Durham David R Jr Ctr 805 CSPTS/SCE
> I actually use that one too. But for the first-time Struts user, we > seem to be making it overly difficult to find, subscribe, and search > the mailing lists. If Mr. Jack's assertion is correct, then I guess > I need to go back to the previous discussion he's refering to and > find out why...

RE: Security in Struts

2005-05-26 Thread Durham David R Jr Ctr 805 CSPTS/SCE
> Thanks David. But it seems that this framework only works with > Spring, and we're not using Spring. It works with Struts MVC, but yes, you'll likely need Spring to configure the filters, and to do some proxying for the "button" level access. - Dave --

RE: How to use bean property as value for html hidden field

2005-05-27 Thread Durham David R Jr Ctr 805 CSPTS/SCE
> You cannot nest JSP tags. Strictly speaking, you can nest tags, but you can't use a tag as an attribute to another tag. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

RE: Action vs. Servlet

2005-06-01 Thread Durham David R Jr Ctr 805 CSPTS/SCE
> I recently wrote an Action which in conjunction with an ActiveX > object returns a table from the server to update the DOM in the > browser. My question is: Is this a proper use of an Action, here > essentially just a subroutine I am calling from the client, with > no forwarding action? Or sh

RE: Dynamically adding components to pages (using struts and custom tags)

2005-06-01 Thread Durham David R Jr Ctr 805 CSPTS/SCE
> >In my opinion, using custom tags for this purpose is not the best > >way to go. Custom tags are meant to decouple code from markup. > > I tend to agree with you. I agree as well, but I'll add that you could put a StringBuffer in one of the scopes-- pageContext or request to share it across t

RE: Automatic validation question...

2005-06-01 Thread Durham David R Jr Ctr 805 CSPTS/SCE
> -Original Message- > From: N G [mailto:[EMAIL PROTECTED] > Sent: Tuesday, May 31, 2005 3:37 PM > To: Struts-user > Subject: Automatic validation question... > > If I have set up validation as follows: > > > > > test > (radioButton = "firstNameSearch"