Using validwhen with multiple Map back properties

2005-03-09 Thread Nathan Maves
I have two LinkedHashMap properties in a DynaActionForm. I need to validate one of the map based on the other. i.e. map1(1) is required if map2(1) is not null. Can this be done? Nathan - To unsubscribe, e-mail: [EMAIL PROTECTED]

Why not use MappingDispatchAction in 1.2? Was: how to use DispatchAction?

2004-08-26 Thread Nathan Maves
On a bit of a side note... I would suggest using MappingDispatchAction in the 1.2 builds. This has made the use of dispatch actions much much easier. It allows you to move the method parameter into the action mapping itself. This way you do not need to send the parameter in the request.

Re: What happended to Ted Husteds Struts pages?

2004-08-23 Thread Nathan Maves
Yeah I know what happenedIt's still there :) Nathan On Aug 23, 2004, at 3:01 PM, David Evans wrote: Anyone know what happened to the website that used to live here: http://husted.com/struts/index.html there was a design patterns catalog and a tips page and alot of great links. has it been

Difficult index properties problem

2004-08-16 Thread Nathan Maves
Here is the setup... I have a 2 layered nested bean. ie Bean1 has n number of associated Bean2 Bean2 has n number of associated Bean3 I want to have a form that has an Array of Bean3's Probem is that while iterating though Bean2's the count for the indexed property gets reset. Any clever ideas

Re: [OT] Open/free SQL Query Wizard

2004-08-16 Thread Nathan Maves
Not web based but i think AquaStudio rocks! Auto-completion of sql! http://www.aquafold.com/ On Aug 16, 2004, at 9:16 AM, [EMAIL PROTECTED] wrote: Anybody aware of any open/free packages that contain a web-based SQL query wizard/editor? Thanks,

Re: Difficult index properties problem

2004-08-16 Thread Nathan Maves
or jsp 2.0! On Aug 16, 2004, at 9:55 AM, Rick Reumann wrote: Rick Reumann wrote: Of course this assumes using html el tags. c:forEach items=${yourForm.listOf_A_Beans} var=beanA varStatus=beanAlistStatus html:text property=listOf_A_Beans[${beanAlistStatus.index}].name

Trying to use validwhen with 1.2

2004-08-13 Thread Nathan Maves
My first attpemt at using validwhen is failing badly :) I am getting this error. I have upgraded both the validation and validator-rules. I have also upgraded all of the jars java.lang.NoClassDefFoundError: antlr/TokenStream java.lang.Class.getDeclaredMethods0(Native Method)

Re: Trying to use validwhen with 1.2

2004-08-13 Thread Nathan Maves
Thank god its friday! That was it! On Aug 13, 2004, at 2:40 PM, Niall Pemberton wrote: The obvious question - have you deployed antlr.jar? Niall - Original Message - From: Nathan Maves [EMAIL PROTECTED] To: Struts Users Mailing List [EMAIL PROTECTED] Sent: Friday, August 13, 2004 9:26 PM

validwhen with checkboxes (1.2)

2004-08-13 Thread Nathan Maves
can you run a check to see if a checkbox has been selected? This doesn't seem to work for me, where rollable is a checkbox in the same form. I want this field to be required when the rollable checkbox is checked. field property=rollupMethod depends=validwhen arg0

Re: HTTP Compression (Struts)

2004-08-11 Thread Nathan Maves
Yeah a lot of people. There was a thread on this very topic last week please check the archive before posting :) http://marc.theaimsgroup.com/?l=struts-userm=109183678222344w=2 Nathan On Aug 11, 2004, at 4:17 AM, Shailender Jain wrote: Hi, Has anybody used Http Compression technique for a web

Re: HTTP Compression

2004-08-06 Thread Nathan Maves
Correct! What is the best way to make sure that the filter is only picking up content that should be compressed. i.e. we have some actions that produce images. I assume that you would filter on *.do or /do/* but this would include these actions. Would it be wise to check the response type

Re: Indentation using html:messages tag

2004-07-30 Thread Nathan Maves
So you are looking for something like this First Name Required Max Length Last Name Required Hard to help unless we know what you are looking for? Nathan On Jul 30, 2004, at 3:08 AM, Suresh S wrote: Hi, OK, i got what you r trying to say .But the problem is the errors

OT jstl/el question

2004-07-28 Thread Nathan Maves
I am using the EcpressionEvaluationManager class of jstl in my own custom tag. This used to work but now things are a bit weird. What I need it to be able to pass an Object (i.e. Date) to my custom tag. I think since I have enabled JSP 2.0 is now evals the var into a String before it is sent

Re: html:link with params

2004-07-27 Thread Nathan Maves
of doing this to everybody else? Keith Kamholz IT - Programming and Architecture Moog Inc. Nathan Maves [EMAIL PROTECTED] 07/26/2004 07:28 PM Please respond to Struts Users Mailing List [EMAIL PROTECTED] To Struts Users Mailing List [EMAIL PROTECTED] cc Subject Re: html:link with params Think

Steps for migrating to 1.2.1

2004-07-27 Thread Nathan Maves
Has anyone put together a set of steps to migrate to version 1.2.1? I am trying but I run into this error javax.servlet.ServletException: Servlet.init() for servlet action threw exception org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java :117)

Validation error using 1.2.1

2004-07-27 Thread Nathan Maves
I have migtrated everyhting to 1.2.1 and it is working great! Problem is that none of my validation that worked yesterday is now busted! ERROR 07-27 11:03:31 org.apache.struts.validator.FieldChecks.validateRequired(java.lang.Objec t, org.apache.commons.validator.ValidatorAction,

Re: Validation error using 1.2.1

2004-07-27 Thread Nathan Maves
with ActionErrors. Have you updated the version of validation-rules.xml you are using? Also there has been a change to the dtd declaration in validation-rules.xml since Struts 1.2.1 so it might be a good idea to download the latest nightly build. Niall - Original Message - From: Nathan

Re: Trouble with SSL and struts using sslext

2004-07-22 Thread Nathan Maves
Jim, Works perfect for me. action-mappings type=org.apache.struts.config.SecureActionConfig action path=/Login type=reporting.viewer.presentation.actions.Welcome set-property property=secure value=true/ forward name=success redirect=false path=.viewer.welcome /

custom error message handling

2004-06-25 Thread Nathan Maves
Currently I use the validator with my forms. I am looking for a way to test if there was an error for a specified field. I still want the list of errors produced by html:errors/ at the top but I would like to place something like ** next to any field that had errors. Can this be done with

Re: [ANNOUNCE] Struts Console v4.7 - GUI tool

2004-06-07 Thread Nathan Maves
James, Does the pretty printing option work in netbeans? Nathan On Jun 7, 2004, at 3:20 PM, James Holmes wrote: Struts Console version 4.7 is now available. http://www.jamesholmes.com/struts/ Download Now: http://www.jamesholmes.com/struts/struts-console-4.7.zip -- OR --

Re: MySQL, iBatis, and mysql_insert_id

2004-06-03 Thread Nathan Maves
iBatis 2.0 has this ability. The other option is to have a KeyGenerator class that handles all of this for you. Don't use the auto generated keys from mysql. Nathan On Jun 3, 2004, at 11:07 AM, Andy Engle wrote: Hi all, I am working on a Struts app where I will be slapping some stuff into a

Re: c:forEach tag

2004-05-28 Thread Nathan Maves
I have not seen any way to do this. You could do a work around by setting a var inside of your loop then checking that on every iteration of the loop. This is still causing the loop to finish execution but you would get the result you were looking for. You might look into the multibox tag for

Re: Struts - not compatible with IE 5.2 on MacIntosh???

2004-05-27 Thread Nathan Maves
I have hear that ie for macs will not send form elements across if they are null. Most other browsers send them across as an empty string or null. I run on a mac so please let me know if you need any testing done. Nathan On May 26, 2004, at 8:12 PM, Kendell Churchwell wrote: Hi - I deployed

Re: standard tags vs. struts specific tags

2004-05-27 Thread Nathan Maves
Rick, Why don't you use the fmt: tags instead of the html:message tags? Just curious... Nathan On May 27, 2004, at 12:59 PM, Rick Reumann wrote: Barnett, Brian W. wrote: Does this mean I should use jstl from Sun or are the standard tags (c, fmt, sql, etc) that come with struts 1.1 just fine?

Re: How to renderize a image?

2004-05-26 Thread Nathan Maves
you can use whatever image tag you want. The real catch is that you will need and action that pulls the info from the db and writes it to the OutputStream in the response. The have the execute method return null. You might end up with a tag that looks like... img src=c:url

Re: Logic Tags using OR

2004-05-25 Thread Nathan Maves
Why not use jstl? c:if test=${user.key eq 1 || user.key eq 2} do something... /c:if nathan On May 25, 2004, at 1:15 PM, Ciaran Hanley wrote: Can the struts logic tags be used to perform OR Logic? For example instead of logic:equal name=user property=key value=1 ...do this

Re: From bean into for loop

2004-05-24 Thread Nathan Maves
well you are on the right path ... You need to use jstl. I am not sure what you have in your bean. Do you have a collection of objects or a Integer of representing a count? Either way check out the forEach tag. Let me know if you need an example nathan On May 23, 2004, at 9:50 PM, Andy Engle

BeanUtils.copyProperties IllegalArument Excpetion?

2004-05-14 Thread Nathan Maves
I am getting this error... java.lang.IllegalArgumentException: argument type mismatch at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.jav a:39) at

LIL OT sercurityfilter question

2004-05-10 Thread Nathan Maves
I have been using the sercurityfilter by Max Cooper. I wanted to know the best way to incorporate SSL into the picture. What is the best way to ensure that the login page and submission action is encrypted? Nathan - To

Re: LIL OT sercurityfilter question

2004-05-10 Thread Nathan Maves
How much of a performance loss would this be? On May 10, 2004, at 1:53 PM, Hookom, Jacob wrote: Configure your server to only accept requests in an SSL port. -Original Message- From: Nathan Maves [mailto:[EMAIL PROTECTED] Sent: Monday, May 10, 2004 2:49 PM To: Struts Users Mailing List

Re: How to use resource bundle in attributes

2004-05-03 Thread Nathan Maves
Use jstl! On May 3, 2004, at 6:51 AM, Ralf Schneider wrote: Hi, how can a use internationalized text strings stored in a resource bundle as values of attributes? For example: html:text property=username title=login.tooltip.username/ I know, this will not work, but how can it be done? Ralf.

Re: How to use resource bundle in attributes

2004-05-03 Thread Nathan Maves
of internationalized strings in the body of a tag (e.g. fmt:message ...). Ralf. Am Montag, 3. Mai 2004 15:37 schrieb Nathan Maves: Use jstl! On May 3, 2004, at 6:51 AM, Ralf Schneider wrote: Hi, how can a use internationalized text strings stored in a resource bundle as values of attributes? For example

speaking of log4j......

2004-04-23 Thread Nathan Maves
I just starting getting this error today but only when I redeploy my struts app. java.lang.ThreadDeath at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader .java:1270) at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader

what could cause this Class Cast exception

2004-04-21 Thread Nathan Maves
I know this is not truly struts related but... I had a servlet that loaded blobs from oracle (pdf files). This worked perfect. I copied the code into my action and I know receive this error: java.lang.ClassCastException at

Re: what could cause this Class Cast exception

2004-04-21 Thread Nathan Maves
is it? I believe if you use something like Commons dbcp it uses wrappers for everything - DelegatingResultSet Niall - Original Message - From: Nathan Maves [EMAIL PROTECTED] To: Struts Users Mailing List [EMAIL PROTECTED] Sent: Thursday, April 22, 2004 12:15 AM Subject: what could cause

Re: Character encoding problem in struts

2004-04-20 Thread Nathan Maves
Here is a prebuilt filter that will do just what you are looking for .. http://www.anassina.com/struts/i18n/i18n.html Nathan On Apr 20, 2004, at 6:00 AM, brelagad the ent wrote: I cannot pass Turkish characters to the action servlet from a form. I read that I should use filters. I am wondering,

Re: logic:iterate indexId=idxhow to send idx in html:link

2004-04-19 Thread Nathan Maves
The html:link tag allows for one parameter to be set with it. Look at the api.. If you need to append more then one parameter then you will have to use jstl. Nathan On Apr 19, 2004, at 4:49 AM, ganesh g wrote: Hi sir, Here is a problem with: logic:iterate id=audioList property=mtJobsList

Re: Struts Application Security within the Controller Layer

2004-04-18 Thread Nathan Maves
What errorthat looks like the normal startup messages of tomcat to me. Nathan On Apr 18, 2004, at 6:15 AM, [EMAIL PROTECTED] wrote: Hi All,  I have installed  Tomcat server on my machine and tried to start it using    startup.bat  im getting following  error

Re: Strange problem with the validator.

2004-04-17 Thread Nathan Maves
? It wasn't the fact that the L in maxLength wasn't capitalized, was it? (Because this recently bit one of our developers, as apparently JavaScript expects it to be capitalized [even though IIRC XHTML says it shouldn't be].) Erik On Apr 14, 2004, at 6:15 PM, Nathan Maves wrote: Never mind! found

Re: Validator vs form Validate() method.

2004-04-15 Thread Nathan Maves
I am just a newB but couldn't you call the validate method from your execute method. This way the validator will catch any of the easy validations and your validate method will get the complex ones. Again just a newB answer. Nathan On Apr 15, 2004, at 2:40 PM, [EMAIL PROTECTED] wrote: Hi

Re: Validator vs form Validate() method.

2004-04-15 Thread Nathan Maves
Ahh after a little research I think I might have answered that wrong. What is your action form extending? Nathan On Apr 15, 2004, at 3:37 PM, Nathan Maves wrote: I am just a newB but couldn't you call the validate method from your execute method. This way the validator will catch any

Re: Strange problem with the validator.

2004-04-14 Thread Nathan Maves
Never mind! found the problem... one of those ID10T errors. Nathan On Apr 14, 2004, at 3:33 PM, Nathan Maves wrote: Anyone know why the error message does not show the maxlength argument. # Purpose can not be greater than characters. # Description can not be greater than characters. notice