BorlandTalk.com Forum Index BorlandTalk.com
Borland discussion newsgroups
 
Archives   FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Images and servlets

 
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> JBuilder IDE
View previous topic :: View next topic  
Author Message
Michael Kelly
Guest





PostPosted: Tue May 18, 2004 6:33 pm    Post subject: Images and servlets Reply with quote



I'm trying to get my servlet and jsps to include some image files. I've
tried dozens of places to deposit them but no matter where I try, when I
run the servlet the images can not be found.

Fortunately deployment to an actual production server went smoothly, but
now I'm doing another web project and would love to have this mystery
solved.

Anyone have a reference I can read on the subject or a hint?

Back to top
Flip
Guest





PostPosted: Tue May 18, 2004 7:13 pm    Post subject: Re: Images and servlets Reply with quote



Quote:
Anyone have a reference I can read on the subject or a hint?
Are you deploying this in an EAR, WAR, or blown up? If you're doing this

blown up (as in a development environment), you may have some problems when
you goto deploy it as a WAR or EAR. You might want to take a look at
creating a resource jar file and then using the
getClass.getResourceAsStream() and make sure the resource.jar file is on/in
the classpath.

There is also putting them into the WEB-INF directory structure, but that is
a bit harder to faithfully reproduce in a deployment environment for
development, testing, QA, and release modes.

But then again, the other gurus here may have some better ideas. I tried
this for my swing test apps and it works well when everything is all jar'd
up.



Back to top
Display posts from previous:   
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> JBuilder IDE All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2006 phpBB Group
SEO toolkit © 2004-2006 webmedic.