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

[519 byte] By [JavaBaby@79a] at [2007-11-27 5:26:08]
# 1
html != jsp.Use (i)frame.
BalusCa at 2007-7-12 14:46:42 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...
# 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

JavaBaby@79a at 2007-7-12 14:46:42 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...
# 3
It's for inside a textarea?Well, you may consider to use a servlet or a bean to call the HTML file using URL and return it as a String property to the textarea.This might be useful: http://java.sun.com/docs/books/tutorial/networking/urls/readingURL.html
BalusCa at 2007-7-12 14:46:42 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...
# 4
no its not inside text area...when i used (i)frame it looks like text area.... and also i get a scroll bar....it shouldnt be the case.......
JavaBaby@79a at 2007-7-12 14:46:42 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...
# 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.

evnafetsa at 2007-7-12 14:46:42 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...