# Display jpg files on jsp page via Applinx 5.2.5

**URL:** <https://techcommunity.softwareag.com/t/display-jpg-files-on-jsp-page-via-applinx-5-2-5/100036>\
**Category:** Forum\
**Tags:** Mainframe-Integration, ApplinX\
**Created:** [March 28, 2012, 8:25pm UTC](https://techcommunity.softwareag.com/t/display-jpg-files-on-jsp-page-via-applinx-5-2-5/100036 "2012-03-28T20:25:57Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![JoeA](https://avatars.discourse-cdn.com/v4/letter/j/b38774/32.png) [@JoeA](https://techcommunity.softwareag.com/u/JoeA)\
**Post date:** [March 28, 2012, 8:25pm UTC](https://techcommunity.softwareag.com/t/display-jpg-files-on-jsp-page-via-applinx-5-2-5/100036/1 "2012-03-28T20:25:57Z")

</div>

We have a need to display jpg image files in a Natural application that is web-enabled with Applinx 5.2.5. Since we are front-ending the application with Applinx, we need to come up with an efficient way of showing these on the jsp pages. The Natural Application would selectively choose the image files for display, so they can be different each time.

It was suggested that we have the Natural program place the jpg names on the screen, say within a gx.table, and then use Applinx to place these on the page in an ![]() statement that would allow them to show. Also, maybe use the individual field names from the table instead of a gx.table using a gx.span.

One problem is how to actually build the ![]() statement to have these jpg names imbedded for the display.

Has anyone ever dealt with a similar situation such as this, or do you have any suggestions that may be cleaner, easier, or workable?

Thanks in advance for any assistance.

---

<div class="post-metadata">

**Author:** ![Assaf\_Appel](https://avatars.discourse-cdn.com/v4/letter/a/f4b2a3/32.png) [@Assaf\_Appel](https://techcommunity.softwareag.com/u/Assaf_Appel)\
**Post date:** [March 29, 2012, 10:21am UTC](https://techcommunity.softwareag.com/t/display-jpg-files-on-jsp-page-via-applinx-5-2-5/100036/2 "2012-03-29T10:21:24Z")

</div>

Hello Joe,

ApplinX framework provides user exists to change a table display dynamically. You can find an example in ApplinX documentation of using the function gx\_changeControl for setting an image tag onclick event dynamically with the user address in each row.  
[url][http://techcommunity.softwareag.com/ecosystem/documentation/webmethods/wmsuites/wmsuite8-2\_sp2/ApplinX/8-2-SP2\_ApplinX/advdev/TablesIntro.htm#customtabledisplay[/url]](http://techcommunity.softwareag.com/ecosystem/documentation/webmethods/wmsuites/wmsuite8-2_sp2/ApplinX/8-2-SP2_ApplinX/advdev/TablesIntro.htm#customtabledisplay%5B/url%5D)

in your case you need to set the ![]() tag with attribute src instead of onclick

Note: this example is taken from 8.2 documentation but this functionality is also available in 5.2.  
In addition I would highly recommend to upgrade to newer version as 5.2 is out of support.

Hope it helps,  
Assaf

---

<div class="post-metadata">

**Author:** ![JoeA](https://avatars.discourse-cdn.com/v4/letter/j/b38774/32.png) [@JoeA](https://techcommunity.softwareag.com/u/JoeA)\
**Post date:** [March 29, 2012, 7:31pm UTC](https://techcommunity.softwareag.com/t/display-jpg-files-on-jsp-page-via-applinx-5-2-5/100036/3 "2012-03-29T19:31:52Z")

</div>

Hi Assaf,

With a little adjustment and a lot of caffeine, it worked just fine. Thanks for your assiatance.

Regards,

Joe

---

<div class="post-metadata">

**Author:** ![system](https://global.discourse-cdn.com/techcommunity/original/3X/c/d/cd19967bb605d28a72d77eb83a1cae22f3df2eb8.svg) [@system](https://techcommunity.softwareag.com/u/system)\
**Post date:** [April 2, 2021, 3:01pm UTC](https://techcommunity.softwareag.com/t/display-jpg-files-on-jsp-page-via-applinx-5-2-5/100036/4 "2021-04-02T15:01:43Z")

</div>

Closed on April 2, 2021, 3:01pm UTC


