. That way they can't move forward without having
completed early steps.
Would that work? Seems relatively clean to me.
--
Rick Reumann
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
to use token to avoid duplicate inserts
Thanks for any Struts user comments on the issue.
--
Rick Reumann
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
words you could have a delete button call the
action:
/deleteMember
and still use in your mapping:
type=net.creativerge.struts.action.MemberDispatchAction
So you end up with different action mappings but still get to
incorporate more than one event in the actual mapping.
--
Rick Reumann
words you could have a delete button call the
action:
/deleteMember
and still use in your mapping:
type=net.creativerge.struts.action.MemberDispatchAction
So you end up with different action mappings but still get to
incorporate more than one event in the actual Action class.
--
Rick
On Fri, 14 Mar 2003 12:26:37 -0500
Rick Reumann [EMAIL PROTECTED] wrote:
So you end up with different action mappings but still get to
incorporate more than one event in the actual mapping.
Sorry for the duplicate message. I tried to catch this before it went
out but I guess I didn't hit
overhead).
--
Rick Reumann
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
action form
is populated, any other validation I believe should be done in the
business layer and throw an appropriate Exception which the action can
then handle.
--
Rick Reumann
-
To unsubscribe, e-mail: [EMAIL PROTECTED
framework?
Thanks for any help.
--
Rick Reumann
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
?
For example in a case where you had:
EmployeeFormBean extends BaseBean
I would take it EmployeeForBean would need to hold user fields such as
firstName, lastName, address, etc with appropriate getter and setters.
How do these fields then get passed to your DAO for the CRUD operations?
Thanks,
--
Rick
different)
--
Rick Reumann
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
is what I'm using for the
lessons (I just call it html:link but it's using the html-el.tld).
Let me know if you have any suggestions.
--
Rick Reumann
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL
, the more I think about it I actually really should just use
constants there and I'll include your explanation. I'm pissed I didn't
include it from the start.
Thanks for the comments and suggestions. I appreciate it.
--
Rick Reumann
On Thu, 13 Mar 2003 16:20:39 -0500
Rick Reumann [EMAIL PROTECTED] wrote:
Maybe you can post to the list
and ask why?
he he I thought I was replying to a personal e-mail and didn't realize
this went to the list... so I guess since it's now on the list...
Why doesn't the html-el tag have
the Submit button is named, It's just the hidden form parameter for my
dispatch method that matters.
I'm probably missing something that you are trying to accomplish though.
--
Rick Reumann
-
To unsubscribe, e-mail: [EMAIL PROTECTED
all the [OT] stuff people post on the list (including myself:) this
topic is not way OT at all. I'd be interested in hearing what you
or others come up with.
Thanks,
--
Rick Reumann
-
To unsubscribe, e-mail: [EMAIL PROTECTED
, so when you figure what the problem
is could you please post the solution (since I'm sure I'll run across it
as well).
Thanks,
--
Rick Reumann
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL
including the base class Collection should work I believe with iterate
(it doesn't have to be just type ArrayList... although I find myself
using that one the most often).
--
Rick Reumann
-
To unsubscribe, e-mail: [EMAIL
Collections all the
time in iterate.
Maybe you could post the exact form bean definition and the iterate
portion of you code in the jSP.
--
Rick Reumann
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail
--
Rick Reumann
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
the setup the test variable in my snippet code?
I recommend you download the standard-examples.war file which has
examples of all of these tags. They have a simple If.jsp which shows:
c:if test=${customer.address.country == 'USA'}
/c:if
--
Rick Reumann
On Wed, 12 Mar 2003 17:44:36 -0500
Rick Reumann [EMAIL PROTECTED] wrote:
I recommend you download the standard-examples.war file which has
examples of all of these tags.
Navigation I find a bit tricky finding the proper stuff to download. You
can download the standard stuff here
http
and
not the others... different jars in lib? Different tlds? Something is
freaky there for sure. I'd stick with using a Collection though for your
iterate and work on narrowing down what is enabling it work on one box
and not another.
--
Rick Reumann
the way I've
been using FormBeans so far).
--
Rick Reumann
Struttin' with Struts:
http://www.reumann.net/do/struts/main
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
--
Rick Reumann
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
in a DynaActionForm. I like to initialize
these Collections in a SetUpAction that will populate my DynaActionForm
before forwarding to the JSP page of interest.
--
Rick Reumann
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional
(myCollection someList );
//forward to jsp page
}
The reason you'll want to subclass DynaActionForm is if you do some
validation you probably will have to override the reset method.
--
Rick Reumann
-
To unsubscribe, e
it in your
webapps directory and it'll expand for you.
Struttin' with Struts:
http://www.reumann.net/do/struts/main
--
Rick Reumann
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
there isn't much point in cutting corners with a dynamic
solution.
--
Rick Reumann
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
in another demo and had the objects
serialized so they persisted. I was too lazy in these lessons to add
that extra functionality but probably will do so in a future lesson (or
a reworking of the existing ones).
--
Rick Reumann
timestamp=true/
/Context
--
Rick Reumann
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
On Mon, 10 Mar 2003 11:11:01 -0500
Rick Reumann [EMAIL PROTECTED] wrote:
Normally I just configure a log4j.properties file so I don't run into
this problem, but on a small demo app I just created I didn't. Even
when I add the following to the server.xml file, I still get all the
validator
how do I know how it's configured to look for resources
by default (probably a RTFM thing I'm guessing).
--
Rick Reumann
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
I created a web site that walks new Struts users step by step
through the development of three VERY simple web applications in three
lessons. Each lesson adds a few more features so that they build upon
each other yet each stands alone such that if you follow the steps in
any lesson you'll have
On Sun, Mar 09,'03 (12:29 PM GMT+0100), Manfred wrote:
The best you can do to place your property file in any directory that
contains to the classpath (e.g. WEB-INF/classes ...) and load the file
So you are saying (in response to Dan's question) that it is best to
just keep the
On Sun, Mar 09,'03 (10:58 PM GMT-), Puneet wrote:
Thanks for your views,
My basic intention is to avoid the headache of copying the values from
FormBean to my Model layer.
As Robert mentioned using the beanutils package is the way to go.
Copying your formBean fields to your DTO is as
On Fri, Mar 07,'03 (09:54 PM GMT-0700), Jeff wrote:
In my database, I have country codes. CA for Canada, US for the
States, DE for Germany, etc.
I'd like to have friendly names associated with each, and I'd like
to put them in the application.properties so that they can be
localized for
swap out the converter at a later time.
Let me know if this link helps. If you are still having trouble let me
know.
http://marc.theaimsgroup.com/?l=struts-userm=103487187525032w=2
--
Rick Reumann
-
To unsubscribe, e-mail
/refresh type problems much more cleanly
than other languages/frameworks.
Explain how some other approach handles it in any better way? Use of
token to prevent duplicate submissions works for me. And what do you
mean by a continuation-style programming?
--
Rick Reumann
department name
the user selected (displaying the id would mean nothing to the user).
How do you guys accomplish this?
There are several ways I can accomplish it but none of them that I'm
aware of are very pretty.
--
Rick Reumann
appender for my application which logs everything in MyPackage and
below. (I won't get INFO messages from stuff the container sets up this
way).
--
Rick Reumann
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e
for the information. Can this kind of behavior
be achieved though simply by hitting a browser back button? I wouldn't
think that would be possible without using javascript to resubmit the
page or to make sure a fresh page was always being looked at?
--
Rick Reumann
=501Accounting/option
Thanks Carlos and Joe,
I tend to usually use this javascript solution or place maps in
application scope and do a look up in my action and add it to the
formBean there. Appreciated your feedback. Thanks.
--
Rick Reumann
On Fri, 7 Mar 2003 22:13:03 +0100
Søren Blidorf [EMAIL PROTECTED] wrote:
Is it possible to send a variable from the Action to the forward jsp
page
Just put it in request scope in your action.
request.setAttribute(nameOfTheHandle, object );
--
Rick Reumann
I normally use the DynaValidator stuff so I haven't run into this, but
I'm writing up a lesson using a standard ActionForm with a validate
method.
In the validate method I have as an example:
if ( getName() == null || getName().length() 1 ) {
errors.add(name,new
On Fri, Mar 07,'03 (11:00 PM GMT-0500), Rick wrote:
But what if I wanted to set up a global.required and wanted to pass in
Name. I of course understand I could do:
if ( getName() == null || getName().length() 1 ) {
errors.add(name,new ActionError(error.name.required, Name));
}
Of
for it.
--
Rick Reumann
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
to call it:) in
one fell swoop:
BeanUtils.copyProperties( beanToCopyTo, beanCopyingFrom );
Normally you don't even need to register a converter, but, unless things
have changed recently, copyProperties() will not work by default on
java.util.Date property.
--
Rick Reumann
customizable editor/IDE out there (at least that I've found).
--
Rick Reumann
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
kind of fileIO stream?
--
Rick Reumann
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
in your Action form, wouldn't it be simpler
to just pass this locale into your business tier so you could populate a
collection the correct i18n data? The JSPs and tags wouldn't know the
difference or even care whether the collection was in English, German,
etc.
--
Rick Reumann
=someMapInScope
bean:write name=element property=key/ -
bean:write name=element property=value/BR
/logic:iterate
Or better yet use JSTL tags:
c:forEach var=element items=${someMapInScope}
c:out value=${element.key}/ -
c:out value=${element.value}/br
/c:forEach
--
Rick Reumann
also positive that your imageFieldsList is being populated with
the type com.crm.util.TemplateBeans.IMGTemplateBean You sure nothing
is spelled wrong there..etc. ?
I know a lot of this is probably obvious but it's always the obvious
that gets me:) A mistyped letter or something.
--
Rick Reumann
--
Rick Reumann
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
in a formBean is usually very
convenient and it makes it very easy to hand off the information to the
business logic of your application.
--
Rick Reumann
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail
have been the C128 I played it on.
--
Rick Reumann
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
about everything I could want from an editor/IDE).
Problem I'm really having the most trouble with in vim is copying and
pasting portions of text to different regions. I guess I just have to
learn to use'yank' better. Learning curve does seem a bit rough though.
Hope it does payoff.
--
Rick
and don't have the time to learn vim:)
--
Rick Reumann
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
.
--
Rick Reumann
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
On Mon, 3 Mar 2003 16:14:12 -0500
Mark Galbreath [EMAIL PROTECTED] wrote:
Oh, quit yer whining
http://www.ee.ryerson.ca:8080/~elf/hack/realmen.html
And don't forget... My mom can beat up your mom:)
--
Rick Reumann
can
do'most' everything you want that a large IDE does, yet you have a full
featured, highly customizable, editor at your disposal as well.
--
Rick Reumann
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e
On Tue, Mar 04,'03 (01:44 AM GMT-), Sean wrote:
who are ginger and mary anne?
Ginger:
http://www.gilligansisle.com/ginger.html
Mary Ann
http://www.gilligansisle.com/mary.html
(Sad that I actually looked this up on Google:)
--
Rick
On Sat, Mar 01,'03 (02:23 AM GMT-0600), Dan wrote:
ore veteraned user.
I just see this whole multiple-form prepopulate question cropping up
time and again on this list if we don't have something in the FAQ
about it.
Coupled with the tidbits someone posted from Craig's snipet what
would be
On Fri, Feb 28,'03 (07:59 PM GMT-0800), Craig wrote:
I get somewhat depressed about the for obvious reasons reason that
people give for not at least *trying* your app against the nightly
builds. After all, the day that Struts 1.1 final is released, guess
what -- it will have exactly the
Nothing major here, I'm just curious why the
messages:present tag uses message=true in order to check if
ActionMessages are present. I was thinking since ActionMessages is the
base class of ActionErrors that it might make more sense if
messages:present would show all messages, or at least
On Fri, Feb 28,'03 (11:36 AM GMT+0530), varma wrote:
I Declared Timestamp obj in my bean to store the date, it is giving
IllegalArugumentException in jsp, when i'm trying to get it from jsp
using html:text property=startDate/
It's ok if you have a business object has a Timestamp field, but
.
Maybe there is another way to do it that I'm missing.
--
Rick Reumann
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
.
That was exactly what I was looking for! Thank you (and Craig of
course:).
--
Rick Reumann
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
a different way?
Thanks,
--
Rick Reumann
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
for standard out to be ERROR and you should be ok.
Someone that probably knows a way other than having to use log4j
hopefully will chime in.
--
Rick Reumann
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail
, but I'm a bit confused.
I like to first set up my page by having a mapping submit to a setUp
Action. Then in this setUp action you could just do:
DynaActionForm f = (DynaActionForm) form;
f.set(firstName, John Doe);
//etc.
then you would just forward to the jsp form.
--
Rick Reumann
work around to this problem? or other suggestions of
where/when to repopulate lists after validation?
--
Rick Reumann
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
taking care of
removing it. But now that I think about it it would be very easy to
remove the list from the Session once they get to the appropriate
Action. I guess the simplest solution is often the best:)
--
Rick Reumann
ActionErrors (which there
shouldn't be if you are just coming from a normal set up of the form).
That might even be easier, although I haven't tried it.
--
Rick Reumann
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional
is null - nothing filled it!!!
how I can resolve my problem?
Look down on the list to the messages just posted about this under..
Revisiting: repopulating lists after validation returns.
There are several ways to do it. Simplest is to just put your collection
into session scope.
--
Rick Reumann
On Fri, Feb 28,'03 (09:20 AM GMT+0530), varma wrote:
Hi All
How can i read a date from the jsp using struts, i defined date
variable
of type timestamp. it is throwing exception...
What do you mean read a date from the jsp and what exception is it
throwing? Are you getting an error
On Wed, Feb 26,'03 (06:51 PM GMT-0600), Dan wrote:
I know that the prepopulate question has been beaten into the ground
around here and the answer on the FAQ page is complete in answering
most questions I have about the concept. But I just want to run
something by this list, see if I am
On Fri, Feb 28,'03 (11:36 AM GMT+0530), varma wrote:
I Declared Timestamp obj in my bean to store the date, it is giving
IllegalArugumentException in jsp, when i'm trying to get it from jsp
using html:text property=startDate/
It's ok if you have a business object has a Timestamp field, but
On Fri, Feb 28,'03 (11:36 AM GMT+0530), varma wrote:
I Declared Timestamp obj in my bean to store the date, it is giving
IllegalArugumentException in jsp, when i'm trying to get it from jsp
using html:text property=startDate/
It's ok if you have a business object has a Timestamp field, but
). You could
check out the list here:
http://nagoya.apache.org/wiki/apachewiki.cgi?BenefitsOfStruts
Please anyone add to it and fix it up. I wrote it very quickly.
--
Rick Reumann
-
To unsubscribe, e-mail: [EMAIL PROTECTED
a major company now using Struts-
can't remember which one. I'll have to search the archives. I want to
say it was a very large automobile company but I could be way off.
I agree a nice recent up-to-date list would be helpful.
--
Rick Reumann
On Sun, Feb 23,'03 (02:49 AM GMT-0800), bobd wrote:
I first
tried creating a .war and placing it in the webapps
directory (same problem), now I've copied the entire
app directory to webapps. I added a Context...
element to server.xml under the Tomcat conf directory
as well.
First look
On Sat, Feb 22,'03 (03:22 PM GMT+0100), alexj wrote:
What's the best to do if for example I got
a view where an user can choose to view
students by class, view students by year
or view students by year ?
I think the best is to bring back the results in a table in some default
manner (by
On Sat, Feb 22,'03 (11:38 AM GMT+0100), Zsolt wrote:
I understand that the reset method should not be used to set the
default values of the fields of a form. What is the preferred way?
I think it's best to populate the default form information in an
ActionClass. So if I had an insertEmployee
draft). Thanks so much.
List is here:
http://www.reumann.net/BenefitsOfStruts.html
--
Rick Reumann
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
On Fri, 21 Feb 2003 17:48:54 -0500
Rick Reumann [EMAIL PROTECTED] wrote:
I'm working on coming up with a document that lists a lot of cool
benefits to using Struts. It's more of a list for to aid in helping
others that already 'think' they have a great MVC architecture in
place. I believe
classes directory and and made the application root
standard out set to Error. I started then using log4j so as well so it
all started fitting together nicely.
--
Rick Reumann
-
To unsubscribe, e-mail: [EMAIL PROTECTED
On Wed, Feb 12,'03 (07:45 AM GMT-0500), Robert wrote:
Rick, I usually define the setUpForm action URI as the input attribute
of the processForm action element. That way if a validation error
occurs the request is forwarded to the setUpForm action which
repopulates the list and forwards to
scope and repopulate this list when reset
is called.
--
Rick Reumann
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
Sorry to repost this question but it still has me wondering...
Say you have a form where a user is to select An Order To Update from
an options list. Now also assume that these orders to choose from change
very frequently. You also will need to validate the form when it's
submitted.
* Where is
arguments passed in, I wouldn't think you'd need to do
either of you approaches.
public method( String var ) {
//do stuff with var in here with and with new Instances of
// any other classes and you need and you should be fine.
}
--
Rick Reumann
a callback in the
Action that was invoked after validation failure, but before
forwarding to the input view? What do others think of this approach?
What other solutions are there?
Joe
-Original Message-
From: Rick Reumann [mailto:[EMAIL PROTECTED]]
Sent: Monday, February 10
Thanks for the feedback. Some comments below. Remember the problem isn't
with setting up the list into scope from an Action, it's what to do when
validation takes place and the validation returns false returning you
back to the initial jsp page.
On Mon, Feb 10,'03 (10:38 PM GMT-0500), Mitchell
As a hypothetical, say you have a form where a user is to select
favorite song. Now also assume that the songs to choose from change
very frequently. You also want to validate the form.
Where is it best to repopulate this type of dynamic list which is
necessary so that the list will show up again
On Sun, Jan 26,'03 (09:43 PM GMT+0100), Johan wrote:
Hi all,
Can somebody please trow a light on error handling using a
DispatchAction. The class org.apache.struts.actions.DispatchAction in
Struts 1.1b2 is catching an InvocationTargetException. So when the
'dispatchMethod' invokes a
On Thursday, January 23, 2003, 8:33:20 AM, Robert wrote:
RT Matt,
RT I'ld like to see Ed's paging API broken into more layers;
RT separate paging functionality from HTML generation.
RT I've already tweaked the code a little to provide the ability
RT to publish the current page and page size
On Wednesday, January 22, 2003, 11:22:18 AM, JONATHAN wrote:
JPH The only I problem is I don't know how compatible this is gonna be with Netscape,
JPH Mozilla and the other browsers.
This isn't a struts issue. Struts doesn't even deal with client side
browser stuff. Just do all your validation
On Wednesday, January 22, 2003, 11:58:45 AM, JONATHAN wrote:
JPH Struts doesn't deal with client side browser stuff, your right,
JPH but for those of us building complex user interface components in
JPH a browser we have to use something. Making the same
JPH functionality available in desktop
On Wednesday, January 22, 2003, 1:17:13 PM, James wrote:
JC Basically yours,
Hey, this sounds just a bit too friendly :)
--
Rick
mailto:[EMAIL PROTECTED]
--
To unsubscribe, e-mail: mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]
On Tuesday, January 21, 2003, 9:56:09 AM, david wrote:
dc Hi, I am using a connection pool from
dc org.apache.commons.dbcp.BasicDataSourceFactory and the driver is
dc oracle.jdbc.driver.OracleDriver. It works great until if the
dc server idle for a few days, then the connection object seems
dc
On Tuesday, January 21, 2003, 10:53:31 AM, ROSSEL wrote:
RO Then what's the way Idea works? It is supposed to be fast. Which
RO widget family does it use?
That's what I find so amazingI use IDEA and it flies. Totally as
fast as any Windows app I run. No joke. The scary part is it's totally
101 - 200 of 433 matches
Mail list logo