Re: ClassCastException using type attribute with iterate tag

2003-01-21 Thread Rick Reumann
On Tuesday, January 21, 2003, 2:41:05 PM, Jeremy wrote: JC I wasn't exactly clear with what I am trying to do. Here is what JC I really want to do: JC logic:iterate name=problemArray id=currentProb scope=request JC bean:write name=currentProb property=problemName/ JC html:radio

Re: Validator and Form Bean

2003-01-17 Thread Rick Reumann
On Friday, January 17, 2003, 8:42:11 AM, Suresh wrote: SA But now, my whole form is not getting displayed because I am not SA getting the form bean back. Any thing I am missing? **Must the SA form bean be in session scope if I want this functionality?** No, the FormBean can have request scope.

Re[2]: Validator and Form Bean

2003-01-17 Thread Rick Reumann
On Friday, January 17, 2003, 10:23:16 AM, Suresh wrote: SA Form-bean related config: SA form-bean name=servicesForm SA type=org.apache.struts.validator.DynaValidatorForm SA form-property name=serviceSets type=java.util.Vector / SA form-property name=services

Re: need some code to do the following

2003-01-17 Thread Rick Reumann
On Friday, January 17, 2003, 12:14:40 PM, Ashish wrote: AK Hi, What i am trying to do it the following, I have a AK DispatchAction class which is called from a jsp ( and passed user) AK then i need to popluate a Bean (Action or Dyna) and put it in AK request and pass it to jsp, so the jsp will

Re: need some code to do the following

2003-01-17 Thread Rick Reumann
On Fri, 17 Jan 2003 14:17:04 -0800 (PST) Ashish Kulkarni [EMAIL PROTECTED] wrote: Hi, the code did not work that way , so what i did is the following DynaValidatorForm PL1820DeleteForm = (DynaValidatorForm) DynaActionFormClass.getDynaActionFormClass(

Re[2]: server side validation

2003-01-16 Thread Rick Reumann
On Thursday, January 16, 2003, 5:00:19 PM, Ginger wrote: GC As a matter of fact, I did try version1.0 from that one and it did GC not work out for me because the init method in validateForm GC requires a filed that doesn't exist. When you install the latest struts it comes with all the

Re: Is Server Side Validation Working in Struts 1.1 Beta 3?

2003-01-16 Thread Rick Reumann
On Thursday, January 16, 2003, 5:01:28 PM, John wrote: HJ Has anyone been able to get server side validation to work with HJ beta 3? Seems to be working fine for me. -- Rick mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail:

Re: Exceptions in DispatchActions

2003-01-15 Thread Rick Reumann
On Wed, 15 Jan 2003 12:27:02 -0800 (PST) Craig R. McClanahan [EMAIL PROTECTED] wrote: (Presuming 1.1b3 here) Thanks! Actually that was the whole problem right there- I was using 1.1b1. Definitely worth upgrading! Thanks again. -- Rick -- To unsubscribe, e-mail: mailto:[EMAIL

Re: HELP Has anyone tried to extend DynaValidator form and populatevalues in it

2003-01-15 Thread Rick Reumann
On Wed, 15 Jan 2003 19:53:36 -0800 (PST) Ashish Kulkarni [EMAIL PROTECTED] wrote: Hi, I am trying to do the following, I have one CommonForm which extends DynaValidatorForm The i have a DispatchAction class which populates the value for CommonForm and stores it is request and then

Exceptions in DispatchActions

2003-01-13 Thread Rick Reumann
Sorry to repost this yet another time. If maybe someone can just let me know if they are successfully using declarative exception handling in conjunction with DispatchAction methods that would be a start. Maybe nobody even does this so I can just give up. If I know it is working for others I'll

Re[2]: A Struts Haiku

2003-01-13 Thread Rick Reumann
Time, too much have you major geeks these people are boss know you do this? :) On Monday, January 13, 2003, 4:17:13 PM, James wrote: JM Interesting post. What does all this mean to me? I have errors JM now. JM -- JM James Mitchell -Original Message- From: James Turner

[OT] Re: A Struts Haiku

2003-01-13 Thread Rick Reumann
Yoda think hard now.. Me think this Friday yes hmmm? topic cause these thinks On Monday, January 13, 2003, 4:04:51 PM, Mark wrote: ML a Struts Haiku ML model view control ML struts is good for this model ML simple it is not -- Rick mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail:

Re[4]: A Struts Haiku

2003-01-13 Thread Rick Reumann
On Monday, January 13, 2003, 4:44:47 PM, James wrote: JT Or, moving to a slightly less elevated form. JT There once was a form validation. JT That wasn't invoked, consternation! JT The class I'd extended, JT Keyed on form as intended. JT But the formset was the action variation. There was once

Re[2]: A Struts Haiku

2003-01-13 Thread Rick Reumann
On Monday, January 13, 2003, 4:47:06 PM, James wrote: -Original Message- From: Mark Galbreath [mailto:[EMAIL PROTECTED]] Sent: Monday, January 13, 2003 4:37 PM To: 'Struts Users Mailing List' Subject: RE: A Struts Haiku Jakarta Struts rules learn it, code it, live it .NET is

repost about problem with Declarative Exception in DispatchAction

2003-01-10 Thread Rick Reumann
Sorry for this repost, but I'm still pretty stuck. Hope someone could help with this.. If I use a normal Action and declare an exception in the action configuration in the config file, everything works perfectly if that Exception is thrown. However, when normally I like to use DispatchAction and

Re: QUESTIONS: Ed Hill's Display Custom Tag Library

2003-01-09 Thread Rick Reumann
Actually a lot has been done on this tag lately by Tim Golden (and I added a little bit to allow you to add an array of columns to display). Tim could post the link to where the latest jar he worked on is. I don't have the link here but have it at home if he doesn't reply to the list before

Re: QUESTIONS: Ed Hill's Display Custom Tag Library

2003-01-09 Thread Rick Reumann
You can check out Tim's latest updates to the display tag and get the latest jar and source code here: http://timgolden.com/taglib/ Both of us have tried also to get a hold of Ed for a long time now and I think he's disappeared:) Anyway he started some great work which is easy to build upon. Tim

Re: Struts Productivity Survey

2003-01-09 Thread Rick Reumann
The problem with this survey is that the results you would get would not be accurate for assessing the time it would take new developers to catch on to using Struts at the present time. There is now a lot more documentation and examples out there to learn from than there was just six months ago.

Declartive Exception handling in DispatchAction?

2003-01-09 Thread Rick Reumann
I'm probably just being an idiot here but does configuring declarative exceptions in your config.xml file work with DispatchActions? According to this post it looks like you need to override dispatchMethod. Just double checking if this is really necessary?

Model Layer question.. where to put BeanUtils.copyProperties (sort of long)

2003-01-08 Thread Rick Reumann
After purchasing and reading Chuck's Jakarta Struts (O'Reilly -great book also) I was made aware of being able to declare Exceptions for your Actions in the struts-config file. Now that I'm aware that I could do that, it's possible to avoid the try/catch blocks that most of my dispatch action

Re[2]: Model Layer question.. where to put BeanUtils.copyProperties (sort of long)

2003-01-08 Thread Rick Reumann
On Wednesday, January 8, 2003, 5:07:24 PM, Robert wrote: RT If you are using DynaActionForm or DynaValidatorActionForm then you can RT cast the form to a DynaBean in your Action class and pass it to the business RT layer. RT This does not couple your business/service layer to Struts. It does

Re[2]: Model Layer question.. where to put BeanUtils.copyProperties (sort of long)

2003-01-08 Thread Rick Reumann
On Wednesday, January 8, 2003, 5:11:59 PM, Juan wrote: AJc Can you register the exceptions that beanutils throws in the AJc struts config??? Actually I thought about doing that also. Might not be a bad idea. Each of my action mappings is going to start to get pretty large though:) -- Rick

Re: package org.apache.struts.Action does not exist

2003-01-08 Thread Rick Reumann
On Wednesday, January 8, 2003, 5:34:18 PM, Rachel wrote: R import org.apache.struts.Action.*; Try org.apache.struts.action ( lower case A ) -- Rick mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]

Re[3]: Model Layer question.. where to put BeanUtils.copyProperties (sort of long)

2003-01-08 Thread Rick Reumann
On Wednesday, January 8, 2003, 5:21:57 PM, Rick wrote: RR On Wednesday, January 8, 2003, 5:07:24 PM, Robert wrote: RT If you are using DynaActionForm or DynaValidatorActionForm then you can RT cast the form to a DynaBean in your Action class and pass it to the business RT layer. RT This does

Re: scope

2003-01-07 Thread Rick Reumann
On Mon, 6 Jan 2003 17:01:48 -0800 LUCERO,DENNIS (HP-Boise,ex1) [EMAIL PROTECTED] wrote: -Original Message- From: Joe Barefoot [mailto:[EMAIL PROTECTED]] Sent: Monday, January 06, 2003 5:18 PM To: Struts Users Mailing List Subject: RE: scope LDHBe The jsp containing the

[OT] Re: Oracle JDeveloper 9i and Struts Tomcat deployment

2003-01-07 Thread Rick Reumann
On Tuesday, January 7, 2003, 10:15:16 AM, FM wrote: PPF I am in fix with a IDE I have never used before in my life, PPF Oracle JDeveloper 9i. Is there anyone out there who give some pointers PPF on how to compile and deploy a Struts demo on to an external PPF running Tomcat 4.1.18 server on

Re[2]: [OT] Re: Oracle JDeveloper 9i and Struts Tomcat deployment

2003-01-07 Thread Rick Reumann
On Tuesday, January 7, 2003, 3:40:10 PM, Steve wrote: SM Sounds like you're not using the latest production release SM which has lots of enhancements in many area that seemed to SM frustrate you in previous releases. Sorry, I didn't want to sound so negative:) Glad to see the latest release has

Re[2]: Date Formats

2003-01-06 Thread Rick Reumann
On Monday, January 6, 2003, 9:16:15 AM, Bill wrote: SB Struts does not convert Strings to dates -- A nice why to deal with Date conversions though is to use BeanUtils.copyProperties(..) and make sure you have a bean(DTO) to hold the correct properties (ie. java.util.Date, etc ). You have to

Re: Repopulating a form after an error in Validate

2003-01-06 Thread Rick Reumann
On Monday, January 6, 2003, 9:23:04 AM, Samir wrote: SS The problem is when the user is sent back to SS the input screen on error, it is not finding the SS required Javabeans in the request object and is SS failing to create the form with the data. I know we started working on this on Friday.

Re[2]: Repopulating a form after an error in Validate

2003-01-06 Thread Rick Reumann
On Monday, January 6, 2003, 10:46:10 AM, Samir wrote: SS Ok, here are the relevant pieces of information SS !-- Step 1 Action, this takes you to form to edit -- SS actionpath=/gotoStep1 SStype=com.fdl.quoteweb.GotoStep1Action SSscope=request

Re: Please Help! Nested form property attributes.

2003-01-06 Thread Rick Reumann
On Monday, January 6, 2003, 12:44:38 PM, Paul wrote: PI rootCause PI java.lang.IllegalArgumentException: argument type mismatch at PI sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at PI sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39 snip PI What do

Re: html:options question

2003-01-06 Thread Rick Reumann
On Monday, January 6, 2003, 2:14:38 PM, Gus wrote: GD html:select name=editUserForm property=accessType GDhtml:options collection=accessTypeList property=value GD labelProperty=label/ GD /html:select GD Example. the options are Read-only, Admin, and Analyst that's the GD order of the

Re: Need logic:equal tag help

2003-01-06 Thread Rick Reumann
On Monday, January 6, 2003, 2:41:02 PM, Jordan wrote: JT Hi, JT I am wanting to use a logic:equal tag inside an interate tag like this JT logic:iterate id=permission name=permissions indexId=idx JT logic:equal scope=page name=idx value=request.permissionsSize JT blah blah... JT

Re[2]: Need logic:equal tag help

2003-01-06 Thread Rick Reumann
On Monday, January 6, 2003, 2:59:41 PM, Rick wrote: RR Did you try: RR logic:iterate id=permission name=permissions indexId=idx RRlogic:equal name=permissionsSize value=idx RR blah blah... RR/logic:equal RR /logic:iterate Sorry to have tried to help so soon, the above that

Re[3]: Need logic:equal tag help

2003-01-06 Thread Rick Reumann
On Monday, January 6, 2003, 3:26:26 PM, Rick wrote: RR To avoid the scriplet though I think you are going to have to use the RR logic-el tag, but possibly someone else has a better solution. Actually logic-el wouldn't be what you want either. I think if you just used the JSTL choose and when

Re: scope

2003-01-06 Thread Rick Reumann
On Monday, January 6, 2003, 6:57:15 PM, ex1) wrote: LDHBe The jsp containing the html:option tag is the last thing the request is LDHBe forwarded to The forwarded page does not have access to the request any longer. If you want to have access to what was selected on the form page and then

[OT] some log4j problems using RollingFileAppender not creating a backup file

2003-01-03 Thread Rick Reumann
I know this isn't a struts question, but the log4j list seems pretty dead that I posted this to and I've searched and searched for some answers and I'm desperate now:). Maybe someone else using log4j in their struts apps has run into this problem... I'm using log4j 1.2.7jar and Tomcat 4.0.6 on

Re: DynaValidatorForm data not repopulating

2003-01-03 Thread Rick Reumann
On Friday, January 3, 2003, 11:04:08 AM, Samir wrote: SS PROBLEM: The problem is it fails to draw the form SS with the information. basically no form in drawn. Is absolutely nothing drawn or is the html form drawn but just the fields aren't filled back in with what the user selected? Stupid

Re[2]: [OT] some log4j problems using RollingFileAppender not creati ng a backup file

2003-01-03 Thread Rick Reumann
On Friday, January 3, 2003, 11:27:08 AM, Bill wrote: SB Rick,I have had this working with Log4j 1.2.6 on both solaris SB and windows. I saw your post on the struts-atlanta group about SB this and noting some possible windows file locking issue. Have SB you tried a different path to see if

Re[4]: [OT] some log4j problems using RollingFileAppender not creati ng a backup file

2003-01-03 Thread Rick Reumann
On Friday, January 3, 2003, 12:11:48 PM, Bill wrote: SB Are you saying that when it reaches 2K it is creating a new SB backoffice.log but not creating the archive (backup) copy? Yes exactly. It doesn't create the archive(backup) copy. (And actually it doesn't 'always' seem to even create a

Re[6]: [OT] some log4j problems using RollingFileAppender not creati ng a backup file

2003-01-03 Thread Rick Reumann
On Friday, January 3, 2003, 1:56:38 PM, Bill wrote: SB Do you have a Windows Explorer window open on that folder? I have SB found that Windows explorer can hold locks this way. Even with everything closed except the web browser, the archive file is not being created. It does seem to

[SOLVED] Re[8]: [OT] some log4j problems using RollingFileAppender not creati ng a backup file

2003-01-03 Thread Rick Reumann
On Friday, January 3, 2003, 2:35:41 PM, Bill wrote: SB One wierd thing I noticed was that it seemed like WLS only picked SB up my new log4j.properties when I hot deployed my webapp -- but SB not when I restarted WLS -- WLS has always been flakely when it SB comes to deployment. Well Bill

Re: REPOST: Forcing the ActionForm to populate a field before the other

2003-01-02 Thread Rick Reumann
On Thursday, January 2, 2003, 10:10:32 AM, Toni wrote: TC I would like to have a setter method called before another. TC What's the best way to do that in the ActionForm Do you mean in a FormBean you are using with an Action that is populated when you submit? If so I'm not certain how you would

Re: [OT] IntelliJ sale

2002-12-31 Thread Rick Reumann
On Tue, 31 Dec 2002 09:39:09 -0700 Larry Young [EMAIL PROTECTED] wrote: Does anyone have an opinion on the Eclipse IDE product? I've been using IDEA for awhile now and am having problems using Eclipse, it just doesn't seem intuitive to me, and their popup menus are buggy. However, I'd like

Re: [OT] IntelliJ sale

2002-12-31 Thread Rick Reumann
On Tue, 31 Dec 2002 05:20:22 -0500 Ted Husted [EMAIL PROTECTED] wrote: http://intellij.com/idea/ Best IDE hands down in my opinion. I have a question though... I've only used it on Windows and now I'm using Linux at home (SuSE 8.1) and can't get it to work. Maybe someone smart can decipher

Re: java.util.Dates and Struts

2002-12-23 Thread Rick Reumann
On Mon, 23 Dec 2002 11:49:04 -0500 Jim Krygowski [EMAIL PROTECTED] wrote: This is my test: ... String input = null; // check to make sure the datatype is right input = 2002-03-17; Date dateValue = (Date)ConvertUtils.convert(input, Date.class);

Re: java.util.Dates and Struts

2002-12-23 Thread Rick Reumann
On Mon, 23 Dec 2002 12:32:13 -0500 Jim Krygowski [EMAIL PROTECTED] wrote: It seems like the only way things work out properly in the rendering phase is to have a ValueObject that contains the Date properties and an ActionForm that has a String for each Date on the ValueObject. This is what I

Re: java.util.Dates and Struts

2002-12-23 Thread Rick Reumann
On Mon, 23 Dec 2002 13:33:59 -0500 Jim Krygowski [EMAIL PROTECTED] wrote: As regards the tags, I would like to render an html input type=text. As far as I know, you can't nest tags so... html:text name=myForm property=myDate value=fmt:formatDate pattern=MM/dd/yy

Re: [OT] HAPPY HOLIDAYS, EVERYONE

2002-12-23 Thread Rick Reumann
On Mon, 23 Dec 2002 19:41:02 -0800 (PST) Craig R. McClanahan [EMAIL PROTECTED] wrote: not-giving-a-rip-about-political-correctness Let us all spend some time this joyous season reflecting on the magnitude of a God that would bother to create the likes of us, and His willingness to sacrifice

Re: [OT] HAPPY HOLIDAYS, EVERYONE

2002-12-23 Thread Rick Reumann
On Tue, 24 Dec 2002 01:10:28 -0500 James Mitchell [EMAIL PROTECTED] wrote: Oh WOWthat is really good. I think I'll post it to the Wiki http://nagoya.apache.org/wiki/apachewiki.cgi?MerryChristmas I wonder when my wife and I have kids if she'll let me read that version to them by the

Re: OptionsCollection and default value

2002-12-22 Thread Rick Reumann
On Sun, 22 Dec 2002 15:01:42 -0500 John Menke [EMAIL PROTECTED] wrote: html:select property=taskCodeTypehtml:optionsCollection property=taskCodeTypeOptions //html:select MY JSP WILL RUN AND POPULATE THE SELECT TAG CORRECTLY, BUT IT DOESN'T CHOOSE THE CORRECT INITIAL VALUE. IE. THE

Re: OptionsCollection and default value

2002-12-22 Thread Rick Reumann
On Sun, 22 Dec 2002 18:39:05 -0500 John Menke [EMAIL PROTECTED] wrote: I have to get JSP debugging setup to do that. Do you know if eclipse supports JSP debugging with Tomcat? Actually first just to appease me/us do a bean:write property=taskCodeType right before you do the select

Re: javascript and STRUTS

2002-12-20 Thread Rick Reumann
On Friday, December 20, 2002, 3:29:15 PM, Eric wrote: ECH Is there anyway to capture the value of the bean before it is overwritten? Since your using javascript coulnd't you set a hidden field oldValue that you can set before you do any overwriting? Then you would have access to the old value

Re: Simple Custom Validation Example Request

2002-12-18 Thread Rick Reumann
On Wednesday, December 18, 2002, 9:36:33 AM, Jeremy wrote: WJ Could someone post the very simplest example of some custom WJ validation code. I am still having problems with my code as WJ explained in previous post below. Maybe if I start of smaller I WJ could make some sense of whats going on.

Re[2]: Simple Custom Validation Example Request

2002-12-18 Thread Rick Reumann
On Wednesday, December 18, 2002, 11:18:06 AM, Jeremy wrote: WJ Still no go. I had some problems with my package paths etc., but WJ that wasnt the cause either. The default validations do work but WJ do I need to do anything else in struts-config.xml? When trying to debug validation

Re: Iterate tag Tomcat 4.1.12, issue or no?

2002-12-15 Thread Rick Reumann
On Sun, 15 Dec 2002 15:39:23 -0500 Mark Conlin [EMAIL PROTECTED] wrote: %= messages.size() % logic:iterate id=myMessage collection=%=messages% %= myMessage.getSubject() % /logic:iterate Try collection=messages (without the scriplets). -- Rick -- To

Re: logic:iterate

2002-12-14 Thread Rick Reumann
On Sat, 14 Dec 2002 16:32:07 -0500 Cathy [EMAIL PROTECTED] wrote: I am using pager tag library from http://jsptags.com/tags/navigation/pager/ I use the display tag here http://edhill.its.uiowa.edu/display-0.8/ and it works great. Very easy to use also. -- Rick -- To unsubscribe,

Best way to handle this in Struts/MVC ?

2002-12-12 Thread Rick Reumann
For all of my forms I have an appropriate DynaValidatorForm bean defined in my struts-config file. This form eventually populates a bean (Data Transfer Object) that corresponds to the form bean but with the correct data types (ie java.util.Date birthDate vs String birthDate ). The question I have

Re[2]: Best way to handle this in Struts/MVC ?

2002-12-12 Thread Rick Reumann
On Thursday, December 12, 2002, 1:31:08 PM, Wendy wrote: WS I have a 'dto' package which has the beans that are really intended to WS transport data in both directions. Then I have 'dto.custom' in which all WS the classes are named with View in the name. These are only for display. I was

Re: Struts design: All actions in one ActionClass

2002-12-11 Thread Rick Reumann
On Wednesday, December 11, 2002, 1:05:36 PM, Jordan wrote: JT a) Put all my actions for a particluar area (i.e. creating, editing and JT deleting user accounts) in one Action class I guess I am in the minority here but lately I've been building one big DispatchAction class that acts as

Re[2]: Struts design: All actions in one ActionClass

2002-12-11 Thread Rick Reumann
On Wednesday, December 11, 2002, 4:16:31 PM, Rob wrote: RL One of the developers that took over the project merged a number of the RL actions RL edit, delete, create, list into one big ugly mess. Was this all being done a 'normal' action class or a DispatchAction class? I think a

Re: Error using Validator (newbie)

2002-12-11 Thread Rick Reumann
On Wednesday, December 11, 2002, 5:53:54 PM, Michelle wrote: MH However, the Struts 1.1 gives more information and says that the root MH cause is because java.lang.NoSuchFieldError: MH org.apache.commons.validator.Validator: field SERVLET_CONTEXT_KEY not MH found. Double check that all

Re: action to jsp form to action and validation failure problem.

2002-12-11 Thread Rick Reumann
Im new to structs so please be gentle. I have an action that forwards onto a jsp page with a form. When the form buttons are pressed a different action is called. Action1 --- testform.jsp --- Action2 All works fine if the form passes validation. When the form fails

Re[2]: Using the key of a HashMap in an html:option tag ?

2002-12-10 Thread Rick Reumann
On Tuesday, December 10, 2002, 12:39:26 PM, Vinh wrote: VT have you tried this? VT html:option name=element value=key Tried that, but name is an invalid attribute of html:option. I must be missing something simple here. There has to be a way to get the value of the key set as the

Re[2]: Using the key of a HashMap in an html:option tag ?

2002-12-10 Thread Rick Reumann
On Tuesday, December 10, 2002, 2:21:36 PM, Kris wrote: KS You may have to cast element: KS %= ((java.util.Map.Entry)element).getKey() % Thanks Kris! Yes that's exactly what I had to do (mostly). I say mostly, because so many times I've been bitten in the butt by this and I'm not

Re[4]: Using the key of a HashMap in an html:option tag ?

2002-12-10 Thread Rick Reumann
On Tuesday, December 10, 2002, 5:06:26 PM, Kris wrote: KS Glad it's working, but I don't understand why you'd have a problem with the JSP KS expression. IIRC, it's equivalent to the following code getting generated within KS the page's _jspService method: Trust me I don't know either. I'm

Re[2]: Best Practices for Logging?

2002-12-10 Thread Rick Reumann
I apologize, I haven't been following this whole thread, but I'm wondering if what I've implemented is a poor solution. For a particular app called taskmanager I created a Logging class which is pretty small and looks like this: public class Logging { static Category log =

Re: Re[2]: Best Practices for Logging?

2002-12-10 Thread Rick Reumann
On Tue, 10 Dec 2002 17:34:10 -0800 (PST) Craig R. McClanahan [EMAIL PROTECTED] wrote: If I'm understanding what you are doing correctly, doesn't this make the logging level global to all logging in your application? The approach Struts uses internally (essentially a category name per class)

Re[2]: java Beautiful

2002-12-05 Thread Rick Reumann
On Thursday, December 5, 2002, 9:47:46 AM, Andrew wrote: AH Eclipse (an IDE): http://www.eclipse.org/ AH Jalopy (code formatter): AH http://jalopy.sourceforge.net/ The Jalopy plugin and many other coding style plugins are also available for JEdit as well (already mentioned the

Opinions wanted on best practice for passing in search criteria to sql?

2002-12-05 Thread Rick Reumann
I would appreciate any comments as to whether this is an 'ok' design practice and/or suggestions on a better way to handle this... For a simple example picture a case where an administrator can enter inventory items. Admins would also want the ability to see a view of inventory items based on

Re: How to use bean:write for arrays (String[]) ?

2002-11-18 Thread Rick Reumann
On Monday, November 18, 2002, 6:35:52 PM, Zsolt wrote: ZK logic:iterate id=field indexId=counter name=rows ZK type=java.lang.Object[] ZK bean:write I'm pretty sure you could just do bean:write name=field/ as you are iterating (assuming the Object[] array in this example

[ANNOUNCE] display tag- added columns functionality

2002-11-12 Thread Rick Reumann
In recent weeks I've noticed several people inquire about Ed Hill's awesome display tag http://edhill.its.uiowa.edu/display-0.8/ and the ability to only display certain columns. I modified the jar and tld so that you can now provide a columnsToDisplay attribute in the display:table tag.

Re: Ted, et al, Struts Book

2002-11-07 Thread Rick Reumann
On Thursday, November 7, 2002, 1:19:33 PM, micael wrote: m I have been into the online version a bit, and am loving it. How m do we get credit when ordering the hard copy? The site mentions m the credit but seems to have no mechanism that is obvious. Did you find out any more info on

Re[2]: java.util.Date

2002-11-06 Thread Rick Reumann
On Wednesday, November 6, 2002, 3:21:28 PM, Antoni wrote: AR Keep in mind that DateFormat (and SimpleDateFormat) is not thread safe so you AR have to be very careful when reusing them. I like Max's suggestion though. I think I will move it to the setFormatPattern for sure. Correct

Re[2]: java.util.Date

2002-11-06 Thread Rick Reumann
On Wednesday, November 6, 2002, 4:47:32 PM, Eddie wrote: EB static blocks are run with the class - right? So it's really EB irrelevant how many instances get created - that code is run a EB maximum of one time - when the class is first loaded. EB Am I wrong? Right that's what I was

Re[4]: java.util.Date

2002-11-06 Thread Rick Reumann
On Wednesday, November 6, 2002, 4:05:45 PM, Antoni wrote: AR Hi, I don't speak english very very well, so this is a bit AR difficult for me to explain, but I'll try ;-) No problem. Most American's don't speak English very well (including myself I'm sure:) AR I have'nt looked at

Re[6]: java.util.Date

2002-11-06 Thread Rick Reumann
On Wednesday, November 6, 2002, 4:51:58 PM, Antoni wrote: AR The problem is that during execution of SimpleDateFormat.parse some private AR fields of SimpleDateFormat are modified. A yes thank you. I bet I have this problem in other pieces of my code as well. What would you

Re[6]: java.util.Date

2002-11-06 Thread Rick Reumann
On Wednesday, November 6, 2002, 4:31:09 PM, Kris wrote: KS The creation of the converters and their registration can KS obviously be accomplished in a thread-safe manner, but if multiple KS threads call into parse and/or format at the same time, this will KS cause a problem. If that's not what

Re[2]: java.util.Date

2002-11-06 Thread Rick Reumann
On Wednesday, November 6, 2002, 6:51:22 PM, Wendy Smoak wrote: WS Rick, thanks for posting this! I almost missed it, but caught Max's reply. WS You say that the default BeanUtils.copyProperties works fie with WS java.sql.Date, but I find that I still have a problem unless the user types WS in

Re[2]: Nested Tags situation any light would be appreciated

2002-11-04 Thread Rick Reumann
-Original Message- SS From: Rick Reumann [mailto:maillist;reumann.net] SS Sent: Monday, November 04, 2002 10:20 AM SS To: Struts List SS Subject: Nested Tags situation any light would be appreciated SS Sorry to repeat this question... possibly some fresh Monday blood could help... SS I'm

Re[4]: Nested Tags situation any light would be appreciated

2002-11-04 Thread Rick Reumann
On Monday, November 4, 2002, 2:33:26 PM, Sri wrote: SS Rick: I think the problem is in how you are initializing your SS objects. In particular the problem is where you call the SS setCarList() method. Both Persons are getting a reference to the SS same list. In other words you have only one

Re[6]: Nested Tags situation any light would be appreciated

2002-11-04 Thread Rick Reumann
On Monday, November 4, 2002, 3:16:31 PM, Sri wrote: SS Without going into why would you want to set them to false I'd SS urge you to use your action. This way, the logic isn't coupled SS with the bean but with the action that presents it. SS I would give serious thought into whether you

Re: What Are Doing with DynaActionForm

2002-11-04 Thread Rick Reumann
On Monday, November 4, 2002, 5:53:52 PM, Mark wrote: MA What are other people using to extract and map data out of the DynaActionForm ? I use BeanUtils.copyProperties(..) to copy the properties from my DynaActionForm into my Model layer bean. In the action just do:

Re[2]: What Are Doing with DynaActionForm

2002-11-04 Thread Rick Reumann
On Monday, November 4, 2002, 6:13:28 PM, Mark wrote: MA Rick I read your email and had an Ahh Moment ! Thats quite elegent MA and now less lines of code to maintain. Are there any caveats to MA doing this. Only caveat is I ran into some headaches when dealing with converting

java.util.Date

2002-11-04 Thread Rick Reumann
I'm posting this with a different subject line so it will hopefully come up in the archives if someone needs to search for it. I posted a solution a while ago and since that time several have asked about it but searching through the archives myself doesn't bring it up the post, so here's a

[NESTING] help appreciated- first collection is populating the others

2002-11-01 Thread Rick Reumann
I'm stumped here what I'm screwing up and would appreciate any help. I'm playing around using nested tags and for this simple example I have: Form Bean ArrayList people people is populated with Person beans Each Person bean has the field String name;

Re: Problems with nesting....

2002-10-31 Thread Rick Reumann
On Thursday, October 31, 2002, 11:31:15 AM, Sriram wrote: SH javax.servlet.jsp.JspException: Property 'recordList' is not indexed. I haven't seen this error before... just guessing .. are you sure recordList is a collection of some sort? -- Rick mailto:maillist;reumann.net -- To

[J2EE] Does struts follow Sun's Core J2EE patterns

2002-10-22 Thread Rick Reumann
Over lunch I was discussing struts with someone that works at another company. He hasn't implemented struts at all but only has looked at some articles, and doesn't see what all they 'hype' is about. In his opinion, building a j2ee controller that follow's Sun's J2EE pattern is not that difficult

Re: AW: BeanUtils.copyProperties(formBean, javaBean) not converting S trin g dates to java.util.Date dates

2002-10-19 Thread Rick Reumann
Hi, Struts1.1b2: BeanUtils.copyProperties(formBean, javaBean) not converting String properties into Dates: It will not covert them into java.util.Date. You need to create a Converter class to do it an register it. I just went through all this with Eldercle who posted to this

[ConvertUtils] Converter for java.util.Date

2002-10-18 Thread Rick Reumann
Hey Elder, (posting this to Struts list as well in case anyone else finds it useful while digging through the archives) I modified the code you sent just a bit and also provided a method taking a format String for how they want the date formatted (actually someone might want to modify the code

Am I the only one using java.util.Date?

2002-10-16 Thread Rick Reumann
My business layer bean has a field as java.util.Date (example: birthDate). My form bean uses the String for this date (in this example.. String birthDate). The problem is I can't seem to use BeanUtils to copy the properties since it appears BeanUtils will only convert a java.sql.Date by default

Re[2]: Am I the only one using java.util.Date?

2002-10-16 Thread Rick Reumann
On Wednesday, October 16, 2002, 12:28:15 PM, James wrote: JH If you search the list archives at www.mail-archive.com, I think JH you will find your question answered. Pappa Struts (Craig) JH answered it, as did other folks. Can you please show me where this is the case? Before my

Re[4]: Am I the only one using java.util.Date?

2002-10-16 Thread Rick Reumann
On Wednesday, October 16, 2002, 1:19:01 PM, James wrote: JH Simple search for date conversion: JH http://www.mail-archive.com/cgi-bin/htsearch?method=andformat=shortcon JH fig=struts-user_jakarta_apache_orgrestrict=exclude=words=date+convers JH ion James, I posted myself many times in

Re[2]: Am I the only one using java.util.Date?

2002-10-16 Thread Rick Reumann
On Wednesday, October 16, 2002, 12:40:01 PM, kiuma wrote: k Since I'm connected to jboss I use java.sql.Date. k Then I pass values in millis and use a GregorianCalendar to manage dates. Thank you, but that's not really my question. I'm wondering more how others deal with getting their

Re: RES: Re[4]: BeanUtils and java.util.Date

2002-10-16 Thread Rick Reumann
On Wednesday, October 16, 2002, 5:54:50 PM, Elderclei wrote: ERR Here is the horrible piece of code for the converters: Hi. I can get a nice Date converter to work but how can you use BeanUtils to go the other way -converting your business bean java.util.Date to a String in

Re[4]: BeanUtils and java.util.Date

2002-10-16 Thread Rick Reumann
On Wednesday, October 16, 2002, 7:06:45 PM, Elderclei R Reami wrote: ERR That's why I include the horrible if statement in ERR StringConverterDateDecorator. ERR if (type==String.class value.getClass()==Date.class) ERR { ERR /* do

question about using ConvertUtils

2002-10-15 Thread Rick Reumann
Craig, I'm still having a bit of trouble trying to use BeanUtils to copy java.util.Date properties. It appears that it will work fine by default with java.sql.Date but isn't set up by default for java.util.Date (which I'm using for Dates in my business bean). I build a class implements Converter

Re[2]: Struts forms best practice

2002-10-11 Thread Rick Reumann
On Friday, October 11, 2002, 12:59:31 PM, Craig wrote: CRM Form bean properties should generally be Strings, so that you can CRM redisplay whatever the user actually typed. Do your conversions in the CRM Action after validation is complete -- in 1.1b2 and later, you can use CRM

Re[3]: Struts forms best practice

2002-10-11 Thread Rick Reumann
On Friday, October 11, 2002, 2:02:11 PM, Craig wrote: CRM * Form bean property is a String. SNIP CRM * Value/DTO objects would use the native data types CRM (java.util.Date in this case). Property name would CRM be the same birthDate. SNIP CRM * Either use a copyProperties method or

Re[4]: Struts forms best practice

2002-10-11 Thread Rick Reumann
On Friday, October 11, 2002, 2:58:44 PM, Craig wrote: CRM Without knowing what crap out on me means, it's impossible to diagnose CRM this. Are you getting an exception so you can look at a stack trace? I didn't know BeanUtils.copyProperties() should be able to take a String date and

<    1   2   3   4   5   >