Hi All!

I have a varchar2 type column in my database which contains a link to an image. When I go to a page, I want to show the image via the link. I made the following procedure for this task:

api_component.seturl('alPanel.IMAGE','\r99999\Backup\IS12915.jpg');

In the 'alPanel' panel there is an IMAGE component, whose url I want to change programmatically. <image name="IMAGE" url="asdf"/>

When I run the application, the image doesn't appear. This is the html source code of the generated page:

<.IMG id=IMAGE-alPanel class="bdf-visual-element bdf-component bdf-image x-border-panel " style="FONT-SIZE: 11px; TEXT-DECORATION: none; BORDER-TOP: medium none; HEIGHT: 224px; FONT-FAMILY: Arial; BORDER-RIGHT: medium none; WIDTH: 243px; BORDER-BOTTOM: medium none; FONT-WEIGHT: normal; COLOR: #202020; FONT-STYLE: normal; LEFT: 0px; BORDER-LEFT: medium none; TOP: 0px" src="%5Cr99999/Backup/IS12915.jpg">"

The backslash character gets replaced by %5C and the the link is broken. Probably the problem is that the backslash character is an escape character.

How can I solve this problem? Thanks, Dani

asked 05 Dec '14, 08:00

Dani's gravatar image

Dani
111
accept rate: 0%


Hi Dani,

There are couple of issues:

  1. Use / instead of .
  2. The default location that Tomcat will start looking is under the Formspider directory where the main.jsp file exists. Is the folder r99999 under the Formspider folder in Tomcat at the same level with main.jsp? If yes, the way you set the URL is correct. If it is not, then you should change URL you are setting. You can either give the full path (http://www.mywebsite.com/mypictures/r99999/Backup/IS12915.jpg) or go up one or more levels using the ../ syntax for going level up. (../../ for two levels and so on.) and continue using a relative path.
  3. Please note that only files that Tomcat allows public access can be referenced this way. Unless you made specific modifications these are all the files and folders under: [Your Tomcat Installation]/webapps/ .

Kind Regards,
Yalim

link

answered 05 Dec '14, 09:20

Yalim's gravatar image

Yalim ♦♦
2.8k5
accept rate: 22%

Your answer
toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text](http://url.com/ "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Tags:

×10
×10

Asked: 05 Dec '14, 08:00

Seen: 750 times

Last updated: 05 Dec '14, 09:20


© Copyright Gerger 2017