Re: passing errors from model?

2004-03-23 Thread Greg Reddin
Nick Wesselman wrote: create a custom Exception with a set of error codes and messages? This is what we've done in the past. We'd assign a set of error codes in the ApplicationResources file. and throw an exception like this: throw new MyException(12345, ...); And catch it like this: try {

Re: Struts and Chinese

2004-02-03 Thread Greg Reddin
I've done it before. Unforetunately, I can't remember everything that had to be done. If my memory serves me correctly, I didn't have to change anything within the application or Struts. I only had to add a Servlet filter to set the character encoding of the request before Struts ever sees

Re: How do I combine tiles and pre-populated forms?

2003-12-04 Thread Greg Reddin
Jay, Use the first action mapping, but do it like this: action path=/ViewSystemProperties type=com.nci.action.telco.ViewSystemProperties scope=request name=SystemProperties validate=false forward name=success

Re: Message Resource bundle frustration

2003-12-04 Thread Greg Reddin
Derek Clarkson wrote: Hi all, I've just subscribed to this list and would appreciate any help you can give. I've been trying to get resources bundles to work. I have a jar file which is used on several projects and contains some core business beans. It also contains aproperty file with a basic

Re: ActionMessage(s) + html:messages

2003-12-02 Thread Greg Reddin
Joe Germuska wrote: if you use: html:messages id=msg c:out value=${msg}/ /html:messages it will look for an ActionMessages saved with saveErrors(), not saveMessages() Or change it to: html:messages id=msg message=true c:out value=${msg}/

Re: Chain - not comatible

2003-11-28 Thread Greg Reddin
I worked around it by creating a new TilesPlugin that doesn't require a TilesRequestProcessor. Another workaround would be to make ComposableRequestProcessor extend TilesRequestProcessor, but that kinda sucks. Greg Vic Cekvenich wrote: (thanks Batien for emailing the war). When runing Struts

Re: Commenting JSP code?

2003-10-24 Thread Greg Reddin
%-- comment --% Ruth, Brice wrote: How do I go about putting comments in my JSP code that I don't want sent out to the browser? - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: [FRIDAY] Free Dog..... (going further OT!)

2003-10-17 Thread Greg Reddin
Andy Engle wrote: It's already bad enough that the Cubs lost. +1. I have never wanted a team to win a baseball game so much in my life. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL

Re: i18n - Chinese charactor problem

2003-10-16 Thread Greg Reddin
I don't remember the exact code, but a looong time ago we had to write a Filter that created a request wrapper that properly set the character encoding on request parameters. Maybe googling that would turn up something. Greg ZYD wrote: Hi, I have a problem in getting the Chinese charactors

Re: OT: Simple is great . (period)

2003-10-15 Thread Greg Reddin
Funny, a coworker and I were discussing this very thing yesterday in the context of J2EE vs. .NET. Neither of us have used .NET so we're just going on our perceptions. But .NET proponents say that it is simpler than J2EE. This is fine as long as you can handle being pigeon-holed into a

Re: OT: Managing Modifications to Struts

2003-10-14 Thread Greg Reddin
I've only submitted a very small amount of code to this group so I'm preaching to the choir :-) But, now that I'm learning, there are only a few reasons why I would not submit code back to the community: 1) The code was written under a non-disclosure agreement and I am not permitted to give

Re: XML Parsing - Castor and Digester ?

2003-08-29 Thread Greg Reddin
Castor: http://www.castor.org/ Digester: http://jakarta.apache.org/commons/digester/ krthekeyan wrote: Hi, I found our guys suggested Castor and Digester xml parsers for xml parsing. May i know what are these and what for we can use this. and in which way it is different between jaxp and jaxb

Re: XML Parsing Dilemma

2003-08-28 Thread Greg Reddin
The front-runners on my list is Castor and JDOM. Any (related) suggestions are greatly appreciated. I've used both of these, though not JDOM enough to comment on it. My favorite XML tool right now is Digester. To me, it has a smaller development footprint than Castor and gives you at least

Re: J2EE IDE

2003-08-27 Thread Greg Reddin
+1 on NetBeans although I've not used Eclipse. I tend to stop looking when I find something that works. However, I find that 90% of the time it's quicker for me to just use vi and Ant. I use NetBeans for debugging though. And if I'm forced to use Windows for my development I'll immediately

Re: Struts, search, and approval...

2003-07-11 Thread Greg Reddin
Sun's Blueprints book makes mention of Struts when talking about MVC Frameworks. It's about as close to an endorsement as you can get. Greg Gregory F. March wrote: First a quick note. It seems that searching of the struts list archive is not working. A search for forward in the body is

Re: StrutsTestCase question

2003-06-18 Thread Greg Reddin
I've not used it very extensively yet, but have gotten it to work in some simple cases. Can you elaborate on the problems you're having? Greg Chappell, Simon P wrote: Has anyone had any luck getting StrutsTestCase to work? It's an extension of JUnit, which we already use on our project, but I

Re: A question long not raised....

2003-05-30 Thread Greg Reddin
Jarnot Voytek Contr AU HQ/SC wrote: Don't encourage him, he'll soon be describing a Struts app with a Flash front-end that controls a tap specially designed for quickest Fosters delivery... ;) ... and a really cool LISP back end... DISCLAIMER: This email message is for the sole use of the

Re: [OT] Contract Work: Going Rate?

2003-03-27 Thread Greg Reddin
The senior architect (There can be only one!! ;-) Try to tell our people that... :-) - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

RE: Struts behind the scene

2001-08-29 Thread Greg Reddin
Shelly, I'm not sure I fully understand the question, but I'll give it a shot. Struts does not generate anything. You write the JSP's that Struts uses. When your JSP pages are invoked the first time, the web container (i.e. Tomcat, etc.) compiles the JSP's and renders them. That's why it is

RE: XML/XSL/Struts Architecture

2001-07-11 Thread Greg Reddin
Using XSL, you can recreate the majority of what the taglibs do. However, that begs the question of why you would use XSL in the first place. I've worked on a Struts-based XSL project for about 6 months now, and we've had to recreate so much of the Struts functionality in our architecture that

RE: html:link problem

2001-07-05 Thread Greg Reddin
I need to use one of forward, href or page. So now my problems are: Try setting up the href attribute to read href=javascript:performAction(...) and see if that works.

RE: html:link problem

2001-07-05 Thread Greg Reddin
Since I am not using the JSP tags right now, I'm really speculating. It looks as if the link tag is attempting to build a URL based on the stuff you put in the href, paramId, paramName, and paramProperty attributes. It may be that the tag is not designed to work with JavaScript-style URL's in

RE: Update on caching lists.

2001-04-18 Thread Greg Reddin
A couple of possibilities: 1) Are you storing the list or a reference to it in session as well as servlet context? It may be that you still have a reference to the old list somewhere. 2) Are you calling context.getAttribute() again to replace your reference with one to the new list? 3) Sanity

RE: how to cache lists?

2001-04-17 Thread Greg Reddin
You could store the data in Application context as you've stated, but provide a mechanism for that data to be refreshed (either automatically or manually) without restarting the server. I haven't implemented this at all, but it seems possible. I've considered using some sort of date/time stamp,

RE: how to cache lists?

2001-04-17 Thread Greg Reddin
The above approach is fine if you want to have cache within a single application. If you want to have the same cached data accessible to different web applications, you can use a Startup class like what Weblogic provides. You can have your cached data as instance variables of your startup

RE: Loggig Mechanism in Struts

2001-04-13 Thread Greg Reddin
We wrote our own logging object that logs messages either to the console or a log file as specified in a properties file or web.xml. I beleive there are logging tools out there that help with this, but we just wrote our own for now. Our tool specifies a message priority (i.e. NORMAL, DEBUG,

RE: Struts XML/XSL

2001-04-03 Thread Greg Reddin
Yes, We are using XSL as our output format instead of JSP. Here's what we've done: 1) We created a "Message" object that is an ActionForm. All of our ActionForms inherit from this object. This way we enforce that the "Message" object is present for each action and is either in session or

FormBean population problem

2001-03-23 Thread Greg Reddin
Forgive me if this has been addressed before. I have something like the following in my request form: select name="searchCriteria" option value="1"Option 1/option option value="2"Option 2/option option value="3"Option 3/option /select My Form bean looks like this: private Integer

FW: FormBean population problem

2001-03-23 Thread Greg Reddin
I believe I've solved my own problem. Please correct me if I'm wrong. 1) The reason my code wasn't working is because the set and get methods of the bean used different types. It was not considered a valid JavaBeans property. Changing the set/get methods to this will make it work:

RE: FormBean population problem

2001-03-23 Thread Greg Reddin
om: [EMAIL PROTECTED] Sent: Friday, March 23, 2001 10:33 AM To: greg reddin; [EMAIL PROTECTED] Subject: Re: FormBean population problem Don't you have to define the setter to take a String? setSearchCriteria(String searchCriteria) At 09:11 AM 3/23/2001 -0600, you wrote: Forgive me if thi

RE: which development tool to use?

2001-02-06 Thread Greg Reddin
Actually, I was just joking. No "belittlement" was intended. I apologize if it came across that way. I am one of the weird guys that actually gets pretty good use out of vi. I think it's best to use whatever tool works for you. If you can fly through a keyboard-based app, then do it. I've

RE: which development tool to use?

2001-02-05 Thread Greg Reddin
actually, we've had great success with JBuilder Foundation. Debugging can be painful, and, if you're used to developing in GUI environments, the interface can be kludgey(?) at times, but it works good enough to get work done. You also have to be careful of how it compiles things. It compiles

Statics and Thread Safety

2001-01-15 Thread Greg Reddin
I have some issues with thread safety and could use some advice. Please look at my assumptions and tell me if they are true or not. 1) Tomcat (or other container) creates one instance of the ActionServlet, ActionBase, and all my Action classes and caches them for performance reasons.

RE: A great Shockwave flash movie

2000-12-21 Thread Greg Reddin
I agree. Just filter for viruses or certain types of attachments. -Original Message- From: [EMAIL PROTECTED] Sent: Thursday, December 21, 2000 11:49 AM To: [EMAIL PROTECTED] Subject: RE: A great Shockwave flash movie What if you don't have a public web or ftp site? What about

RE: logic:iterate and table row renderering

2000-12-19 Thread Greg Reddin
We've had success doing this with JSP. The following code snippet may help. % String DARK_COLOR = "DarkColor"; String LIGHT_COLOR = "LightColor"; String currentColor = DARK_COLOR; int i = 0; % struts:enumerate id="searchRow" name="searchForm" property="SearchResults" %