RE: How to use tiles for Error Pages?

2003-10-10 Thread David G Friedman
Eric, If the page isn't accessed through a struts action, you need to insert the tiles definition before your tiles:insert commands like so: tiles:insert definition=track.default/ Regads, David -Original Message- From: Fenderbosch, Eric [mailto:[EMAIL PROTECTED] Sent: Friday, October

RE: Versioning Problem?

2003-10-08 Thread David G Friedman
Do you have a file WEB-INF/classes/ApplicationResources ? According to the name you put in your struts-config.xml file, that is where it should be. If it were resources.ApplicationResources then it would be in WEB-INF/classes/resources/ApplicationResources. Also, you program might not work if you

RE: can not get forward page in an action

2003-10-03 Thread David G Friedman
You are seem to be trying to access Struts actions and tiles in a few incorrect ways. You are using a few struts tags incorrectly. When you use the html tags, you normally need to go through an action first so it can setup the ActionForm automatically. Otherwise, you'll probably have a null

RE: can not get forward page in an action

2003-10-03 Thread David G Friedman
. Katelyn --- David G Friedman [EMAIL PROTECTED] wrote: You are seem to be trying to access Struts actions and tiles in a few incorrect ways. You are using a few struts tags incorrectly. When you use the html tags, you normally need to go through an action first so it can setup

RE: DisplayTag library

2003-09-26 Thread David G Friedman
Tim, I know what you mean. Are you talking version 0.8.5 or 1.0-b1? The 0.8.5 are offically: http://edhill.its.uiowa.edu/display The 1.0-b1 are: http://displaytag.sourceforge.net/ With downloads that don't seem to include pre-built (i.e. html, just xml) javadocs. I downloaded them a few

RE: URGENT - not finding applications.properties

2003-09-26 Thread David G Friedman
Are you struts related .jar files all locally loaded under your application in WEB-INF/lib or are they in a common shared area for your application server? Regards, David -Original Message- From: David Thielen [mailto:[EMAIL PROTECTED] Sent: Friday, September 26, 2003 1:26 PM To:

RE: DisplayTag library

2003-09-26 Thread David G Friedman
Tim, That class documentaiton reads that you should implement the new ColumnDecorator interface on your object. I think that's convenient, to keep the decorator in your class object. Regards, David -Original Message- From: Slattery, Tim - BLS [mailto:[EMAIL PROTECTED] Sent: Friday,

RE: DisplayTags

2003-09-26 Thread David G Friedman
Tim, The StringEscapeuytils class is in the commons-lang-2.0.jar included under the displaytag-1.0-b1-examples.war in the displaytag-1.0-b1-bin.zip download, if you're using the 1.0-b1 release. :) Regards, David -Original Message- From: Slattery, Tim - BLS [mailto:[EMAIL PROTECTED]

RE: Know of any good Calendar Tag Libraries? (Sorry, that was Aug 21)

2003-09-25 Thread David G Friedman
the following on 25/09/2003 4:15 AM: I'm aware of Matt's Library (and I love it), but I don't want a pop-up, I want an in-page calendar. Matt -Original Message- From: David G Friedman [mailto:[EMAIL PROTECTED] Sent: Wednesday, September 24, 2003 4:37 PM To: Struts Users Mailing

RE: [OT] RE: Know of any good Calendar Tag Libraries? (Sorry, that was Aug 21)

2003-09-25 Thread David G Friedman
it seems to be lacking is having the date highlighted when that date has an associated event. Other than that it's tight. -= J -Original Message- From: David G Friedman [mailto:[EMAIL PROTECTED] Sent: Thursday, September 25, 2003 10:26 AM To: Struts Users Mailing List Subject: RE: Know

RE: problem with String[] [SOLVED] ? was hibernate the issue

2003-09-24 Thread David G Friedman
I'd like to know what your Hibernate problem was since I'm using hibernate and never had a problem with it saving data, unless I had the wrong information in the object, causing a Hibernate Exception, which I caught. Do you have show_sql=true in your hibernate.properties or hibernate.cfg.xml

RE: ApplicationResources.properties

2003-09-24 Thread David G Friedman
I'm haunted too. I changed a hibernate class, had to fix a few action classes to work with it, and suddenly my validation framework (hell, my whole application, cannot see my message resources, the struts-config.xml (only one, no modules), validation.xml, and JSP are unchanged. My message

RE: ApplicationResources.properties

2003-09-24 Thread David G Friedman
- From: David G Friedman [mailto:[EMAIL PROTECTED] Sent: Wednesday, September 24, 2003 5:24 PM To: Struts Users Mailing List Subject: RE: ApplicationResources.properties I'm haunted too. I changed a hibernate class, had to fix a few action classes to work with it, and suddenly my validation

RE: Know of any good Calendar Tag Libraries?

2003-09-24 Thread David G Friedman
What about Matt Kruse's (very) beta taglib mentioned Sept 9? http://www.mattkruse.com/javascript/javascripttoolbox.zip I wonder if it's any further along. -David -Original Message- From: Matt Raible [mailto:[EMAIL PROTECTED] Sent: Wednesday, September 24, 2003 6:23 PM To: '[EMAIL

RE: Know of any good Calendar Tag Libraries? (Sorry, that was Aug 21)

2003-09-24 Thread David G Friedman
What about Matt Kruse's (very) beta taglib mentioned August 21st? http://www.mattkruse.com/javascript/javascripttoolbox.zip I wonder if it's any further along. -David -Original Message- From: Matt Raible [mailto:[EMAIL PROTECTED] Sent: Wednesday, September 24, 2003 6:23 PM To: '[EMAIL

RE: Know of any good Calendar Tag Libraries? (Sorry, that was Aug 21)

2003-09-24 Thread David G Friedman
Message- From: David G Friedman [mailto:[EMAIL PROTECTED] Sent: Wednesday, September 24, 2003 4:37 PM To: Struts Users Mailing List Subject: RE: Know of any good Calendar Tag Libraries? (Sorry, that was Aug 21) What about Matt Kruse's (very) beta taglib mentioned August 21st? http

RE: [OT] Lightweight helper libraries for reporting?

2003-09-19 Thread David G Friedman
Joe, I've been planning on using the displaytag library for that stuff when I get to it next week. Why won't the decorator classes work for you to perform summations of rows, groups, and so forth? I'm wondering why it won't work for you in case the same reasons might apply to my application

RE: [OT] OutOfMemoryError when I have plenty of heap

2003-09-17 Thread David G Friedman
Casey, I asked the same question on August 20th an received the below answer from David Graham. I believe the bug was with reloading (stop/start) of Tomcat apps not fully releasing properties. I was developing and seeing this problem after about 20 or so stop/start actions. I still haven't

RE: DynaValidatorForm and Multi-page validation

2003-09-15 Thread David G Friedman
Anand, The DynaValidatorForm already has a getPage()/setPage() set of functions. Just use those. My common two problems were a little different: a) forgetting to use the 'page=X' in my html:javascript tag b) forgetting to use the formName=someFunctionName in the

RE: suggestion: RequestProcessor hooks/plugins instead of subclassing?

2003-09-12 Thread David G Friedman
Why can't you use Struts 1.1 with modules, and set the RequestProcessor for each module using the controller element? In what way would that method fail your needs? Regards, David -Original Message- From: ll [mailto:[EMAIL PROTECTED] Sent: Friday, September 12, 2003 12:45 PM To: [EMAIL

RE: logic forward problem

2003-09-11 Thread David G Friedman
Your path looks like a tile. I wrote about this problem a week or two ago and you should've been able to find it in the archives of this group. It is documented on the logic forward tag as: Note: forwarding to Tiles definitions is not supported from this tag. You should forward to them from an

RE: logic forward problem

2003-09-11 Thread David G Friedman
- From: Van Riper, Mike [mailto:[EMAIL PROTECTED] Sent: Thursday, September 11, 2003 3:45 PM To: Struts Users Mailing List Cc: 'David G Friedman'; [EMAIL PROTECTED] Subject: RE: logic forward problem -Original Message- From: David G Friedman [mailto:[EMAIL PROTECTED] Sent: Thursday

javascript with struts nested fields?

2003-09-10 Thread David G Friedman
In an html page, is there a way to reference a nested form variable without using array subscripts? In the web page the client sees, it gets the below: input type=text name=order.program value=108 I want a pop-up calendar window button next to it that populates that field with the selected

RE: JavaScript with struts nested fields?

2003-09-10 Thread David G Friedman
To: [EMAIL PROTECTED] Subject: Re: javascript with struts nested fields? Why don't you use just formName[order.program] ? David G Friedman [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] In an html page, is there a way to reference a nested form variable without using array

RE: Help in HttpServletRequest

2003-09-10 Thread David G Friedman
Alvin, I had worries when I did my first file upload a few weeks ago. I used a FormField type as my FormBean field and then it was a simple read and copy, like in the struts upload example which used the commons upload. The approach is different from your below, but the file upload example was

RE: What's the best strategy to handle this kind of thread issues?

2003-09-10 Thread David G Friedman
snip In IE5 (which is what Id been developing with) the code caused no problems, but in IE6 clicking the submit button would cause a natural submit to occur AND my javascripts submit() would also work, resulting in a second request swiftly following the first (and generally resulting in a error).

Out of Memory Error on Struts 1.1, Tomcat 4.1.27, Linux JDK 1.4.2?

2003-08-20 Thread David G. Friedman
As you may know from my posts, I'm new to Struts. So, I'm compiling a little, reloading my app, compiling more, loading my app, and so forth. Somewhere between reloads ('stop' and then 'start', not 'reload' in the Tomcat manager), 20 to 30, I end up getting tomcat errors about being 'Out of

Re: login request

2003-08-20 Thread David G. Friedman
Dear Andy, I'm doing the same thing you suggest. My approach is to extend the base Action (or any type of Action) class by adding a functon 'checkLogin'. It takes the 'request' as the argument, checks the session for a User bean, and throws an exception if the bean is missing or if the ID

Re: Re: Out of Memory Error on Struts 1.1, Tomcat 4.1.27, Linux JDK 1.4.2?

2003-08-20 Thread David G. Friedman
There's a bug report on this issue: http://nagoya.apache.org/bugzilla/show_bug.cgi?id=14042 This only happens when reloading the app and will be fine in production. Figures I'd miss that one reference: bugzilla. Well, at least apache/mod_jk2 will let me use another Tomcat instance so I can

Re: File Upload Data

2003-08-20 Thread David G. Friedman
Steven, I had a problem like that where nothing was being uploaded because my form enctype was not set to 'multipart/form-data'. Then again, the problem was when I was programming in Perl under Apache + NT and migrating it to Perl under Apache + Linux, so it's not quite the Struts-Upload

RE: Form Post to HTTPS (yes, a little OT)

2003-08-15 Thread David G. Friedman
I will have the need to send out an HTTPS Post (PayFlow Link or PayPal) and read the returned page. PayPal has an unsupport page of CGI's which include Java code for doing that. You might be able to customize it for yourself. I'll be trying it in the next two weeks or so I hope

RE: Struts 1.1: what's the preferred way to use databases?

2003-08-14 Thread David G. Friedman
I can attest to hibernate being clear and pretty easy. I got it working for my Login application the other night along with simple use of tiles, validation, and exceptions. I'm just working on a facade for it/me. David ---Original Message--- From: Steve Raeburn [EMAIL PROTECTED]

Re: Tiles status and feature suggestion WAS accessing Attribute of a parent-tile-definition

2003-08-14 Thread David G. Friedman
o Firstly, Tiles assumes that a page is composed of multiple content areas where you have one piece of content to an area. This is true for a simplistic site For my complex pages, I plan on using the Tiles built-in 'putList' tag to add a handful of JSP's to a particular section of one

Re: RE: RE: validating a html:select box

2003-08-14 Thread David G. Friedman
) but I saw that it only checks for the range if the field is a text or textarea. Is this true? How can I perform the client validation for selection boxes? Change the javascript? Erez -Original Message- From: David G. Friedman [mailto:[EMAIL PROTECTED] Sent: Wednesday, August 06, 2003 5:22 PM

RE: [OT] Rendering Large ResultSet - Value List Handler Design Pa ttern

2003-08-14 Thread David G. Friedman
Ibatis? Bah humbug. I just jumped for joy because I got Hibernate (v2) working for a simple Struts login application I made (step 1 of many in my project). No, don't ask to see my facade (not made yet) or my action (looks ugly without a facade). Regards, David ---Original Message---

Re: validating a html:select box

2003-08-14 Thread David G. Friedman
Erez, The Struts Validator has an intRange function. It's in the Validator User Guide: http://jakarta.apache.org/struts/userGuide/dev_validator.html Here's an example from that page so you can set your min max as 1 12 to prevent the zero (label month?) from being submitted: field

Re: RE: sorry to bother you

2003-08-14 Thread David G. Friedman
submit it. You can even set a hidden field that indicates you updated the vehicle number stored in the JavaScript variable initialVehicle. Regards, David ---Original Message--- From: Khalid K. [EMAIL PROTECTED] Sent: 08/07/03 01:33 AM To: 'David G. Friedman' [EMAIL PROTECTED] Subject: RE

Re: RE: validating a html:select box

2003-08-14 Thread David G. Friedman
send a value? Thanks, Erez -Original Message- From: David G. Friedman [mailto:[EMAIL PROTECTED] Sent: Wednesday, August 06, 2003 4:59 PM To: Struts Users Mailing List Subject: Re: validating a html:select box Erez, The Struts Validator has an intRange function. It's in the Validator

Re: Re: Tiles status and feature suggestion WAS accessing Attribute of a parent-tile-definition

2003-08-08 Thread David G. Friedman
o Firstly, Tiles assumes that a page is composed of multiple content areas where you have one piece of content to an area. This is true for a simplistic site Though I'm new to Struts and Tiles, I planned on using the putList tag to add a group of items/jsp's to a section of the page by

Re: Struts with Tomcat 4.1.27 ?? (YES)

2003-08-07 Thread David G. Friedman
Do Struts works with Tomcat 4.1.27 ? Yes. I just saved my webapps struts-*WHATEVER* applications (and my tomcat-users.xml ids/passwords), erased my tomcat-4.1.24, installed 4.1.27, and started the new one in under 5 minutes time. My application, the struts example application, and a few

Re: RE: Location of JSPs for TILES

2003-08-06 Thread David G. Friedman
Cameron, I'm VERY new to struts but I had no problem setting up and using tiles. Here are some of my tiles definitions which I'm using without any problems. Perhaps my definition can show you something you might be overlooking... BTW, I'm on Tomcat 4.1.24 on a Linux platform using JDK 1.4.2

Re: RE: Actions Best Practice

2003-08-06 Thread David G. Friedman
Taking your advice, it means that I would have two different action mappings, one for the init step and the second for the actual action (send). But then I will have to write something like html:link page=/InitForgotPassword.do?action=init which is a bit strange to write again the

Re: Re: Actions Best Practice

2003-08-06 Thread David G. Friedman
Adam, I simply add a tag in the field ... section of my tiles definition like the snippet below. One note to keep in mind from the documentation about the differences between server-side validation using the page attribute and client-side validation - client side is that page=number only,