[OT] - JSTL Parameter Conventions

2006-05-11 Thread Kalcevich, Daniel
Everyone, Does anyone know of a tool or library that can be used to perform similar operations as JSTL does with arguments like ${object.method}? I need to build a String that has to have arguments replaced on the fly and thought if I could find something like how JSTL does it, that it would

RE: [OT] - JSTL Parameter Conventions

2006-05-11 Thread Kalcevich, Daniel
1:41 PM To: Struts Users Mailing List Subject: Re: [OT] - JSTL Parameter Conventions Kalcevich, Daniel wrote: Dang, I must have been spacing when I was looking on the Jakarta Site earlier. Thanks Dave. I wasn't sure if that's what you needed or not. Good to hear that it is. -Dave

Struts DTD on Classpath

2006-05-10 Thread Kalcevich, Daniel
Everyone, Someone told me about this feature, but I am not sure if/where it exists. Is it possible to tell Struts to use the DTD for the Struts-config file from the classpath (as I see it in the Struts.jar), and not from the URL? I want to avoid the dependencies on the Struts website, in the

RE: Mask validation

2006-04-25 Thread Kalcevich, Daniel
Remove the {8} from the Mask and also include the maxlength validation on that field. Something like this: field property=field1 depends=mask,maxlength arg0 key=mykey/ arg1 name=maxlength key=${var:maxlength} resource=false/ var var-namemaxlength/var-name

RE: Mask validation

2006-04-25 Thread Kalcevich, Daniel
: Kalcevich, Daniel [mailto:[EMAIL PROTECTED] Enviado el: Martes, 25 de Abril de 2006 11:33 a.m. Para: Struts Users Mailing List Asunto: RE: Mask validation Remove the {8} from the Mask and also include the maxlength validation on that field. Something like this: field property=field1 depends=mask

ArrayList html:options

2006-04-17 Thread Kalcevich, Daniel
Everyone, I am trying to use the htm-el:options tag to write out the value of a Select box. I am using an ArrayList of Strings that I am trying to iterate over. I want the value and option to be the same on the output. Here is how I am calling my code... Action: request.setAttribute(

RE: ArrayList html:options

2006-04-17 Thread Kalcevich, Daniel
the label or the value as well? Daniel -Original Message- From: Wendy Smoak [mailto:[EMAIL PROTECTED] Sent: Monday, April 17, 2006 1:52 PM To: Struts Users Mailing List Subject: Re: ArrayList html:options On 4/17/06, Kalcevich, Daniel [EMAIL PROTECTED] wrote: request.setAttribute

RE: ArrayList html:options

2006-04-17 Thread Kalcevich, Daniel
: Re: ArrayList html:options On 4/17/06, Kalcevich, Daniel [EMAIL PROTECTED] wrote: Changing that to: html-el:select property=exportDate html-el:options collection=exportDates / /html-el:select Now produces this error: 15:55:34,494 ERROR [action]:253 - Servlet.service() for servlet

RE: forwarding vs redirecting issue

2006-03-27 Thread Kalcevich, Daniel
You can use tokens within the Action classes to help prevent multiple submits. Take a look at the Action Servlet Java Doc for the following methods: isTokenValid( request ) resetToken( request ) saveToken( request ) We are using tokens in our app right now. We do something like the following:

Struts-EL Tag Question

2006-03-24 Thread Kalcevich, Daniel
I have a collection in the Request called processes which is an array list of a Transfer Object I use in my application. I am trying to make the following call from my JSP: bean-el:size id=numProcesses collection=${processes}/ I am getting the following error:

[OT] JSTL question

2006-03-16 Thread Kalcevich, Daniel
I am trying to access a session object where the key is the field ACCOUNT_PROFILE_SESSION_ATTRIBUTE in a Constants JAVA file called GlobalConstants. I created a wrapper around it that extends Map (JSTLConstants) to contain all the constants so I could access it via JSTL. I am trying to do the

RE: Using saveToken and isTokenValid

2006-03-14 Thread Kalcevich, Daniel
What about putting the saveToken(request) at the bottom of the second action as well? This will put a new token into the request in the event you want to submit again. Dan -Original Message- From: starki78 [mailto:[EMAIL PROTECTED] Sent: Tuesday, March 14, 2006 7:08 AM To: user

RE: html:errors

2006-03-10 Thread Kalcevich, Daniel
Try using the logic:messagesPresent tag if you wish to check for the existence of errors on a JSP page. Or this link provides some help info regarding the errors object. http://husted.com/struts/tips/017.html -Original Message- From: fea jabi [mailto:[EMAIL PROTECTED] Sent: Friday,

RE: Logic Tag Question

2006-03-06 Thread Kalcevich, Daniel
the accountProfile.getTimeZone() field. Any other ideas? -Original Message- From: news [mailto:[EMAIL PROTECTED] On Behalf Of Laurie Harper Sent: Saturday, March 04, 2006 6:01 PM To: user@struts.apache.org Subject: Re: Logic Tag Question Change ${tz}.value to ${tz.value}. Kalcevich, Daniel

Struts-EL

2006-03-06 Thread Kalcevich, Daniel
I would like to setup Struts-EL in my application. I am currently running Struts 1.2.8 with Spring. I did the following: 1. Added the Struts-el.jar, jstl.jar, and standard.jar to my WEB-INF/lib. 2. Added the line %@ taglib prefix=c uri=http://java.sun.com/jsp/jstl/core; % to my JSP

RE: Struts-EL

2006-03-06 Thread Kalcevich, Daniel
AM To: Struts Users Mailing List Subject: Re: Struts-EL On 3/6/06, Kalcevich, Daniel [EMAIL PROTECTED] wrote: I would like to setup Struts-EL in my application. I am currently running Struts 1.2.8 with Spring. I did the following: 1. Added the Struts-el.jar, jstl.jar, and standard.jar

RE: How To Use Existing Tags to Test and Write Out the Value of the Size of a Collection?

2006-03-06 Thread Kalcevich, Daniel
You can use the logic:greaterThan, logic:greaterEqual, logic:lessThan or logic:lessEqual tags. http://struts.apache.org//struts-doc-1.2.8/userGuide/struts-logic.html#g reaterThan -Original Message- From: Caroline Jen [mailto:[EMAIL PROTECTED] Sent: Monday, March 06, 2006 11:06 AM To:

RE: WARNING: No FormBeanConfig found under 'CustomerOpen'. --- What is this?

2006-03-06 Thread Kalcevich, Daniel
Do you have a formBean named CustomerOpen defined in the your Struts Config File? If not, that would probably be the cause of the warning. -Original Message- From: Morten Egelund Rasmussen [mailto:[EMAIL PROTECTED] Sent: Monday, March 06, 2006 11:41 AM To: user@struts.apache.org

Logic Tag Question

2006-03-03 Thread Kalcevich, Daniel
I have the following: - An ArrayListLabelValueBean in the ServletContext called timezones - A Form Bean in the request scope called accountProfileForm I want to be able to loop through the values in the timezones attribute and compate the value to the value of the

RE: Logic Tag Question

2006-03-03 Thread Kalcevich, Daniel
--- From: Kalcevich, Daniel [EMAIL PROTECTED] To: user@struts.apache.org Sent: Fri, 3 Mar 2006 12:21:18 -0800 Subject: Logic Tag Question I have the following: - An ArrayListLabelValueBean in the ServletContext called timezones - A Form Bean in the request scope

RE: Logic Tag Question

2006-03-03 Thread Kalcevich, Daniel
How can I say that the value I want to check against if the getValue() method from the tz variable? -Original Message- From: Michael Jouravlev [mailto:[EMAIL PROTECTED] Sent: Friday, March 03, 2006 1:29 PM To: Struts Users Mailing List Subject: Re: Logic Tag Question On 3/3/06, Kalcevich

Modules Problem

2006-03-01 Thread Kalcevich, Daniel
Everyone, I have two modules: / /app. /app is protected by a Servlet Filter and is used for all actions after you have authenticated yourself. I am having a problem when I try to declare a form in a JSP page that is referenced by an action within the /app module. I am trying to define the

Logic Tag Question

2006-02-10 Thread Kalcevich, Daniel
Everyone, I have two modules defined (/ /app). I want to use the logic tag (either redirect or forward) to take me to the URL /myApp/index.htm when I enter in just /myApp/. I have defined an action within the / module Struts Config File that is called /index and forwards to a Tiles

RE: Validator Question

2006-02-06 Thread Kalcevich, Daniel
: Kalcevich, Daniel [EMAIL PROTECTED] Sent: Friday, February 03, 2006 11:26 PM Everyone, I am using the validator to validate an email address in a text field. The field is not required, but when there is a value in there, I want it to be a valid email address. Here is my XML, field property

RE: Validator Question

2006-02-06 Thread Kalcevich, Daniel
: The email rule does that for you. If you do not enter an email address the rule is not applied. If you enter an email address the rule is applied to make sure the email is valid. Cheers Tom -Original Message- From: Kalcevich, Daniel [mailto:[EMAIL PROTECTED] Sent: Monday

validWhen - checkbox question

2006-02-06 Thread Kalcevich, Daniel
Everyone, I have two fields: 1. trackingEnabled - checkbox 2. repeatOffendersDaysBack - text (int) for number of days going back to check The rule for these fields are this: if trackingEnabled is checked, then the repeatOffendersDaysBack is required. Otherwise,

Validator Question

2006-02-03 Thread Kalcevich, Daniel
Everyone, I am using the validator to validate an email address in a text field. The field is not required, but when there is a value in there, I want it to be a valid email address. Here is my XML, field property=notificationBcc depends=validwhen,email arg0

RE: Valid When Question

2006-01-31 Thread Kalcevich, Daniel
/var /field field property=phone3 depends=validwhen var var-nametest/var-name var-value((*this* != null) or ((phone1 == null) and (phone2 == null)))/var-value /var /field Niall - Original Message - From: Kalcevich, Daniel [EMAIL PROTECTED] To: user@struts.apache.org