Tiles-EL ???

2003-08-07 Thread Jeff Caddel
Anyone know of a non-scriplet way to do what this jsp snippet is doing? <% String editPage = (String) pageContext.getAttribute("editPage"); %> - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands,

Re: [OT] Interesting JSF info

2003-08-14 Thread Jeff Caddel
My personal plan will be to do two things as soon as JavaServer Faces goes final. * Migrate my existing Struts based apps to using JavaServer Faces component tags, instead of Struts HTML tags, to take advantage of their additional functionality. Fortunately, this can be done with basically ze

Design Idea: FormBasedDispatchAction

2003-03-13 Thread Jeff Caddel
I'm thinking of extending the DispatchAction supplied in the Struts download for my app by overriding the execute() method as described below, any negative/positive feedback on this one? public abstract class FormBasedDispatchAction extends DispatchAction { /** * This class assumes that a

Re: Design Idea: FormBasedDispatchAction

2003-03-13 Thread Jeff Caddel
snip Maybe you are referring to the LookupDispatchAction Yes, LookupDispatchAction. Sorry. The way I originally extended LDA, each Action contained a hard coded mapping of submit button values-> method names. (obviously a "bad thing" :-) Wendi's idea, if I'm getting it right, sounds pretty

Re: Design Idea: FormBasedDispatchAction

2003-03-14 Thread Jeff Caddel
Wendy Smoak wrote: Jeff wrote Just store the mappings between submit buttons and methods in the ApplicationResources.properties file along with everything else, and then extend LDA in such a way that it looks in there to figure out which method to invoke. LDA already does that, you don

Re: [THURSDAY] struts questions

2003-03-14 Thread Jeff Caddel
Bueno Carlos M wrote: just had to stick the zip file inside my tom cat. I do have a cat, but she's female. Will that make a difference, or does struts only run on male cats? Does it matter if they are neutered? Does each client need to have a male cat or just the server? Ever since they came ou

Re: Tiles and WebSphere

2003-03-18 Thread Jeff Caddel
David Graham wrote: It's actually a small bug in the Tiles insert tag. In tiles-defs.xml I define these definitions: The first definition defines an optional attribute called "secureLeftNav". The second definition extends the first and defines a jsp for that attribute. When hitting

[OT] How to tell when a project you are on is in trouble

2002-11-20 Thread Jeff Caddel
be null and it is * * @author # */ public class NullObjectException extends Exception { // Doesn't have to do anything } Note how neatly this disables nested exception handling!!! Pretty nice eh?? Jeff Caddel -- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]&g

Re: [OT] How to tell when a project you are on is in trouble

2002-11-21 Thread Jeff Caddel
. All rights reserved. * This exception is used if the object must not be null and it is * * @author # */ public class NullObjectException extends Exception { // Doesn't have to do anything } Note how neatly this disables nested exception handling!!! Pretty nice eh??

Digester Best Practice

2003-03-21 Thread Jeff Caddel
Any reasons for one of these approaches being better/worse than the other? URL url = Thread.currentThread().getContextClassLoader().getResource("/WEB-INF/test.xml"); InputStream input = url.openStream(); Digester digester = new Digester(); digester.parse(input); URL url = Thread.currentThread(

Digester Subtlety

2003-03-21 Thread Jeff Caddel
Any reasons for one of these approaches being better/worse than the other? URL url = Thread.currentThread().getContextClassLoader().getResource("/WEB-INF/test.xml"); InputStream input = url.openStream(); Digester digester = new Digester(); digester.parse(input); URL url = Thread.currentThread(

Re: Digester Subtlety

2003-03-21 Thread Jeff Caddel
Apologies for the duplicate msg. I got a somewhat cryptic reply that the orginal had bounced, presumably because it had "xxx" in the xml doctype area. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail:

Re: [OT] struts/hibernate in Oracle mag

2003-03-23 Thread Jeff Caddel
Why does no one use Jakarta's own OJB for persistence? Tons of people do! - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: Digester Best Practice

2003-03-25 Thread Jeff Caddel
Ahhh. Ok. So something inside InputSource retains a reference to the base uri which keeps the parser happy. Makes perfect sense. We use xml includes a lot for our internal config files so knowing about this is a big time saver. Using the second form, with an InputSource, lets Struts say "t

Re: [OT] Contract Work: Going Rate?

2003-03-29 Thread Jeff Caddel
On a side note related to contracting/consulting, do ya'll generally attempt to get the "numbers" on the table when you deal with 3rd party recruiting companies? Are you usually aware of what the recruiting company is charging the firm you are working for? Do you feel (like I do) that you hav

Re: [OT]Credit card processing

2003-03-31 Thread Jeff Caddel
I use the java API Verisign provides: http://www.verisign.com/products/payflow/pro/PayFlowPro.pdf Their API is functional tho not exactly elegant. I ended up putting a "payment services" layer in between our application code and the Verisign API calls mostly so I wouldn't be tied to Verisign any

Re: 12 month contract - Toronto - immediate start

2003-04-04 Thread Jeff Caddel
I'm kinda partial to the 2-5 years required experience with Oracle 9i. They are looking for a version of Winston Churchill who gained access to the Oracle 9i binaries back in April of '98. A time traveling Winston Churchill... One thing offends me the most is Excellent communication skills

Advanced Tiles

2003-04-04 Thread Jeff Caddel
After going thru Cedric's doc (http://www.lifl.fr/~dumoulin/tiles/tilesAdvancedFeatures.pdf) on Advanced Tiles Features I came up with something that's a slight derivative of the example on page 15, right under where it says, "Example of a controller inserted as an URL:". That example shows ho

Struts-EL, DynaActionForm, and HashMaps

2003-06-12 Thread Jeff Caddel
Given this xml snippet from struts-config: and this JSTL snippet: (it prints out the "firstName" of a user bean stored in the HashMap under the key "mapEntry1") What do I put under the "property" attribute below to cause the framework to update the "firstName" attribute of the bean st

Struts Console as a Web Application

2002-08-20 Thread Jeff Caddel
Does anybody know of a web application with functionality similar to that of the Struts Console 2.1 James Holmes wrote? Basically a web interface for managing the various struts xml config files similar to the way the "admin" webapp manages the Tomcat server.xml file. TIA!!! -- To unsubscri