Win a copy of Murach's Python Programming this week in the Jython/Python forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

problem with Links which address jsp page in subdirectpry of www root  RSS feed

 
Ramina Nibilian
Ranch Hand
Posts: 65
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi
I have a very strange problem with my web application
I used SiteMesh successfully with my web application
Now the problem is that :
some of my web pages (.jsp) files are in subdirectory of my root www
you think that in :
jsp/pages/products/aaaa.jsp
when i click on link wich should open aaaa.jsp
it opens the page but all other part of my page scrambe
it seems that application context changes
images are lost , links does not works correctly ..

e.g : an image with links like this does not open
images/search.gif

when i check the image src in html page it was :
its images/search.gif


What should i do pleas?
 
S Venkatesh
Ranch Hand
Posts: 464
Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
you say that your jsp is in this folder
jsp/pages/products/aaaa.jsp

what about the images?
are they in jsp/pages/products/images?(or)
have you placed it in jsp/images?

if u have placed it in jsp/images then use relative path for that images as ../../images/search.gif.

otherwise the code should work fine.

Hopefully it should work!

Regards
Venkatesh S
 
Bear Bibeault
Author and ninkuma
Marshal
Posts: 65826
134
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
"Venkatesh S",

There aren't may rules that have been put into place here on the Ranch, but one that we take very seriously regards the use of proper names. Please take a look at the JavaRanch Naming Policy and adjust your display name to match it.

In particular, your display name must be a first and a last name separated by a space character, and must not be obviously fictitious.

Thanks!
bear
Forum Bartender
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!