EGL Development User Group

EGL Development User Group

EGL Development User Group

The EGL Development User Group is dedicated to sharing news, knowledge, and insights regarding the EGL language and Business Developer product. Consisting of IBMers, HCL, and users, this community collaborates to advance the EGL ecosystem.

 View Only
Expand all | Collapse all

EGL Web Project and context root

  • 1.  EGL Web Project and context root

    Posted Sat September 19, 2015 08:39 PM

    Hi Folks,

    I'm not expert in web page configuration and I have a little problem.
    the document attached can explain my problem.

     

    I appreciate if anyone can answer

    Thanks a lot !

     

    Hsieh

    Hsieh


  • 2.  Re: EGL Web Project and context root

    Posted Mon September 21, 2015 03:58 AM

    Hi Hsieh

    you have almost guessed the answer yourself, as your headline about the "Context root" is the answer. 

    The reason why the first "../visage.gif" is not shown and the second "visage.gif" is shown is that the WebContent folder ifself in your web project does not exist when the project is deployed.

    What is deployed is only the files + sub-folders inside the WebContent folder, and therefore is the phrase "../" (that should identify the folder containing the visage.gif)  not valid.

    The visage.gif is located in the root folder - also named the web "Context root".

    Hope that explains your problem.

    btw. in the future I guess you will add your own *.gif files to a sub-folder named "images" or similar. In that case the reference to the file must be a relative path SRC="images/visage.gif"

    Best Regards

    Morten Hansen, IBM Denmark

    mohaIBMDK


  • 3.  Re: EGL Web Project and context root

    Posted Mon September 21, 2015 02:50 PM

    Hi Morten,

    Thanks for your tips.

    I'm migrating VAGen WEB Transaction to EGL and the customer web project doesn't use image folder.  All image is in webcontent root.

    I did a test and i created a image folder. All image was moved to image folder and automatically all image references in jsp were changed to this new path.

    Very Good !   It woks fine now !

     

    Regards,

     

    Hsieh

    Hsieh