Win a copy of Kotlin in Action this week in the Kotlin forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Regarding URI  RSS feed

 
georgejk
Greenhorn
Posts: 24
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
We have an application using JSP & EJB using struts as framework. The beans are already deployed in the Weblogic sever & the webapplication is accessing that beans under a context path "ECatalogAdmin". The problem is when i am specifying my image path in my JSP file , i am using like <img src="../images/go_.gif"> But it is not able to locate that image because it is not able to findout the CONTEXT path which the application is running.
But i specify the image path like :
<img src="<%=request.getContextPath()%/images/go_.gif"
its working.
If anybody can suggest any idea, that would be fine.
 
William Brogden
Author and all-around good cowpoke
Rancher
Posts: 13078
6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I like to specify a <base> tag in the <head> of a page, then the rest of your references can be relative to that base URI.
Bill
 
Consider Paul's rocket mass heater.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!