Win a copy of TDD for a Shopping Website LiveProject this week in the Testing forum!

sarah smith

Greenhorn
+ Follow
since Sep 30, 2005
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 sarah smith

Same error

Thank you for your suggestion, though.
16 years ago
Ok, I've found a bit more information on this - not sure if it will clarify at all. When I added the img tag and opened the jsp page it was actually running my java code with an empty request. Naturally, since it was a totally empty request, there were no parameters and hence the NullPointer. So, i went into my java and put a catch for that.

Now there's no null pointer, but there's also no image and no error message to give me any clue about why.

Any ideas? This one's makin' me crazy.
16 years ago
I'm very new to struts - but I'm trying to set up a basic form page, and I'd like to place an image on it. I created an images directory in the same directory as my .jsp page. Then, i created an img tag:

<html:img page='/images/header.jpg'/>

This gives me a NullPointerException, although the file is definitely there.

Here's the whole page:



I created a parallel html page that finds it just fine. Any ideas would be wonderful -
Thanks in advance,
~{S}~
[ September 30, 2005: Message edited by: sarahl2 ]
16 years ago