Hi vijay,
For the first question,
No. We can't use with protocol,port,domain name etc. It is ALWAYS RELATIVE. I did check this with one of my web application. When we include the full path like "http://localhost:....." , the jsp DOES NOT include the contents. On the other hand when we say the relative url, it includes the contents of the 'relative url' file.
To confirm this I went to Sun's site and refered to their JSP syntax reference. It also says this. This reference is really helpful and handy at needed times.
Please check this
Jsp Syntax reference list at Sun's site.
---------------------------------------
http://java.sun.com/products/jsp/tags/11/tags11.html The include tag reference is here
---------------------------------------
http://java.sun.com/products/jsp/tags/11/syntaxref11.fm6.html It says this
"The pathname to the included file, which is always a relative URL. Simply put, a relative URL is just the path segment of an URL, without a protocol, port, or domain name, like this:
"error.jsp""/templates/onlinestore.html""/beans/calendar.jsp"
For the second part I post it soon.
regds
maha anna