cancel
Showing results for 
Search instead for 
Did you mean: 

Publish and access HTML page

Former Member
0 Kudos

Hi java gurus,

a pretty basic question. myself been with abap background , struggling with java.

my requirement is to publish an html page and access it on the Portal. ( ofcourse propogate this thru NWDI)

for this i did the following

i have created a development component of type Enterprise application named "addinfo"

i cretae danother development compoenent of type web module named "addinfo"

in this web module i created a html doc named "addinfo.html"

i build the DC and checked int he activity and the activity is successfully deployed. Now how do i access this html page.

I am trying to access it by http://host:50100/addinfo/addinfo.html this gives a message the requested resource does not exist

I tried http://host:50100/addinfo.html it gives the same error message. Am i missing anything here. Is there anything that o need to do to access this html page and what is the actual link to access this page.

Please advise.

regards

Sam

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

http://host:50100/addinfo.html

is wrong. this wont work ever...

http://host:50100/addinfo/addinfo.html

should work if and only if

1. addinfo.html is inside the folder <b>webContent</b> of your web module

2. application.xml in your ear project has got following entry

<module>

<web>

<web-uri><b>NAME OF THE WEB MODULE PRJ.war</b></web-uri>

<context-root><b>addinfo</b></context-root>

</web>

</module>

Answers (2)

Answers (2)

Former Member
0 Kudos

thanks amol.. problem solved. The issue was as i created the application using development components, the context-root was a development component name rather than the ear file addinfo.

regards

sam

Message was edited by:

sameer chilama

Message was edited by:

sameer chilama

Former Member
0 Kudos

Accessing it this way in terms off path is the right one:

http://host:50100/addinfo/addinfo.html

Not the one you types later.

You have to access a web module project through a JSP.

Rename your html file to addinfo.jsp

Make sure its in the JSP folder.

Access it then this way

http://host:50100/addinfo/addinfo.jsp

P.S. If my answer helped you consider rewarding points.