Looking at the JSTL 1.0 specification, section 3.3, leads me to believe that
DynaActionForm properties can be accessed through the JSTL EL but with a
different syntax than a regular JavaBean property.
Example:
Regular JavaBean (e.g., ActionForm) EL syntax:
c:out
hash otherwise. It's still kind of cluttered, but at least it's off
in Struts serving a specific need, instead of in beanutils.
Joe
At 8:19 AM -0700 2002/07/09, Jennings, Christofer J. wrote:
Looking at the JSTL 1.0 specification, section 3.3, leads me to believe
that
DynaActionForm properties
Is there a way to assign a number formatter to a field? I have an int field
the should display as 4 digits with leading zeros, like 0020 instead of 20.
It would be nice to use a formatter instead of String conversions (I think).
???,
boz
in ApplicationResources.properties to instead read:
note.range=We only go between {0} and {1}.
That is, you should have braces ('{' and '}') around the ints instead of
parens.
chris
-Original Message-
From: Jennings, Christofer J. [mailto:[EMAIL PROTECTED]]
Sent: Thursday, June 20, 2002 9
I've found the following to work well and simply.
== TabHead.jsp start snip
table width=100% border=0 cellpadding=0trtd
table border=0 cellpadding=0 align=left cellspacing=0
tr valign=bottom
!-- td entries should be one-liners or you might get weird gaps --
logic:equal
The equal and notEqual tags do the parameter check.
-Original Message-
From: Akash Munjal [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, June 11, 2002 12:01 PM
To: [EMAIL PROTECTED]; [EMAIL PROTECTED]
Subject: RE: could anyone suggest an example to use tabs in a struts
application
Thanks
I had this happen with the logic:equal tag. I wanted to compare a boolean
value and the documentation makes no mention of boolean conversion so I made
my getter return a String, but had two setters: one receiving a boolean and
the other a String. My gut feeling is that the two setters somehow
type-conversions, etc. Then he put it
over in the Commons area so it can be used by a bunch of other Jakarta
subprojects.
The docs on all this are still a bit lean - but the code is solid. It makes
it simpler to have form bean properties of all different types.
Jennings, Christofer J. [EMAIL
How about using filters?
-Original Message-
From: Robert Taylor [mailto:[EMAIL PROTECTED]]
Sent: Thursday, June 06, 2002 7:12 AM
To: [EMAIL PROTECTED]
Subject: Assertions
1. Assertions that are common to all events.
2. Assertions that are common to a set of related events.
3. Assertions
this all reside within the front controller and
configurable via one source (the struts-config file).
robert
-Original Message-
From: Jennings, Christofer J. [mailto:[EMAIL PROTECTED]]
Sent: Thursday, June 06, 2002 10:26 AM
To: 'Struts Users Mailing List'
Subject: RE: Assertions
How
I'd like to set a form's action based on the presence of an bean. The code
below fails during compile at the first /logic:present tag, saying that it
is a mismatch.
start snip ---
logic:present name=abcForm
html:form method=post action=/saveABC
: Form action based on bean presence
On Fri, 10 May 2002, Jennings, Christofer J. wrote:
Date: Fri, 10 May 2002 09:18:59 -0700
From: Jennings, Christofer J. [EMAIL PROTECTED]
Reply-To: Struts Users Mailing List [EMAIL PROTECTED]
To: 'Struts Users Mailing List' [EMAIL PROTECTED
I'd like to have an action without an associated form. Any suggestions?
Many thanks,
boz
I came across this yesterday. Here's what I found. If a bean exists with a
null field, doing a logic:present on the field return true and comparing it
(e.g., using logic:equals) gets a NullPointerException.
If there is a custom tag to check for null values I'd love to know it.
I think this may
Hi,
I want to fill radio button values with values from a constants class. What
is the best practice for this using struts?
For example, this code...
html:radio value=C4 property=crtainNum /Curtain Number Four
... could be...
html:radio value=%
15 matches
Mail list logo