hi,
I have a requirement to include a website in my jsp file,say http://www.abc.com . But the problem jsp:include does not support any protocols. how to achieve this functionality??


Thanx,
lpk

Recommended Answers

All 3 Replies

Here is a good example by using taglib and import functionality:

JSP to Include External

Also one point, unless things have changed, from what I recall is the jsp:include only allows for "local" resources to be fetched.

I have used a similar method before and it worked quite well...

HTH's
sinnerFA

Hi SinnerFA,
Thanks for the reply. Still i am not able to achieve this functionality.Some the custom taglibs in the external jsp are not getting compiled and displayed as plain text in my JSP.


Thanks,
lpk

Either use an IFRAME to embed an external site on your web page or use the "import" JSTL core tag (<c:import>).

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.