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,
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
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
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
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
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
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
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
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
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:
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
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
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:
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
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
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
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
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
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.
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()
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
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
22 matches
Mail list logo