File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Struts and the fly likes including webpage in jsp Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "including webpage in jsp" Watch "including webpage in jsp" New topic
Author

including webpage in jsp

kumaresan Natarajan
Greenhorn

Joined: Jul 23, 2005
Posts: 27
Hi,

I am using Tiles framework in my project and we have a tiles in top and right side that need to be display sponcer link need to display more then one link in every tiles sections.

I tried with below code

<%
String destination = "www.web.com";
<jsp:include page=destination />
%>

its not getting the content of the page.

Can any one help me to find the solution.

Thanks,
Kumaresan N


Thanks and Regards
kumaresan N
Harpreet Singh janda
Ranch Hand

Joined: Jan 14, 2010
Posts: 317

Try it with the EL
kumaresan Natarajan
Greenhorn

Joined: Jul 23, 2005
Posts: 27
EL ?
kumaresan Natarajan
Greenhorn

Joined: Jul 23, 2005
Posts: 27
Ok , I need to include another webpage to my jsp, How can I ?

Thanks,
Kumaresan N
Ulf Dittmer
Marshal

Joined: Mar 22, 2005
Posts: 41525
    
  53
What's needed is not the EL, but JSTL. See the JspFaq for links to a JSTL introduction. Part 2 - Core has a section on "URL actions", which is what you need.


Ping & DNS - my free Android networking tools app
 
Consider Paul's rocket mass heater.
 
subject: including webpage in jsp