Results 1 to 2 of 2

Thread: Image loading

  1. #1
    Join Date
    Dec 2010
    Posts
    10

    Default Image loading

    Hi, I'm trying to load an image as a background of a link . This way :

    <a href="?lang=es"><img src="../../img/spanishFlag.png"></img></a>

    I'm looking for the image whith different path, but I can't render it . My file tree is :

    WebApp
    - css
    - img (where resides the image)
    ...
    spanishFlag.png
    ...
    - META-INF
    - WEB-INF
    ...
    - jsp
    ...
    menuTop.jsp
    ...
    ...
    ...

    the code above it`s from menuTop.jsp . I want to know if it's possible to avoid spring theming . I only want to load an image, not a complete theme, but it doesnt find it.

  2. #2
    Join Date
    Dec 2010
    Posts
    10

    Default Solved

    Solved issue . Using JSTL ...

    <a href="?lang=es"><img src="<c:url value="/img/spanishFlag.png" />"/></a>

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •