In addition, I put together this Struts presentation for
AJUG two months ago. There are several slides in here
geared towards convincing managers why you should use
Struts. Take a look at it and feel free to use it
however you need to.
Chuck
http://www.ajug.org/meetings/download/struts.pdf
Sorry for the self promotion, but I thought this article
might help some on thes list. I wrote a Struts lessons
learned article for O'Reilly that contains information
that is discussed here on the list frequently, but never
hurts to be explained in more detail.
Here's the link to the
I think that was my crappy web-mail app that did it.
Sorry about that.
chuck
to anyone trying to reach this page, make surethat you pick up the l in
html. My email program has it on the next line.
Jim Berg
Sr. Software Specialist
PSCI
610-270-4158
[EMAIL PROTECTED]
[EMAIL
The chapters numbers got all screwed up when they pulled
several chapters from the book. I'll send you the latest
tonight. I've sent it to several people on the list
already. Do me a favor, anyone that wants it, send me a
message to [EMAIL PROTECTED] and just say Send
Storefront and give me
No, it's not out yet. I was told by the publisher that
it will be out November 11.
Chuck
The book is out? I ordered but have seen nothing as yet.
At 03:34 AM 10/15/2002 +, you wrote:
I have, does that count? :) Seriously, due to the
feedback that I received during the writing
I should have pointed out that in the draft version of
Chapter 16, there's a storefront.war file that you
should be able to just drop into your web container and
go. I tested it on several containers, but not WebSphere
(for various reasons, but mostly laziness).
Chuck
The book is out? I
After just scanning what's been posted there, I agree. I
just sent a complete chapter16.zip to this list. It's
got everything in it, WAR file, source and an updated
chapter 16 (which is the packaging chapter).
CHuck
There is no war file in chap 16, or any other chap ???
-Original
After just scanning what's been posted there, I agree. I
just sent a complete chapter16.zip to this list. It's
got everything in it, WAR file, source and an updated
chapter 16 (which is the packaging chapter).
Chuck
There is no war file in chap 16, or any other chap ???
-Original
No, I used Hypersonic for the beer4all app. The
Storefront app can run against some fake data (which is
the default), against a database using OJB, or against
an EJB container. You can declaratively switch
implementations in the config files. I included the fake
data implementation so that
I have, does that count? :) Seriously, due to the
feedback that I received during the writing process, I
know that many people have deployed it on various
containers. I believe a few people experienced some
issues on earlier versions of WebSphere, but they were
documented problems with that
In the struts-config.xml file, add an exception
element to this action. You can also put it in the
global-exceptions section if more than one action will
utilize this exception handler.
Here's an example action mapping using an exception
element:
action
path=/signin
As Eddie mentioned, I ran out of time and the book was
getting large, so a few of the chapters were cut. I've
decided to go ahead and write a few of them and just
make them freely available on this list and several
Struts-releated sites. I'm starting with the Security
chapter first and then
That's actually Chapter 8 of my O'Reilly book. It never
got posted for review because I was writing it literally
right up to my deadline. However, it is included in the
book.
Chuck
Good work. You should also touch on taglibs which will be very useful.
Thanks
kirusshna
-Original
Not exactly sure what you mean by decoder ring, but
assuming you're referring to the O'Reilly book, I just
got an email that it would be in stock at places on Nov.
11. However, the Mastering Struts book from James
Goodwill is already out and has got some decent reviews.
I think the book from
If you haven't already, may I suggest you download the
draft of Chapter 10 from my book. It covers Struts and
Exception Handling (both programmatic and declarative).
Here's a link:
http://www.theserverside.com/resources/strutsreview.jsp
Sorry for the shameless plug, but I think the material
I may be misunderstanding your situation completely. If
I have, I apologize ahead of time. Here's the short
version of what I think.
Can you not throw more specific exceptions, ones that
imply a little more about what went wrong? Then setup
exception elements in the global section (or in the
Ah, I see the confusion. The Struts framework will use
the value from the key attribute in the exception
element to automatically build ActionErrors for you. You
just need to use the html:errors tag to display them.
To see where in the framework all of this takes place,
check out the source
As many of you know, I had to cut several chapters from
the book due to time and size. Unfortunately, the
chapter on security is one of those that got cut. I've
received many email messages asking me if I was going to
include it in the next edition or write it later. I've
decided to write it
Yea, you can't use the same exception class for
different exception elements. The RequestProcessor looks
up the exception element to use based on the exception
type. You would need to have different exceptions
specified in the type attribute for each exception
element.
Here's a thought.
I'm reviewing the final PDF version of the book right
now and will be done with that in a week. It should be
heading for the printer right after that and be out very
soon.
Since several chapters had to be cut for size, the Table
of contents was slightly reorganized and renumbered.
Every
I tested it on an earlier version of 2.1 Resin, but I
don't remember which one. I'll try to check out 2.1.4
and see if I can see what's going on.
Chuck Cavaness
hi, has anyone got the beer4all demo working under
resin2.1.4, it keeps giving me a nosuchmethod error,
works under tomcat though
Interesting idea. Let me know how I can help :)
Chuck
Now, now, I enhanced and built upon your idea. That's the Apache way right?! :-)
I plan to publish anyone who cares enough to send me a decent picture and a bio.
I will blatently discriminate in favour of people who's names I recognise
If that's the case, nothing will ever get done :)
Chuck
So this will be the All4Beer website?
;-)
-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, September 18, 2002 21:23
To: Struts Users Mailing List
Subject: RE: [STRUTS USERS ID]
Eddie,
Take a look at the performance chapter from my book. I
list many of the tools and give links to them.
Chuck
I know different solutions have been presented for this ... and I keep
all messages from the list ... but I can't seem to find any of them
right now :-(
Could someone
I'm sure there is going to be some overlap, but I really
think that because we (Ted, James Goodwill, James Turner
and Kevin Bedell, Sue and myself) all come from a
slighly different background and have different
experiences, the various Struts soon available will
complement each other
The length of the presentation at AJUG was a little over
two hours. It should have lasted longer, but I had to
spend up at the end because I realized how long I had
been going.
It was a fun presentation, I tried to keep it light and
humorous. Marc Fleury actually interrupted me half way
I was thinking of your beer stories as I was putting it
together :)
Chuck
Hey Chuck - Love page 8 of your presentation! Wish I had been there.
Mark
-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, August 28, 2002 9:07 PM
To: [EMAIL
Not sure if anyone has mentioned this list, but there
are several listed here:
http://jakarta.apache.org/struts/resources/hosts.html
Chuck
You might try :
http://www.mycgiserver.com
Or do a search on Google using keywords free jsp hosting.
John
- Original Message -
From:
For anyone that is interested, the presentation and demo
Struts application that I gave at the Atlanta Java Users
Group (AJUG) this month is available for download.
The presentation is 115 slides and is in PDF format. The
demo application uses OJB and Hypersonic. Note: make
sure to read the
Have you added the Validator plugin to the struts-config
file?
Chuck
Hey guys, I'm still experimenting with the Dyna stuff. I'm trying out the
DynaValidatorForm, following the recipe in chapter 11 of Chuck's (?) book
from theserverside. The form bean is capturing my data, hooray, but it does
Are you using any type of XML parser in your extensions?
I was just thinking about something I read on the BEA
site?
Chuck
I'm having a problem deploying an application on Weblogic(WL) 6.1sp3, using
Struts, and extending MessageResourcesFactory and MessageResources in my
webapp. I found a
The framework might not be able to create the Logon
form bean. Is the Logon class in the classpath and have
you specified the correct package? All you have
is Logon, which seems to indicate you're using the
default package. If it's something like com.foo.Logon,
then you need to specify the
Chriz,
I thought about that, but Darren's using extension
mapping. The docs for Form tag say that if extension
mapping is being used (see his web.xml), that the
extension should be included. I was half way through my
email when I realized it and thought about the Form bean
issue.
Chuck
Darren,
I'm not sure where you are with this (if you've fixed
it or not), but the new error messages is telling you
that the requestId attributes are different. Notice in
your Logon form, the attribute is requestId and in the
tag attribute, you have requestid. The i capitalization
is
The chapters got reshuffled after I had to cut several
due to time and size. Which chapter topic are you
referring to? If you are referring to Logging (chapter
18 before renumbering), it is not chapter 15 and can be
downloaded from
http://www.theserverside.com/resources/strutsreview.jsp
It was supposed to be now. I'm a terrible editor of my
own writing, as most of you can attest :)
Chuck
18 before renumbering), it is not chapter 15 and can be
^^^
Was that not or now?
James Mitchell
Software Engineer\Struts Evangelist
Struts-Atlanta,
Take a look at my draft chapter on ExceptionException
and see if that sheds any light on the topic.
You can download it here:
http://www.theserverside.com/resources/strutsreview.jsp
It's Chapter 10. You will need to register, but it's
free.
Chuck
Hi all:
Can anyone kindly suggest, if i
I'm surprised that downloading the newest version of
log4j doesnt' fix your problem. The root cause in your
stack trace:
[org.apache.commons.logging.impl.Log4JCategoryLog does
not implement Log]
implies that the version of the log4j installed in your
web app isnt' the latest. Are you
The path attribute is supposed to be module-relative.
Are you getting a 404? Are you using 1.1b2 or just the
latest 1.1b1?
Chuck
Chuck,
What is your take on this? When I throw and Exception within and Action,
Struts found my declared Exception alright. But it doesn't seems to find
the
)
Seemed out of place for that to be the problem. Could it be that the
commons-logging is detecting the log4j jar file and trying to use that
instead of the simple logging it comes with?
-Original Message-
From: chuckcavaness [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, August 13
Danny,
A couple things: First, the path attribute should
begin with a /. When the ExceptionHandler has its
execute() method called, if the path is specified, it
creates an ActionForward on the fly using the path
attribute that you specify. Otherwise, the input
attribute is used from the
Make sure your log4j.properties looks like the one that
I've attached. I've also attached my commons-
logging.properties file. The other thing to check is to
make sure you have the latest log4j.jar. Get something
like 1.2.4.
Chuck
Chuck,
I went through the logging chapter and configured
Many of you have emailed me and asked me to let you know
when the book was available for pre-ordering. My
apologies for spamming the list.
Here's the link to Amazon, although it will eventually
be available on bookpool.com and others.
chuck
Take a look at the draft logging chapter in my upcoming
struts book. I cover Struts and log4j.
You can find it here:
http://www.theserverside.com/resources/strutsreview.jsp
chuck
Craig,
I did and it didn´t tell me very much. Anyway, as I explained later there
appeared to be a mix-up with
Take a look at the processPreprocess() method in the
RequestProcessor class. I have seen this method used for
similar types of purposes.
Just a suggestion,
chuck
Do RequestProcessors stack like filters? This is a point I'm not clear
on. My reason for suggesting he subclass Action is
Troy,
It's funny that you wrote this and asked the question.
I started to respond earlier when the question came up,
but decided not to to prevent myself from being yelled
out :) Here's my answer to your question regarding to
extend or not to extend?
Struts is a framework and frameworks
I'll make that section more clear.
Chuck
It is the value of the path attribute in the action element in the
struts-config.xml file.
If you look at the DynaValidatorActionForm source you will see the following
in the validate().
Validator validator =
I just posted a message on the site explaining what's
going on. The book WILL cover the tags. The problem is
that I've rewritten this chapter twice now because I'm
having a difficult time coming up with an approach that
I like.
I don't want to just regurgitate the user's guide on the
tags,
Chapter 18 Logging in a Struts Application has been
posted on theserverside.com.
http://www.theserverside.com/resources/strutsreview.jsp
The EJB Chapter is finished and will be posted within
the next day or so, followed by Tiles and the
Performance chapter.
Chuck
--
To unsubscribe,
Chapter 20 Packaging your Struts Application has been
posted on theserverside.com.
http://www.theserverside.com/resources/strutsreview.jsp
Chuck
--
To unsubscribe, e-mail: mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Chapter 11 Using the Struts Validator has been
posted on theserverside.com.
http://www.theserverside.com/resources/strutsreview.jsp
Chapters 8 and 20 will also be posted this week.
As always, I look forward to the feedback.
Chuck
--
To unsubscribe, e-mail: mailto:[EMAIL PROTECTED]
For
Sandra,
Chapter 4 of my O'Reilly Struts book covers both the
neccessary web.xml modifications that you have to do for
Struts as well as complete coverage of the 1.1 struts
config file.
Give it a read and feel free to provide feedback to
me. You can get Chapter 4 here:
It would also be great if you could read my chapter on
the Validator and provide some feedback on how helpful
it was to you. You can download the draft chapter from
here:
http://www.theserverside.com/resources/strutsreview.jsp
The perspective from someone new to it would be very
helpful,
Sandra,
One source of information on the subject is Chapter 7
from my Struts book that I'm currently writing. It might
not be able to answer all of your questions, but it
should get you started in the right direction on it.
You can download the draft chapter from here:
Chapter 9 Extending the Struts Framework has been
posted on theserverside.com. For all of you have have
been asking for chapter 8 as well, it will also be
posted very soon. I've struggled with what to do with
that chapter because I just didn't want to regurgutate
the Struts user guide.
Roy,
Have you read my exception handling chapter on
theserverside.com? If that doesn't answer this question,
than I've failed and I need to rewrite that chapter.
Take a look at it and send me some feedback if it
doesn't answer your question enough and I'll fix it.
Here's a link:
Yea, it's in MS Word format. This is the same file that
I have to give to O'Reilly and in this exact format. One
of the reaons that Word was chosen, other than it's what
I have at home and what I turn into O'Reilly, is the
track changes feature.
This allows reviewers to write directly into
I like the idea, except there are probably two issues:
1) Since these are draft chapters, I have to manage how
they are released to the public, because I need to
ability to quickly pull them when new chapters are
finished. It's not good to have old, typo-ridden,
chapters on various sites,
Mark,
I don't have chapter 10 in front of me and I'm too lazy
to go and download it, but if my memory is correct,
that's the exception chaining example. The constructor
should take a Throwable, which is the root cause of the
exception.
So the constructor just allows a new exception to be
For what it's worth to this discussion, people that say
these off-the-cuff statements truly have never used or
just dont understood the concept of a Framework.
If you don't take advantage of a framework, Struts or
any other, you only end up repeating over and over the
same classes,
Muka,
I would also recommended if you haven't done so, read
chapter 4 from my O'Reilly Struts book. It covers the
web.xml and DTD in detail. Here's a link where you can
download the chapter.
http://www.theserverside.com/resources/strutsreview.jsp
Chuck
Thanks Mark. That was very helpful.
Sorry, I meant Muki. My apologies :)
Chuck
Muka,
I would also recommended if you haven't done so, read
chapter 4 from my O'Reilly Struts book. It covers the
web.xml and DTD in detail. Here's a link where you can
download the chapter.
Download chapter 4 from here:
http://www.theserverside.com/resources/strutsreview.jsp
It covers alot of this.
Chuck
I can't seem to find an exhaustive treatment that lists all the tags (and
its attribute) that one can use in the struts configuration file (for
example, the form-property
I'm working on a project where we faced a similar
situation. We dont have as many pages as you, but
nonetheless. Heres what we have done, maybe theres
some ideas in here for you.
We built two builder classes that contain a single
static method in each (FormBuilder and ViewBuilder). We
I didn't mean to be so matter of fact. A session bean is
surely not the only way to façade enterprise resources,
such as a security service. Heres where I thought the
design would not work.
When the client published a message to the JMS Queue,
the EJB container would automatically pull a
This may be a stupid question, but is there a / at the
end of the opening logic:notEqual tag? Should
that NOT be there. Doesn't that close the tag?
Chuck
logic:notEqual
name=data
property=sortColumns.currencyCode
value=%=currencyBlock%/
is it possible this is comparing string
I replied to Peter directly, but let me copy the
relevant parts to the group so that everyone sees the
response.
I'm using a message from the resource bundle That looks
like this:
The {0} is required for login
The substitution parameter {0} can be anything you want
and you can pass it
You can also take a look at the chapter 3 that's
available on theserverside.com. I used ant to build the
example banking app using Ant and one of the deployment
environments that I tested it on was WebLogic. Look at
the build.xml file included.
Chuck
Simon,
I am trying to use ant to
I actually have a complete shopping cart type
application that I'm using throughout the book, as well
as an online banking application. I will make these
available for download as well.
Hi
I vote for chapters 13 (EJB), 19 (Performance) and 21 (Design).
What about a complete web Application
69 matches
Mail list logo