Mark Howard

Ranch Hand
+ Follow
since Feb 14, 2001
Cows and Likes
Total received
In last 30 days
Total given
Total received
Received in last 30 days
Total given
Given in last 30 days
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by Mark Howard

The servlet container is Resin. Whether I'm testing it locally on my home workstation or whether I download the site from my host server, the result is the same. Nothing appears to cache other than the html pages themselves.

Each image, js file, css file, etc that is downloaded has an expiry date stamped on it in my 'temporary-internet-files' folder of the same time it was downloaded, which I suspect is used for comparison purposes when I next download the same image, js, css, etc file. When I download other sites, this expiry date is null, which makes me suspect its something to do with the way I'm referencing these external files from within my JSP.

I'm at a loss. I've seen many queries on this site where people are trying hard to prevent the browser from caching objects, but I would dearly love it to do just that. Just one image at least
[ December 11, 2004: Message edited by: Mark Howard ]
13 years ago
What is the best way to configure your web app directory structure? I currently have a simple setup as follows:

When the JSP requires an image file, it references the 'image' directory as '../images.ddd.gif'. This works, but I find that the image is never cached, and downloaded from the server each time. I thought this may have something to do with the way in which my webapp directory is structured ('coz I've tried everything else )

Should the images directory perhaps be below the jsp directory, so that it does not require the '../' to reference an image? Or should the full URL path be supplied in the JSP to the desired image (as I've noticed is done by the Javaranch site)?

Any help would be appreciated
[ December 11, 2004: Message edited by: Mark Howard ]
13 years ago
I've recently deployed a web application (using Java/JSP) but find that each time I re-visit the same page all the images I have on that are re-downloaded from the server?

My browser is set up so that newer versions are not checked every time the page is visited, and the only manipulation I perform with the images is a very simple image-swap piece of javascript (to highlight the image on mouseover)

The one thing I've noticed in the Temporary Internet Files folder is that all the images that have been downloaded when I access my site are stored with an expiry date of right-now. I'm guessing that this expiry date is used to determine whether to re-use the same image or re-download it from the server. When accessing most other sites, the expiry date is set to 'none', which suggests that it has something to do with my site rather than any external internet settings.

Any ideas on this?

Further to the above...
If it is not imperative that the user waits for a response from the asynchronous process they triggered with their request, is there any way in which the asynchronous process could carry on crunching away while the user is freed to continue with other requests.
For example, user submits request A, servlet uses request A to trigger asynchronous process B, servlet returns control to the user who can then continue with other requests. When complete, process B could, say, update a database flag to indicate that the users data has been processed. When the user next issues a request that hits that particular data, the servlet servicing that request could query the flag and inform the user whether their data is still being processed or not.
Or is this the bit about having to spawn another thread to do Process B, which I believe is not considered good practice?
Kyle's solution in the Javaranch Journal looks quite sophisticated (and impressive), but I don't know enough about the full J2EE picture to make that kind of change. I guess I'm just looking for the quickest and simplest solution for now. Also, using Lunarpages as a host (and a good one at that), I don't know whether their Resin server does all the good things required by the J2EE spec?
13 years ago
Thanks for this information, Kyle.
Very useful indeed.
13 years ago
Hi all you Servlet gurus!
I am hosting a website which runs purely on Servlet, JSP and JDBC technology, but I've little experience with Servlets accepting and processing input files from the user. Ok. I have no experience of it
I would appreciate any suggestions.
Essentially, I need to accept a simple text file from the client and use it to update their database records. The questions I have are as follows:
1) How best to accept the input file by the simplest means. Can I open an open-file type popup that allows the user to browse and select a text file?
2) How does the Servlet read the file? ie. which API should I use, etc
3) The file simply has two columns per record which require validation. Is a delimiter the best (or at least simplest) way for me to distinguish between the 2 columns?
4) This is my most important question. I'm expecting about 100 to 2000 records per input file, and I can receive many simultaneously from various clients. What is the best way to process this? Each file will hit different records in the database, but I'm still concerned about the performance issue. It is not imperative for the client to wait for a completed-processing response, but how do I get the Servlet to process the file in the background and allow the client to carry on with other tasks. (I can always update a process-completed flag which will notify the user that their file has been processed the next time they poll their records)
5) Should I be concerned with any synchronization issues?

Thanks a mil for taking the time to read this missive. Any suggestions are much appreciated
13 years ago
(Hope this is the correct forum)
This might be a dumb question, but how do web designers create all those good-looking logos that generally appear on the home pages of most websites? I have the artistic skills of a brick, and am wondering how to at least create a half-decent looking logo that represents the concept I am trying to sell.
Are there tools/software out there that help you to turn your idea into a real picture? (Even something as simple as the Sun Microsystems logo)
Any help much appreciated.
Can anyone suggest any inexpensive software to create your own images (.gif primarily) for a website.
Nothing fancy, just trying to create an eye-catching logo or two.
Thanks for the replies
Even with no real business knowledge, I agree that a good business plan is essential to some kind of future success.
What I was more specifically after, however, is how to register your business, does tax on income gained apply in the country you currently reside in (I move around a bit), how to copyright your site, etc...
Any other info out there?
14 years ago
Just wondering...
Does anyone here run a web-based business?
I'm thinking of giving it a crack. Pretty confident on the techie side (using JSP, Servlets, etc), but don't have much idea about all the legalities involved.
Things like registering a web business, copyrights, under what conditions can I accept payment over the web, etc, etc.
Damn I wish I'd paid more attention to my accountancy teacher all those years ago...
Any help much appreciated
14 years ago
Is the web.xml file that you're updating the one in the default ROOT directory, or the one specific to your web app?
I essentially want a url of to fire up a specific servlet in my web application.
I thought I could simply create an index.jsp file that merely forwarded the request to the desired servlet, and get the welcome-file to point to the index.jsp file.
But when I type in I still end up with the default Tomcat index.jsp file
Something is obviously in the wrong place. Can you help?
Thanks a mil
14 years ago
Thanks folks
I'm going with Lunarpages. They seem to have very good reviews and their versions of software (eg. MySQL, etc) appear to be the most current.
They were also very good on providing assistance, but then I won't read too much into that - any new business likes a new customer :roll:
$9.95 a month for everything I need. Not sure if that's a good deal but it fits my pocket ok for now.
Interestingly, they charge $14.95 to register your domain. I'd registered mine a couple of years ago via Yahoo! and they stung me (and continue to sting me) for $35 per annum. I thought it was a standard price across the board
Thanks again for the links.
14 years ago
Ok so after passing SCWCD I wrote what I thought was a great web app to capture golfing statistics, allowing users to register and enter their own data, display graphics of their golf rounds, handicaps, etc.
What started out as a fun-study exercise has actually become quite practical, and I'd like to host it as a 'real' web site. Only I don't really know where to start?
The application is written using purely Java, Servlets, JSP, JavaScript, and JDBC to connect to a MySql database. Do I need to find a provider that supports these technologies? Will I be able to perform admin on 'my' database remotely?
All I have so far is a web domain of my own which I registered via Yahoo! Can anyone tell me where to go from there?
Thanks a mil
14 years ago

Originally posted by Richard Hawkes:
One embarrasing translation experience occurred with a New Zealander while I was working in a supermarket during my student days.

I know, I know. My wife is a Kiwi
And then there was the bloke in the States who looked at me very strangely when I asked if he needed a 'lift'.
How did the English language get into such a mess?
14 years ago

Originally posted by Matt Cao:
Do you know any one in UK before you venture there? What I am looking for is the network connection, the only reliable source of employment opportunity.

There's a frightening amount of truth in this. After many years in this bizarre IT world, it appears that sound experience in general IT and the principles of system development and implementations don't count for much anymore. More of a buzz-word, flavour-of-the-day type of market where a student with 6 months experience with the correct version of a sought-after technology will be an employer's preferred choice. Most agencies are just a further level of abstraction, many of which often stand as an unwanted impediment between a qualified employer and their desired job.
Having a contact in the right place is worth a thousand CV's, and there's nothing like a good reference to get you going. Failing that, you can research various companies on the net, get the HR contact numbers, and call them. Some of the benefits of this rather simple approach is that it eliminates waiting for responses (or hoping the employers are trawling the correct CV websites), you tend to get a yes-or-no answer straight away, and it also gives the employer a chance to know more about you than just your CV covering letter.
Better still, try and win the UK lottery
14 years ago