webMethods

webMethods

Join this online group to communicate across IBM product users and experts by sharing advice and best practices with peers and staying up to date regarding product enhancements.

 View Only
  • 1.  Hoy to display img in server on html img tag

    Posted Wed March 03, 2021 11:52 AM

    I have imgs in C:\SoftwareAG\MWS\server\default\temp\DemoCRUD in the server machine.
    image

    What is the path for it if I need to use a html img tag?

    error in console in html page:

    GET http://hosthere:8585/meta/default/wm_xt_fabricfolder/temp/DemoCRUD/Asistencia1.png 404 (Not Found)


    #webMethods
    #MWS-CAF-Task-Engine
    #ui
    #JSF


  • 2.  RE: Hoy to display img in server on html img tag

    Posted Thu March 11, 2021 09:28 AM

    You should make the image part of your custom app by placing it under the WebContent dir or another subfolder of it (e.g. DemoCRUD/WebContent/images/Asistencia1.png). Later on, it should be accessible via the URL: http://hosthere:8585/DemoCRUD/images/Asistencia1.png


    #ui
    #MWS-CAF-Task-Engine
    #JSF
    #webMethods


  • 3.  RE: Hoy to display img in server on html img tag

    Posted Thu March 11, 2021 11:55 AM

    Hello, thank you so much for your reply.
    The fact is I upload this images there with input file.
    I have a upload images form and save them here C:\SoftwareAG\MWS\server\default\temp\DemoCRUD.
    Its possible save these images on DemoCRUD/WebContent/images/ in app execution?
    Im affraid I have to deploy this images inside the project for see them in execution, have I?,


    #MWS-CAF-Task-Engine
    #webMethods
    #ui
    #JSF


  • 4.  RE: Hoy to display img in server on html img tag

    Posted Fri March 12, 2021 06:05 AM

    Yes, if possible - these images should be part of the application itself, before it’s deployed to MWS.


    #webMethods
    #ui
    #JSF
    #MWS-CAF-Task-Engine


  • 5.  RE: Hoy to display img in server on html img tag

    Posted Fri March 12, 2021 11:33 AM

    Hi. These images are upload by final user as part of UI application on CREATE view, like upload their profile picture, for example.

    I have a second view that read and show that you create before on CREATE view.
    In my read and show I have to show this picture.


    #webMethods
    #ui
    #JSF
    #MWS-CAF-Task-Engine


  • 6.  RE: Hoy to display img in server on html img tag

    Posted Sun March 14, 2021 06:08 AM

    my_portlet_app.zip (12.1 KB)

    Uploading a sample project, which demonstrates how you could dynamically display images for each user. To test it:

    1. Import it in SAG Designer and upload it to MWS.
    2. Copy an arbitrary png file to C:\SoftwareAG\MWS\server\default\temp\DemoCRUD and name it ‘sysadmin.png’. Just for the test.
    3. Log in MWS as sysadmin and go to Folders > System > Portlets > my_portlet_app > my_portlet.
    4. The image from step 2 should be displayed.

    #ui
    #MWS-CAF-Task-Engine
    #webMethods
    #JSF