Urgent - import an html( which is in cluster) in jsp
Hi All,
here is my problem:
1. I have a sample.jsp in app server.
2. I have add.html in web server.
3. these two servers are clustered
4. i want to import this static html in to jsp.
i am unable to include html file in webser
i tried like this <jsp:include page="<%=req.getContextPath()%>/add.html" />
how to add a html file in jsp. and that html is in clustered evironment.
Please help me to slove this
Thanks in advance......
NG
# 2
but, it is showing as separate text area......
the text i am including from html should look like single page
jsp - Hi
html - some text
now when i use iframe - total page looks like:
Hi
in text area it shows some text
but i my requirement says
it should be:
Hi
Some text
# 5
When using <jsp:include> you don't need to specify the root context path.
<jsp:include> treats / as the root context for this web app (ie its already in this context)
<jsp:include page="/add.html"/>
You need to include the context path when you are generating URLs for the client which knows nothing about the web application context.