on 02-18-2007 5:37 PM
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
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>
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
91 | |
10 | |
10 | |
9 | |
9 | |
7 | |
6 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.