RE: switch statement

2003-06-06 Thread Miller, Jason
You can use a HashMap, keyed by the parameter, with the value being the appropriate forward Then you just do something like return (ActionForward)forwardMap.get( parameter ); This avoids the if..else blocks, and makes the code a lot cleaner to read. -Original Message- From: Kamholz,

RE: ArrayList Object[] funkiness

2003-03-12 Thread Miller, Jason
In almost every situation, I place the Iterator from the collection, or something I construct using o.a.commons.collections.IteratorUtils, into the form. This way, I am not tied to any particular backing representation. I'm not sure if this is the correct way to go, but it has served me well to

RE: ActionForm Does Not Contain Dynamically Set Data

2003-03-04 Thread Miller, Jason
Are you saying that you open the window, then set a field value in that child window to something from the parent, and you want to use that value to do something on the server? why not pass the value as a querystring parameter? -Original Message- From: Art Vandalay [mailto:[EMAIL

RE: [OT]JavaScript: ActionForm Does Not Contain Dynamically Set Data

2003-03-04 Thread Miller, Jason
like to find another way to pass it. --- Miller, Jason [EMAIL PROTECTED] wrote: Are you saying that you open the window, then set a field value in that child window to something from the parent, and you want to use that value to do something on the server? why not pass the value

RE: [OT] Clearing up a misconception - was ActionForm Does Not Contain Dynamically Set Data

2003-03-04 Thread Miller, Jason
Yes, a query parameter is an option. The reason I don't want to use query parameters is we have a standard to avoid using them if at all possible as they expose data to the user. This particular piece of data in question doesn't present a security risk by being exposed, but exposing it does

RE: Rendering in XHTML

2003-03-03 Thread Miller, Jason
I had a problem like that when I tried to name my file to something like .xhtml or .xml and serve it as an XHTML document. IE decided that rendering it would be too much trouble. I experimentally determined either the resource must have a .htm or .html extension, regardless of doctype, or the

RE: Rendering in XHTML

2003-03-03 Thread Miller, Jason
One other thing I forgot - the XML declaration also caused it to choke. Hello, I'm having problems getting my browser to render the XHTML properly. My doctype is correct, and my page is well formed. For some reason, when I hit the page, the DOM is shown in IE 6.0. I'm running Struts 1.1 on

RE: [OT] DBCP Pool Closed connection problem

2003-02-27 Thread Miller, Jason
I had this problem once. At the time, I was positive everything was closed correctly, but it turned out at one point, where I was unwrapping the connection, I had closed it. This inadvertently caused the pool to be exhausted. This occurred before I had a quality check on my connections, so it

RE: [OT] dick size

2003-02-20 Thread Miller, Jason
someone scored under a 100, huh? -Original Message- From: alexj [mailto:[EMAIL PROTECTED]] Sent: Thursday, February 20, 2003 2:35 PM To: Struts Users Mailing List Subject: [OT] dick size After your IQ test why not try the dick size test ? Tell us your dick size you will

RE: Conditional forms

2003-02-06 Thread Miller, Jason
would it work to just leave the form tag in there at all times and simply be conditional regarding the fields? The empty form shouldn't cause any problems that I can see. -Original Message- From: Justin Ashworth [mailto:[EMAIL PROTECTED]] Sent: Thursday, February 06, 2003 4:19 PM To:

RE: Value of Struts?

2003-01-22 Thread Miller, Jason
There's also the indirect value of the components struts has conjured into being - the digester, the collections, the beanutils, and so on. These have made my life easier for a number of tasks. -Original Message- From: Gene Campbell [mailto:[EMAIL PROTECTED]] Sent: Wednesday, January

RE: getter doesn't work in scriplet

2003-01-20 Thread Miller, Jason
One idea - you don't seem to be casting the bean to the specific type. Therefore, reflection would work, but a static call would not. Hi I am using getter in jsp but it throws no such method found exception, but the same property gets displayed when I use bean:write.. tag. So logic

RE: Nested html:form

2002-10-25 Thread Miller, Jason
I could be wrong, but I don't think it's legal to nest forms. I'm fairly sure that the form element in HTML cannot have a nested form element. In any case, it seems like a pretty obfuscated thing to do. What are you hoping to accomplish? What's the best way to nest forms? I want to:

RE: Nested html:form

2002-10-25 Thread Miller, Jason
So you have two forms, and when one is submitted you want to include every element from both forms, and when the other is submitted, you want only the specific elements included? I think you will have to do some funky server manipulation to pull off this trick. Basically, it looks like you'll

RE: Zero-copy persistence with Struts?

2002-10-23 Thread Miller, Jason
I do something similar to what you are proposing, so far as the ResultSet-to-the-view bit goes. I have a wrapper class that adapts an Iterator interface to anything you need. So far as closing the resources go, I ended up coding in a requirement that the ResultSet only contain the data that is

RE: Request v Page scope?

2002-10-15 Thread Miller, Jason
joke type=dumb I never knew professional baseball players were interested in web applications. /joke That would explain why I thought it was funny ... being a British chap myself and all that. (Never appologise for your British humour, these yankees don't have any humour of their own, so

RE: javascript help

2002-10-10 Thread Miller, Jason
you have to add a /script immediately after the opening tag. also, some browsers will only run a script if the mime type is one they recognize. try renaming your script file to formscripts.js. as to the script itself, i don't see anything wrong with it, but I haven't yet manipulated form

RE: [FRIDAY] [OT] Best misunderstanding of an acronym?

2002-09-27 Thread Miller, Jason
so your mileage varied? hah aha ha ha uh *cough cough* -Original Message- From: Andrew Hill [mailto:[EMAIL PROTECTED]] Sent: Friday, September 27, 2002 11:06 AM To: Struts Users Mailing List Subject: RE: [FRIDAY] [OT] Best misunderstanding of an acronym? Ah! No wonder I

RE: Struts ActionMapping / OC4J problem

2002-09-27 Thread Miller, Jason
Maybe a stupid question, but I guess it never hurts to check. Is the servlet properly mapped, and are you using the correct pattern to call the URL? For kicks, mark the second action as your unknown action and then send some random request ( e.g. blah.do ) and see what happens there.

RE: The right place/time to clean up a session before session tim e out, or user logoff

2002-09-25 Thread Miller, Jason
I think I may have been a little unclear in my explanation. I have a system of object for security checking. The only object that is used in the web part of my application is a proxy to my User objects. This proxy also implements the HttpSessionBindingListener interface. In the valueUnbound()

RE: The right place/time to clean up a session before session time out, or user logoff

2002-09-23 Thread Miller, Jason
I have a object representing a user that acts as a proxy into my security framework that implements HttpSessionBindingListener, and the valueUnbound method calls my logout logic, which includes removing the user from the set of currently logged in users, as well as DB updates and some other

RE: RE: The right place/time to clean up a session before session tim e out, or user logoff

2002-09-23 Thread Miller, Jason
the invalidate method is called in the logoff action, it is too late for the valueUnbound method to retrieve anything from the session since it is invalid already. 9/23/2002 2:56:58 PM, Miller, Jason [EMAIL PROTECTED] wrote: -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands