t place!).
The project I'm working on is using struts 1.1, so I don't think I have
access to the EL tags -- am I mistaken?
Chris
-----Original Message-
From: Benedict, Paul C [mailto:[EMAIL PROTECTED]
Sent: Thursday, June 09, 2005 12:17 PM
To: 'Struts Users Mailing List
Chris,
Use to bring in the key.
You can then use EL to test if it is empty or whatever.
Thanks,
Paul
-Original Message-
From: Chris Loschen [mailto:[EMAIL PROTECTED]
Sent: Thursday, June 09, 2005 11:37 AM
To: Struts Users Mailing List
Subject: RE: Test whether an application resource i
Wendy,
You raise an excellent point. I am going to retract my previous advice; it
is obviously wrong.
A 500 error is a response code. If a response has not been committed to the
stream, the application container can translate an exception into a 500
status code. However, if the response stream al
David,
I think Tomcat 4.x has a bug in which 500 errors are not captured. I ran
into this before. Could be?
Thanks,
Paul
-Original Message-
From: David Johnson [mailto:[EMAIL PROTECTED]
Sent: Thursday, May 26, 2005 2:34 PM
To: Struts Users Mailing List
Subject: not catching errors...
Andrew,
What do you mean by redisplay? If you're concerned with a failed login and
the form persisting the data, all you have to do is set the value to blank.
This will always force the password to be blank on a redisplay:
-Original Message-
From: Andrew Thorell [mailto:[EMAIL PROTECTED
I think Bob asks a good question.
1) Is setting the default bundle in JSTL for the entire web app? I think it
is. It seems the bundle must be explicitly set.
2) Perhaps Struts 1.3 could contain a chain plug-in that will set the
appropriate resource bundle for JSTL per module?
What do you think?
Kalyan,
Each loop needs to expose their iteration under a different bean name. This
is not any different than standard programming loops. Also, I recommend you
just JSTL:forEach which is a preferred looping method.
${i},${j}
Thanks,
Paul
-Original Message-
From: Wendy Smoak [
Aladin,
Good point, but I believe your solution has limited use. If you were to use
Tiles or other dynamic inclusions, this would not be applied to the internal
pages.
Thanks,
Paul
-Original Message-
From: Aladin Alaily [mailto:[EMAIL PROTECTED]
Sent: Tuesday, May 24, 2005 1:01 PM
To: S
Is it a common practice to have a static include at the top of every JSP
which contians ?
-Original Message-
From: Frank W. Zammetti [mailto:[EMAIL PROTECTED]
Sent: Tuesday, May 24, 2005 12:48 PM
To: Struts Users Mailing List
Cc: Struts Users Mailing List
Subject: RE: Struts, xhtml & bad
How long did it take to do your nice UML graph in ASCII? :)
-Original Message-
From: James Mitchell [mailto:[EMAIL PROTECTED]
Sent: Wednesday, May 18, 2005 3:02 PM
To: Struts Users Mailing List; [EMAIL PROTECTED]
Subject: Re: Subclassing ActionForward
In your BaseDispatchAction override
Aladin, perhaps your hack could have been contributed sooner!! :-) 1.2.7 has
been held up along time .. It's about time it's coming out.
-Original Message-
From: Aladin Alaily [mailto:[EMAIL PROTECTED]
Sent: Wednesday, May 18, 2005 10:54 AM
To: Struts Users Mailing List
Subject: Struts 1.
Return null.
Returning null means you have handled the response and Struts will do no
more.
-Original Message-
From: David Johnson [mailto:[EMAIL PROTECTED]
Sent: Thursday, May 12, 2005 5:47 PM
To: Frank W. Zammetti; Struts Users Mailing List
Subject: Re: Opening a NEW browser for a 2nd
Rick, what do you mean? It sounds like you have an answer.
-Original Message-
From: Rick Reumann [mailto:[EMAIL PROTECTED]
Sent: Thursday, May 12, 2005 3:38 PM
To: Struts Users Mailing List
Subject: Re: [POLL] What do you use action forms for?
Benedict, Paul C wrote the following on 5
Leon,
My biggest problem with session based forms is that, without a special
mechanism, it prevents multiple instances of a form from being edited at
once within a session.
Am I the only one with this concern? ;-)
Paul
-Original Message-
From: Leon Rosenberg [mailto:[EMAIL PROTECTED]
David,
Aladin has a more straight forward approach. If you can know ahead of time
when you need to open a new window, take his approach; if you have no prior
knowledge, you'll need to send back JavaScript to open a new window. Either
way should fit the bill.
Thanks,
Paul
-Original Message---
second browser
does not open).
Thanks,
Paul
-Original Message-
From: David Johnson [mailto:[EMAIL PROTECTED]
Sent: Thursday, May 12, 2005 10:48 AM
To: Benedict, Paul C; Struts Users Mailing List
Subject: Re: Opening a NEW browser for a 2nd content type from an action
hmm I dont think I
David,
You could have your response return HTML with rendered JavaScript; the
script would then automatically pop open a new window with the destination
link that generates your unstructured content. You could even provide a link
in the response if the JavaScript doesn't run automatically.
Thanks
Ted,
This is my point too. I think the majority of people answered #4 because
data within tags is I/O, but it's not the type of output (i.e.,
arbitrary display output) I think Michael was trying to convey.
-Original Message-
From: Ted Husted [mailto:[EMAIL PROTECTED]
Sent: Thursday, May
Michael, is #4 clear?? I think people are misunderstanding it. Developers
can use a form for input and output (#4/1), but not put display (pure
output) data in there (#4/2). The difference is between an edit and view
page.
-Original Message-
From: Marco Mistroni [mailto:[EMAIL PROTECTED]
state does not make much sense. We can simply
have a designated for input errors, with predefened mapping
name, like ERROR_INPUT:
...
This will also allow to have several error handlers, with names
starting on "ERROR_" or something. Just a thought.
Michael.
O
>From all this discussion, something occurred to me:
I think someone should submit an enhancement for Struts 1.2.8/1.3, so that
we can define the input page as an action forward/redirect:
After talking with Michael, this solution would solve one of the
input/output pr
Michael,
I want to continue this discussion because I think it has merit.
I've used the PRG pattern for over a year since I first came across your
article on TheServerSide.com. It works well in most cases, but I don't use
it 100% of the time because of certain limitations. It just happened that
y
Original Message-
From: Michael Jouravlev [mailto:[EMAIL PROTECTED]
Sent: Tuesday, May 10, 2005 4:51 PM
To: Struts Users Mailing List
Subject: Re: StrutsCatalogInputOutputSeparation
On 5/10/05, Benedict, Paul C <[EMAIL PROTECTED]> wrote:
> I have read Michael Jouravle
I have read Michael Jouravlev's article:
http://wiki.apache.org/struts/StrutsCatalogInputOutputSeparation
I can't find any blog or comment box on the page, so I'll write here. I
would like people to freely respond to my comments.
I disagree with the two-actions methodology to solve the separation
Andreas,
This is a wild solution. I don't understand page 15 and I've used Tiles
before, but not in this way. Could you explain it?
-Original Message-
From: Andreas Toom [mailto:[EMAIL PROTECTED]
Sent: Tuesday, May 10, 2005 1:58 AM
To: Struts Users Mailing List
Subject: Re: Multiple tile
Craig,
I found out the hard way that URL patterns are not regular expressions. Why
the limitation? My solution (which I did not implement) was to attach a
filter to "/" and then run regular expression patterns on the URI.
Paul
-Original Message-
From: Craig McClanahan [mailto:[EMAIL PROT
Tomasz,
If you need to output additional attributes, you don't use Struts to write
that particular tag. You are not forced to use Strut's tags.
Consider vanilla HTML -- the good ol' days -- and use EL to get what you
want from Struts.
-Original Message-
From: Tomasz Nazar [mailto:[EMAIL
Sean,
Have you thought about constructing a DAO/Adapater object that receives your
input, and then does the notorious SQL-string building on the inside? If you
cannot get the elegant solution, you should at least make it appear elegant
by wrapping it inside of the DAO layer.
-Original Message
released first -
once Validator is released we can then change Struts to depend on the new
validator version and then ship it in a release.
Niall
- Original Message -
From: "Benedict, Paul C" <[EMAIL PROTECTED]>
To: "'Struts Users Mailing List'"
S
Will this be in 1.2.7?
-Original Message-
From: Niall Pemberton [mailto:[EMAIL PROTECTED]
Sent: Wednesday, May 04, 2005 3:13 PM
To: Struts Users Mailing List
Subject: Re: Validation Problem with depends=URL
This is a bug in validator:
http://issues.apache.org/bugzilla/show_bug.cgi?id=3
Scott,
I recommend you use getRequestURI to check against the path
(context-relative) you want to protect. Also, it's possible you're seeing
hits against the images in your page (10 images will call your filter 10
times).
Thanks,
Paul
-Original Message-
From: Scott Purcell [mailto:[EMAIL
Chris,
At first, make sure you are not redirecting. Error messages are request
based, and redirection equals two requests and thus the messages are not
persisted.
-Original Message-
From: Marsh-Bourdon, Christopher [mailto:[EMAIL PROTECTED]
Sent: Wednesday, April 20, 2005 11:52 AM
To: 'S
per-field reporting on the
server-side.
-Original Message-
From: Joe Germuska [mailto:[EMAIL PROTECTED]
Sent: Monday, April 18, 2005 1:38 PM
To: 'Struts Users Mailing List'
Subject: RE: AJAX: Whoa, Nellie!
At 11:15 AM -0400 4/18/05, Benedict, Paul C wrote:
>Frank, will Ajax sup
ipt might be justifiable.
--
Frank W. Zammetti
Founder and Chief Software Architect
Omnytex Technologies
http://www.omnytex.com
On Mon, April 18, 2005 1:19 pm, Benedict, Paul C said:
> To Frank's point,
>
> I am sometimes one of those users who turn off JavaScript ;-) But, it's
To Frank's point,
I am sometimes one of those users who turn off JavaScript ;-) But, it's a
moot point, because, as I see it, no one's website should depend on
JavaScript for it to be fully functional anymore than it should wholly rely
on CSS. These are technologies that enable powerful usability,
Frank, will Ajax support be tied into reporting form errors? It would be
interesting to break down the validator into individual validations, so
errors can be reported to the user as he types.
-Original Message-
From: Emmanouil Batsis [mailto:[EMAIL PROTECTED]
Sent: Monday, April 18, 2005
A quick way is to simply clear your browser's cache, make a hit to the
website, and then look at how much your cache has accumulated. This will
give you a rough estimate.
-Original Message-
From: Ashish Kulkarni [mailto:[EMAIL PROTECTED]
Sent: Thursday, April 07, 2005 10:46 AM
To: user@st
James,
How much different is Common Resources from Common Configuration? In
essence, a property file is really just a list of configuration pairs.
Thanks,
Paul
-Original Message-
From: James Mitchell [mailto:[EMAIL PROTECTED]
Sent: Wednesday, April 06, 2005 4:22 PM
To: Struts Users Mail
If you are using a Servlet 2.3 container, J2EE provides a
HttpSessionListener class
http://java.sun.com/j2ee/sdk_1.3/techdocs/api/javax/servlet/http/HttpSession
Listener.html
But it is only for listening; not altering the event's state. If you are
using Tomcat, perhaps you could write some intern
Rick,
Since I really started this thread (and I speak for myself only!), I should
clarify this statement:
>>"Anyway, how come no one is saying that the future is Struts 1.3 or 1.4?
>>Why all the hoopla about the future IS JSF?"
On a habitual basis, I'll hear JSF is the future. I am glad people
10 PM
To: Struts Users Mailing List
Subject: Re: Is It Possible to Code Using Struts and JSF at the Same Time?
Benedict, Paul C wrote:
>Unless I am wrong (I may be!), I think the implicit point is not to use
>Struts for future projects. Since JSF provides backing beans, validation,
>heav
Dave,
Unless I am wrong (I may be!), I think the implicit point is not to use
Struts for future projects. Since JSF provides backing beans, validation,
heavy user interface controls (all Struts equivalents), I can see why
someone would promote JSF over Struts.
But why? If the only reason is
05 8:23 AM, Benedict, Paul C <[EMAIL PROTECTED]> wrote:
> So is Craig's advice to abandon Struts tags even in a Struts app? Write
out
> HTML elements yourself and get the values with expressions?
No. My advice is to plan on using JSF components for the UI part.
That can be an orth
So is Craig's advice to abandon Struts tags even in a Struts app? Write out
HTML elements yourself and get the values with expressions?
-Original Message-
From: Dave Newton [mailto:[EMAIL PROTECTED]
Sent: Friday, April 01, 2005 11:20 AM
To: Struts Users Mailing List
Subject: Re: Is It Pos
Erik,
The problem may be that you are using JSP Tags, which are commonly written
to only output links to resources within your context. You may want to
simply think of writing plain old and tags and do it yourself.
-Original Message-
From: Erik Weber [mailto:[EMAIL PROTECTED]
Sent: Tue
somehow am using the wrong tld.. if I am, can you
direct me to the correct one?
-----Original Message-
From: Benedict, Paul C [mailto:[EMAIL PROTECTED]
Sent: Friday, March 25, 2005 2:43 PM
To: 'Struts Users Mailing List'
Subject: RE: using with Tiles and Struts
Did you accidenta
from the fmt:message tag
Perhaps I'm doing something wrong somewhere. I even tried just doing the
following as a test:
and I got the following:
???${titleKey}???
Main Home Page
-----Original Message-
From: Benedict, Paul C [mailto:[EMAIL PROTECTED]
Sent: Friday, March 25, 2005 2:27 PM
Vince,
You need to import the Tiles attribute before you reference it:
Thanks,
Paul
-Original Message-
From: Fumo, Vince [mailto:[EMAIL PROTECTED]
Sent: Friday, March 25, 2005 2:11 PM
To: 'user@struts.apache.org'
Subject: using with Tiles and Struts
I am building a Struts Web
Kurt,
JSP 2.0 containers have EL turned off implicitly if you are not using the
Servlet 2.4 spec. Check the top of your web.xml file -- if you see it is
referencing the 2.3 DTD, you need to change it the 2.4 schema.
Thanks,
Paul
-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL P
My biggest reservation with placing constants in a map is that it do compile
time checking. I suppose it is very important for sites with thousands of
JSP files to do precompiling on them. Compiling would fail if the constant
is missing. With placing constants in a map, the problem can only be foun
Vincius,
See this article about Action Chaining:
http://wiki.apache.org/struts/ActionChaining
It seems the prefable way of chaining is to do it internally with Jakarta
Commons Chains. The Action is just an entry into the business processes.
Thanks,
Paul
-Original Message-
From: Viniciu
Diego,
I agree. It is nearly impossible to to find the Struts Mailing list on the
Struts website unless you do some heavy digging. I could only find it after
giving up and relying on google to find it for me.
Anyway, here is the address for the mailing list:
http://struts.apache.org/mail.html
Th
ld use css
-Original Message-----
From: Benedict, Paul C [mailto:[EMAIL PROTECTED]
Sent: 11 March 2005 15:22
To: 'Struts Users Mailing List'
Subject: RE: Upper case converter in the view
Brian,
I believe the Jakarta-Taglibs Project will be able to do this:
http://jakarta.apache.org/taglibs/doc/s
Brian,
I believe the Jakarta-Taglibs Project will be able to do this:
http://jakarta.apache.org/taglibs/doc/string-doc/intro.html
http://jakarta.apache.org/taglibs/doc/string-doc/string-1.1.0/index.html
Thanks,
Paul
-Original Message-
From: Brian McGovern [mailto:[EMAIL PROTECTED]
Sent
Kelly,
I think you have conflicting requirements. You can't rely on strings outside
the database for I18N support and then rely on them for sorting within the
database. I think this leaves you with two options:
1. Create a 2nd table which contains your text messages. Join to this table
and pull o
Betty,
Feel free to use a Filter which wraps the HttpServletRequest (see
HttpServletRequestWrapper) and provides the implementation for isUserInRole
for your custom role model.
Thanks,
Paul
-Original Message-
From: Betty Koon [mailto:[EMAIL PROTECTED]
Sent: Thursday, March 10, 2005 12:5
NG,
Please see this page:
http://wiki.apache.org/struts/StrutsWhyOnlyOneInstanceOfActionClass
Thanks,
Paul
-Original Message-
From: N G [mailto:[EMAIL PROTECTED]
Sent: Wednesday, March 09, 2005 2:57 PM
To: Struts-user
Subject: Concurrency in Action classes
Hi,
Is the Action class's i
I am having a problem with JSP Documents and Tiles.
I find it very useful to split up JSP into different files, and have Struts
Tiles bind them together to form a complete page. This is easy with JSP
fragments because not every page needs to be a completed document, but I
found this approach bombs
Ai,
In the action that precedes the display of the page, set the form bean's
property to contain the text that you want.
Also, take advantage of the value attribute of when you
require it.
Thanks,
Paul
-Original Message-
From: Ai Pham [mailto:[EMAIL PROTECTED]
Sent: Monday, February 2
http://struts.apache.org/mail.html
-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
Sent: Tuesday, February 22, 2005 4:03 PM
To: Struts Users Mailing List
Subject: Where is page (now) to subscribe/unsubscribe to this list?
I have looked everywhere, at at least it see
DynaValidatorForm dynaForm = (DynaValidatorForm)form;
String name = (String)dynaForm.get("name");
-Original Message-
From: Scott Purcell [mailto:[EMAIL PROTECTED]
Sent: Tuesday, February 22, 2005 3:38 PM
To: user@struts.apache.org
Subject: DynaActionForms Question
Hello,
I have a ques
derlying support, are different, just
>> sounds dangerous.
>>
>> As for compile time type information, well, Strings are Strings
>> whether you use one or the other.
>>
>> http://marc.theaimsgroup.com/?l=struts-user&m=109767197521860&w=2
>>
>
.
As for compile time type information, well, Strings are Strings
whether you use one or the other.
http://marc.theaimsgroup.com/?l=struts-user&m=109767197521860&w=2
On Mon, 21 Feb 2005 11:03:41 -0500, Benedict, Paul C
<[EMAIL PROTECTED]> wrote:
> What are the advantages and disadvant
What are the advantages and disadvantages of choosing ActionForm vs.
DynaActionForm?
I ask this because I always found DynaActionForm to be more valuable ...
until a co-worker picked my brain. He did not like the lack of type
information at compile time. I agreed. Also, I don't know how well
DynaA
Just my 2 cents here, but isn't this an awfully awkward way of extending
validations? Tiles does it nicely by putting an "extend" attribute on the
tile definition, which allows sub-definitions to do overriding. I would
expect that when Struts 1.3+ allows extending on all configuration elements,
it
Not unless you own the server :o)
-Original Message-
From: Jonathan M Z [mailto:[EMAIL PROTECTED]
Sent: Wednesday, February 16, 2005 1:37 PM
To: Struts Users Mailing List; Soaring Eagle
Subject: Re: how to receive emails related to my questions only?
there's no server side configuration
al, JAMM Consulting, (972)612-6056, www.JAMMConsulting.com
FREE! Valuable info on how your business can reduce operating costs by
17% or more in 6 months or less! http://newsletter.JAMMConsulting.com
> -Original Message-----
> From: Benedict, Paul C [mailto:[EMAIL PROTECTED]
> Sent:
Neil,
You cannot redirect to a Tile. A Redirect is specific to a URI.
Thanks,
Paul
-Original Message-
From: Neil Aggarwal [mailto:[EMAIL PROTECTED]
Sent: Thursday, February 10, 2005 12:13 PM
To: 'Struts Users Mailing List'
Subject: RE: Redirect instead of forward in action mapping
Bil
If your setter (for setIgnore?) does not have the same type as its getter,
it is probably ignored. The JavaBean spec is really strict with its
requirement for properties.
By the way, "LaserActionMapping" is the coolest action classname I've ever
seen. If there was an award for these things, I thin
nd you seem to be talking about situations where
that is not done. Can you expand on this a bit?
I am not working, obviously, on the Tiles development, so I won't be
able to answer your question in any event, but find the question
itself interesting.
Thanks,
Jack
On Thu, 3 Feb 2005 10:12:44 -0500
I read a rumor that said Tiles will become its own top-level subproject in
Jakarta. Is that true?
Also, I think Tiles is great, but I find it very annoying to litter every
JSP page with tags to decorate my pages. While it makes sense to put
the tile definitions in XML when I do Struts development
There is a slim chance, but to Ed's point, if URL rewriting is off and your
session is configured to transfer jsessionid only by URL rewriting (setting
"cookies" to "false" in but true by default), this situation will
exist.
Thanks,
Paul
-Original Message-
From: Joe Germuska [mailto:[EMA
Your action should choose a forward with its redirect attribute set to true:
Thanks,
Paul
-Original Message-
From: Michael Oliver [mailto:[EMAIL PROTECTED]
Sent: Thursday, January 27, 2005 2:54 PM
To: struts-user@jakarta.apache.org
Subject: How to Forward out of struts to a URL from an
Also see this article:
http://www.javaworld.com/javaworld/jw-07-2004/jw-0726-security.html
J2EE security: Container versus custom
Choose the appropriate type of security for your application
Summary
This article covers the factors to consider when choosing between custom
security and J2EE standa
Speaking of 1.2.6, does anyone know what is holding up its release at beta
quality? Are we going to see a GA on this version or in 1.2.7+?
Thanks,
Paul
-Original Message-
From: Niall Pemberton [mailto:[EMAIL PROTECTED]
Sent: Monday, January 24, 2005 8:46 PM
To: Struts Users Mailing List;
Message-
From: Rick Reumann [mailto:[EMAIL PROTECTED]
Sent: Tuesday, January 25, 2005 10:26 AM
To: Struts Users Mailing List
Subject: a plus for sitemesh [was] Re: Best practice for dynamic Title
values using Tiles?
Benedict, Paul C wrote the following on 1/25/2005 10:12 AM:
> I would
Rick,
I wouldn't worry too much about having a different definition just to switch
title. In essence, it is a different view and so it's deserving of a unique
entry. Besides, the amount of typing is trivial because Tiles allows
overriding of definitions, so it is simply a matter of listing out one
If you're migrating to Struts 1.2, make sure you update all your DOCTYPEs. I
believe I once had a problem where I was mixing a few DOCTYPEs and that
didn't work so well.
Also, if the web container cannot find the DTDs, it may be because your
DOCTYPE is wrong. This happened to me. This is the DOCT
I saw the votes on Struts 1.2.6
(http://wiki.apache.org/struts/StrutsRelease126) and it was voted Beta
quality.
I also know that Struts 1.3 is receiving active development, but is this
preventing the next GA for 1.2.7+?
Thanks,
Paul
---
I noticed in Struts 1.3 there is a DispatchChainAction, and the parameter
attribute specifies the name of the chain to execute. Would somebody
consider that a security hole? It seems like anyone could arbitrarily
execute any chain command in the entire Struts app if they knew it -- unlike
a normal
80 matches
Mail list logo