Matt McCray

Greenhorn
+ Follow
since May 20, 2009
Merit badge: grant badges
For More
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 Matt McCray

I had been moved away from this project for a while. I am now back to where I am looking at this code. I have found a simple solution. Each time the loop iterates the chart needs a unique id. My solution was to add a variable to the chart id using EL. In the example below I used the team name that is already being passed, ${team.key}, but this could just as easily be an integer that is incremented with each iteration.


I hope this helps someone.
Well, thanks everyone for the responses. You've all pretty much told me what I was afraid of. What I want to do just won't be possible the way that I wanted to do it. I think I'll have come back to my boss with a proposal for a document upload repository so that everything is standardized.

Thanks again.
14 years ago
JSP
That's the point. However, I want the person inputting the file path to have the ability to browse to the file to retrieve the file path. I don't want to rely on them typing the path in correctly.
14 years ago
JSP
I’m sorry. I’m not explaining this very well. I am new to using forums as well.

The link will not be static. It will be pulled from a database along with other information about any given project within our company and displayed using EL within a jsp. This information can be edited at any time during the life of the projects.

I will be building the link to display based on whatever file path is entered on the “edit.jsp”. Then anyone involved with the project can look at the “display.jsp” to see where the doc for that particular project is located. I would prefer that the person entering the data not have to manually type in the file path.

The documents are not on the server. They are stored on shared drives that are accessed from the client side.
14 years ago
JSP
That’s what I was afraid of. I don’t mind doing the research, but could someone possibly point me in the right direction. Or, even several directions to explore. I am inexperienced enough that I am not aware of all of the possibilities out there.
14 years ago
JSP
I am fairly new to web development. I am using Eclipse 3.3.2. Our Intranet uses the Struts framework and Apache Tomcat 5.5 server. Most of us are using Firefox 2 or 3, but not necessarily everyone.

I am working on a part of my company’s project management system that is accessed via our Intranet. Currently there is a page that shows details about specific projects. On this page there is a field that displays the location of documentation that is stored on a shared network drive.

One of my tasks is to make this field a link that a user can click on to view / download the documentation. The file paths can sometimes get very long and confusing. So I want to give the user inputting the path a way to browse to the doc and retrieve the path for the link that way.

My thought was to put the following in my jsp.

I don’t really want to upload the file, I just need the full path as a string. The problem is that it returns the file path with the drive letter I have mapped on my local machine.

G:\Systems Development\Projects\… ProjectDoc.doc

Not everyone will have the drives mapped to the same letters. Also this could be one of several shared drives, with no real standard location. Therefore I really need to have the full drive path for the link.

\\DriveName\shared\ Systems Development\Projects\… ProjectDoc.doc

I can’t just trim off the drive letter and replace it with the drive name, because I won’t know what drive the doc will be on, and like I said not everyone will have the same drive letters mapped.

Anyone have any solutions, or at least a direction to head?
14 years ago
JSP
I am using Cewolf to generate a dynamic number of charts on a page. A chart will be generated for each “team” that the user selects on the previous page. I have no way of knowing how many teams will be selected. So I just loop through in the jsp and create a chart for each team selected.

My problem is that the image map that is used for tool tips and links is only correct for the first chart. All following charts use the map from the first chart. It doesn’t seem to matter whether I use the Cewolf or JfreeChart generators.

Any ideas / solutions would be appreciated.

Well I found the solution to my problem. It was being caused by the a few elements position set to absolute. The solution was to add a new variable and changing the code that builds, in overLib.js, the tables slightly. When using inline styling I can now change the table positioning to fixed. This way it remains relative to the browser window.
I’ve done some research and found that overLib uses nested tables to display tooltips. My problem has to do with global styles applied to table, td and th. Now I just have to figure out how to counteract these styles without changing the existing style sheets. This is an existing web site that is pretty large.
I am working on some jFreeCharts using Cewolf. My problem is the position of the tooltips. When a tooltip is displayed it is nowhere near the pointer. If the page is scrolled the tooltip will scroll with the page regardless of where the pointer is. It seems that my tooltip is positioning relative to the page, not the chart. I can’t seem to find any posts with the same problem.

This problem occurs while using FireFox, so it has to do with overLib.js