Mark,
Upgrading to 1.1b2 would allow you access to Nested form beans. These allow
you to iterate collections and create unique input fields.
Checkout the documentation primer here:
http://www.keyboardmonkey.com/next/Primer_partOne.jsp?content=yesplease
There is a lot of documentation on it.
What you are reading about is the MVC pattern.
The reason to not code your logic in the Action is that you are now locking the
application into a web world. You can't reuse that logic in a non-Struts way
at all. By encapsulating your Logic in its own class, you break that
dependency.
Here is
I was wondering if the LookupDispatchAction would be appropriate for you? If
you have more than one Submit button on the page, the LookupDispatchAction can
call a different method in the action for each button.
Date: Wed, 31 Jul 2002 08:53:50 +0200
From: Marius Gabor [EMAIL PROTECTED]
Deepak
-Original Message-
From: Scott Carlson [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, July 30, 2002 11:17 AM
To: Struts Users Mailing List
Cc: [EMAIL PROTECTED]
Subject: Re: struts-user Digest 30 Jul 2002 14:46:44 - Issue 1730
Deepak, I don't have the real code I used
If you are in an Action that specified that form with the name
attribute in the Struts-config.xml, you can use this sample:
request.getSession().removeAttribute(mapping.getName());
If you have a BaseAction class (always a good idea), you could
Joel, this is what I have.
I have a viewbean in request scope called createaccount, it has two methods,
getAccountTypesKeys(), and getAccountTypes(), that return keys and values for
the select box. This can be done with a single collection, and also with a
map.
html:select property=accountType
Sesha,
I have this code in my jsp. Notice the multiple attribute.
html:select multiple=true property=accountType
html:option value=Select Type/html:option
html:options name=createaccount property=accountTypes /
/html:select
In my form bean, the property is an array of
I'm trying to get a Fortune 125 company to convert from their existing internal
web framework. During my analysis two questions have come up.
First, Who's using Struts? Is there a list of big companies that are using
Struts in a production external application mode? Does anyone have metrics
8 matches
Mail list logo