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 Struts loading a web application inside a Div Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


JavaRanch » Java Forums » Frameworks » Struts
Bookmark "Struts loading a web application inside a Div" Watch "Struts loading a web application inside a Div" New topic
Author

Struts loading a web application inside a Div

Aravind Sivaramakrishnan
Greenhorn

Joined: Nov 22, 2007
Posts: 7
Hi ,

Iam new to struts.
Currently iam migrating the existing web application to Struts2
Basically we are having 2 web applications(app1 and app2)
In app1 there is a jsp page containing a "DIV" ,i need to load app2 inside this "DIV"
Is it possible to do so,could any one please provide code to do this ,

Thanks in Advance
strutsbeginner
Sagar Rohankar
Ranch Hand

Joined: Feb 19, 2008
Posts: 2902
    
    1

Welcome to JR.

I have't did something like your requirement before, but have a look in FRAME html element, it may have some help for you.
http://www.w3.org/TR/REC-html40/present/frames.html


[LEARNING bLOG] | [Freelance Web Designer] | [and "Rohan" is part of my surname]
Aravind Sivaramakrishnan
Greenhorn

Joined: Nov 22, 2007
Posts: 7
Hi ,
Thanks for the reply,
It can be done using frame set ,
As iam migrating existing app to struts2 due to dependency i need to use DIV,
Thanks
Aravind


Sagar Rohankar
Ranch Hand

Joined: Feb 19, 2008
Posts: 2902
    
    1

Aravind Sivaramakrishnan wrote:As iam migrating existing app to struts2 due to dependency i need to use DIV,

How about <jsp:include />

Now, you have to play a little bi as page attribute takes the relative path.
Aravind Sivaramakrishnan
Greenhorn

Joined: Nov 22, 2007
Posts: 7
Thanks a lot for reply!!
Sagar Rohankar
Ranch Hand

Joined: Feb 19, 2008
Posts: 2902
    
    1

IS that helpful, if so, then welcome
 
GeeCON Prague 2014
 
subject: Struts loading a web application inside a Div