DynaActionForm and JSTL (was RE: DynaActionForm Advantages)

2002-07-09 Thread Jennings, Christofer J.
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

RE: DynaActionForm and JSTL (was RE: DynaActionForm Advantages)

2002-07-09 Thread Jennings, Christofer J.
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

Number formatters for form fields?

2002-06-25 Thread Jennings, Christofer J.
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

RE: bean:message with parametric replacement in Struts 1.0.2

2002-06-20 Thread Jennings, Christofer J.
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

RE: could anyone suggest an example to use tabs in a struts application

2002-06-11 Thread Jennings, Christofer J.
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

RE: could anyone suggest an example to use tabs in a struts application

2002-06-11 Thread Jennings, Christofer J.
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

RE: No getter error

2002-06-10 Thread Jennings, Christofer J.
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

RE: No getter error

2002-06-10 Thread Jennings, Christofer J.
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

RE: Assertions

2002-06-06 Thread Jennings, Christofer J.
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

RE: Assertions

2002-06-06 Thread Jennings, Christofer J.
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

Form action based on bean presence

2002-05-10 Thread Jennings, Christofer J.
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

RE: Form action based on bean presence

2002-05-10 Thread Jennings, Christofer J.
: 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

Action without a form.

2002-04-15 Thread Jennings, Christofer J.
I'd like to have an action without an associated form. Any suggestions? Many thanks, boz

RE: How to compare a notNull string with the nullString!

2002-03-22 Thread Jennings, Christofer J.
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

Best practice for using constants

2002-03-21 Thread Jennings, Christofer J.
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=%