Nick Delauney

Ranch Hand
+ Follow
since Sep 28, 2002
Cows and Likes
Cows
Total received
0
In last 30 days
0
Total given
0
Likes
Total received
0
Received in last 30 days
0
Total given
0
Given in last 30 days
0
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by Nick Delauney

Does Spring in Action cover 2.0? I'm debating if I should wait for a 2.0 reference book or if Spring in Action is the best book to get right now.

Thanks,

Nick Delauney
I don't have a solution, but doesn't that logic make you have to log in, rather then pay off the lead?

Perhaps you could pay per unique ID per session - or maybe check the cookies to see if they been there that day?
12 years ago
Hello,

We have a project coming up in my financial firm requiring we generate 700,000 PDFs in one night. Each PDF will be 7-10 pages and will contain charts and graphs.

We are leaning towards XSL:FO and some type of SVG graphics package. Is there anyone with experience with this kind of thing that could give some adivce or provide some links to assist my search for a solution?

Any help is appreciated, Thanks,
12 years ago
What do you guys use to pump out your ajax? This question is also for Christian Gross as I would like to win the book
Is there a generic way to get the details of an error so that handiling exceptions with custom messages for the user can work across databases?

I have SQL code that could generate a insertion of duplicate primary key SQLException and could generate a duplicate unique id SQLException. I am working with SQL Server, but we will be migrating to DB2 soon.

My thoughts were with getting the SQLException error code, but I think thats particular to databases?
Hello,

I am under the impression that settting the following parameter to true in the jrun-web.xml file would allow java files to be recompiled instantly upon saving. This would allow me to never have to restart the server while developing. However this is not happening for me. Does anyone use JRUN and have an Idea of what the problem could be?

< !-- reload & compile -->
< !-- These values tell Jrun how to handle changes to Servlets -->
< !-- reload=true means to reload the class if it has changed -->
< !-- compile=true means recompile java file if it has changed -->
< !-- This can be handy for development, but must be false for production -->

<reload>true</reload>
<compile>true</compile>


Thanks,
13 years ago
Hi All,

I am trying to figure out a way to generically filter a List of beans (assume list contains objects of the same type). I am thinking that I need to create a filter string and have the list parse and match the objects in the list against the filter.

Has anyone done this before, or can help in anyway?

Thanks,
13 years ago
Hello all,

I have a drop down list with several options and one text field. Depending on what is in my drop down list I need to validate the text field differently.

For example if I have "Stock" selected in the list, I should have letters in the textfield. If I have "Cash" selected in the list I should have numbers.

I looked at the validwhen validation of validator, but cannot see how to combine it with other validations.

Can anyone assist, thanks,
13 years ago
Hello,

I am using validatorActionForm. My form bean has getters/setters for the following:

// Liquidation Filter variables
private String liquidationType;
private int liquidationAmount;
private float liquidationPercent;
private byte equityDenomination;
private short fixedIncomeDenomination;
private char includeCashInLiquidationAmount = 'N';
private char vsp = 'N';
private char washRule = 'N';

I could not get the validation of liquidation amount to work with integer until I changed the data type type to String.

validation.xml
<form name="/liquidate">
<field property="liquidationAmount" depends="integer">
<arg0 key="error.liquidationAmount"/>
</field>
</form>

form bean:
private String liquidationAmount;

Do all my form bean properties have to be string to use the validator framework? Why?

Thanks,
14 years ago
Hello Everyone,

I have decided to format the string using onblur event with javascript on the front end. However with the javascript function my value will still have commas in it. Is it possible for a function to strip out the commas and hand over the value to the rest of the validations.

I'm thinking I have to create my own validation method that really doesnt validate but formats the value, and then follow it up with dependant validations.

i.e
<form-validation>
<formset>
<form name="someFormWithMoneyFields">
<field property="cashAmount" depends="formatMoney, floatRange, required"/>
</form>
</formset>
</form-validation>

where "formatMoney" would really be my format method?

Would this work? is it good practice?

-Thanks for any help
14 years ago
I would like to use some of the validations that the validator framework comes with, but all of my values have commas in them. How would I strip out the comma values and then use a validation such as floatRange. Ideally I would like to be able to validate all cash quantities. 10,000 as well as 10.58 as valid.

Your help is appreciated, thanks,
14 years ago
Hello all,

I have just started using validator. For my first validation I used the "required" validation rule that comes with STRUTS validator. Required just checks to see if a field is blank and returns an error if it is.

My problem is the field will always be blank upon the initial visit to the page, so the error will always show even though the user didn't get a chance to make an error.

Does anyone know how to get around this?

Thanks,
14 years ago
I need to set the value of the option tag to the same value as "item". Could anyone assist me on how this should be done?

From:
<logic:iterate id="item" name="liquidationType" ><option><bean:write name="item"/></option>
</logic:iterate>

To:
<logic:iterate id="item" name="liquidationType" >
<option value="get the item value here"><bean:write name="item"/></option>
</logic:iterate>

Thanks in advance,
14 years ago
Hello all,
I would like to write to a local file in my web application using servlets.
I'm using tomcat and my servlet is in WEB-INF/servlet. However, if I try to create/write to a file at root of the app by doing "../../logfile.html". I't does not work. Could anyone help me please.
Thanks in advance,
14 years ago