cancel
Showing results for 
Search instead for 
Did you mean: 

HTML file in Webdynpro java using NWDS

Former Member
0 Kudos

Hi


I was trying to include the html file  using Iframe in WDJ application which is developed in NWDS 7.1.but its show error,Kindly see the screen shot.

Regards,

Antony.A

Accepted Solutions (1)

Accepted Solutions (1)

ErvinSzolke
Product and Topic Expert
Product and Topic Expert
0 Kudos

Hi,

afaik you need to put the html file to folder Resources -- src -- mimes -- Components -- <your component folder>. You can find this in WebDynpro Explorer View, in your wd java project structure.

After that you can refer the html file for the "source" property of your IFrame UI element.

(The idea is similar to the WebContent folder in case of Dynamic Web Apps)

I hope this helps.

Regards,

Ervin

Former Member
0 Kudos

Hi Ervin,Jun,

Kindly check the following image ,pls give a solution.

Regards,

Antony.A

former_member191044
Active Contributor
0 Kudos

Please Try with only "/hht.html" as source path.

Former Member
0 Kudos

hi ,

Not working ji, kindly give a another solution...

Regards,]

Antony.A

former_member191044
Active Contributor
0 Kudos

Well, infact it does work since the HTML was found as you can see. It seems like you have problem with your HTML content.

Regards,

Tobias

Former Member
0 Kudos

hi Tobias,

now i wrote simple html code, but it is also not working

<!DOCTYPE html>

<html>

<head>

  <title>Page Title</title>

</head>

<body>

  <h1>This is a Heading</h1>

  <p>This is a paragraph.</p>

</body>

</html>

ErvinSzolke
Product and Topic Expert
Product and Topic Expert
0 Kudos

Hi,

it works to me.

1.

2.

3.

The HTML code looks as follows:


<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">

<html>

<head>

<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">

<title>Insert title here</title>

</head>

<body>

<h1>HTML embbedded into WD Java application </h1>

<h2 style='color: green;'> test works </h2>

</body>

</html>

I hope this helps.

If not, you can also try the UI element WebWidget. As far as I remember with that one you can also display HTML content, and IFrame has been deprecated (and un-deprecated) couple of times.

Cheers,

Ervin

P.S.: ouch, I wrote embedded with double b. Anyway. Perhaps I should not work when I am on holiday.

Former Member
0 Kudos

Hi Ervin,

             Thanks ton buddy...its working

ErvinSzolke
Product and Topic Expert
Product and Topic Expert
0 Kudos

I am glad to hear it! 😉

Answers (2)

Answers (2)

junwu
Active Contributor
0 Kudos

code please

former_member191044
Active Contributor
0 Kudos

Hi Antony,

it looks like your given URL is simply wrong and points to an non existing resource. Please check your URL.

Regards,

Tobias