• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

including the jsp of other application

 
Balasubramani Dharmalingam
Ranch Hand
Posts: 116
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hai ,
i have two application named as Application1 and Application2
In Application2 i have a jsp file called Form.jsp.
is it possible to include this Form.jsp in a jsp file of Application1

Thnks in advance..
 
Kedar Dravid
Ranch Hand
Posts: 333
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The JSTL <c:import> tag lets you achieve this sort of functionality, but I don't think it will allow you to import an entire JSP page. You can only import HTML fragments, GIF images, etc.
 
Balasubramani Dharmalingam
Ranch Hand
Posts: 116
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks
 
Balasubramani Dharmalingam
Ranch Hand
Posts: 116
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hai ,
now i m setting some value in the session in JSP file of application2
but i m not able to get that value in the JSP of application1..

is any other way to set the attribute in application2 and get that value from application 1.

Here is my code ,

Application1 JSP file :
<c:import url="http:localhost:8080/application2/Form.jsp"/>

<%= session.getAttribute("Data") %>



Application2 JSP file :

<% session.setAttribute( "Data" , "Hello world" ); %>



Thnks in advance..
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic