Steve Dyke

Ranch Hand
+ Follow
since Nov 16, 2004
Merit badge: grant badges
For More
Cows and Likes
Cows
Total received
2
In last 30 days
0
Total given
0
Likes
Total received
14
Received in last 30 days
0
Total given
70
Given in last 30 days
0
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by Steve Dyke

Like most of my issues that take the most of my time to figure out, this one took about 5 hours and the help from this forum group.
The first time I tried the code a blank file was created with my merge file name.
The code failed but I did not realize the blank file had been created.
So every attempt I made thereafter, changing code to test, gave me the Access Denied message.
I was attacking the wrong source. After I removed the blank file, everything started working as expected.
2 months ago

Tim Moores wrote:Are you using a current SMB implementation like https://github.com/AgNO3/jcifs-ng?



Using jcifs-2.1.35.
I use this for my entire application with no issues.
This is just the first time I am attempting to use the merge utility.
2 months ago

Tim Holloway wrote:Most likely cause is that one (or more) of your URLs didn't form the way you thought it would and I'd add some log messages to see what you're actually getting.



This is what the System.out.println is showing:
FAIReportToJasper: pdffilePathMerged: smb://sgai-fs02.corp.zodiac.lan/qmsattachments$/QMSAttachments/Temp/FAIReportMerged_4248917.pdf

My scenario is I write three pdf files to a particular directory. Then I want to merge them into one pdf file.
This is all done on the same share. The three files are written just fine and accessible using HTTP.
I also use the same cifsContext parameter for all the smb access.

So I am trying to understand why I can write the initial three files to the share but not the merged file.

2 months ago
In my following code I get "FAIReportToJasper: jcifs.smb.SmbException: Access is denied."
On this line of code: out = new BufferedOutputStream(new SmbFileOutputStream( new SmbFile(pdffilePathMerged, cifsContext() )));

2 months ago
I want to get properties from a class that has been assigned to a Session Attribute in Javascript.
The following code will return undefined for both hospitaliteminput and hospitalitemDescription

My server code:


My JS Code:
3 months ago
JSP
After doing some more research I think I have something that works.
I am adding a data-* attribute to option tag that holds the index value I need.

Bear Bibeault wrote:That makes no sense to me.



This part of the code works perfect and has for several years.
Its the new code I need to add where I need the option value that is not working for me.
This is the HTML of the Select List:

<select class="faiEditListOptions_Tool select2-hidden-accessible"
data-select2-id="20" tabindex="-1" aria-hidden="true">
<option value''="" data-select2-id="22">Select a Tool</option>
<option value'4'="" data-select2-id="28">154151 - GLOBAL DIGITAL WEIGHT SCALES</option>
<option value'1'="" data-select2-id="29">316029 - ZEISS CMM2</option>
<option value'1581443536088'="" data-select2-id="30">104225 - (A16)1/4-28 UNF-3B STI</option>
<option value'2'="" data-select2-id="31">274072 - 6in. DIGITAL CALIPERS</option>
<option value'3'="" data-select2-id="32">234043 - STARRETT UNI BEVEL PROTRACTOR</option>
</select>

The .faiEditListOptions_Tool is a select list I add to the container using ajax.
In the code below I need to get the option value.
However, the alerts I have below only show the text portion of the selected option.

I am attempting to make the title of a div container dynamic based on specific value.
Using the following script when I hover over the container if the value == 2 I get "First" otherwise I get "class".

Ron McLeod wrote:Does your business logic handle the cases of empty list and missing list differently?



Yes. But I have to write code to route around missing lists to treat it as an empty list.
5 months ago
Here is an example of one of many of my classes set up this way.
I have set all the property values in the declaration, including my list of COLineItemV8 objects to null.
My question is this correct or should I at least default the value to an empty list of COLineItemV8 objects?
The downside of using Null I am finding out, is when I use this class property in my code, I have to first check to see if it is null or not.

5 months ago

Stephan van Hulst wrote:What does CoV8Ext do or represent?



CustomerOrder(added to application code at Version 8)'CustomerOrder' extended properties.
6 months ago
Is it acceptable to use the new XYZ() in a class constructor?
The initial call to the COV8 class will be a blank record.

6 months ago

Stephan van Hulst wrote:A lot of your problems could be solved if you just leveraged the IoC container that is provided to you by your application server.

No longer would you need to set up a servlet context listener to cache objects. No longer would you need to mess around with static variables.

WebSphere supports Jakarta CDI. I strongly suggest you start using it.



I hate to admit it but I am not familiar with either of these.
I started coding this application in 2006. It has hundreds of classes and hundreds of thousands of lines of code.

Where would I start?
6 months ago