cancel
Showing results for 
Search instead for 
Did you mean: 

how to use iframe to generate a dynamic URL for error message

Former Member
0 Kudos

Hi guys,

I am new to web dynpro java and having my first webdynpro project. Just wondering how to acquire the host name, port number and error message info. dynamically in order to form the following URL format. The iframe is directed to this following URL address.

http://<%host name%>:<%port number%>/portal/ErrorPage.all?MSGID=<%=SYMSGID%>&NO=<%=SYMSGNO%>&PROG=<%=SYREPID%>

I need to replace the <%...%> part with the dynamic content. Any one could provide me with some ideas? What java classes I should use? Thanks very much.

Accepted Solutions (0)

Answers (1)

Answers (1)

former_member185029
Active Contributor
0 Kudos

hi

Not sure why to you need hostname and port.

You can assign relative path to the Iframe. (e.g. /test/error.html )

You can use context to generate the dynamic path and assign it to IFrame.

-Ashutosh

Former Member
0 Kudos

Thanks. Our company has a standard error message webpage. When you put all the values in that URL template, it can display it in a well formated way. But I am still not sure how to get them.