• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

including the jsp of other application

 
Ranch Hand
Posts: 116
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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..
 
Ranch Hand
Posts: 333
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Thanks
 
Balasubramani Dharmalingam
Ranch Hand
Posts: 116
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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..
 
Consider Paul's rocket mass heater.
reply
    Bookmark Topic Watch Topic
  • New Topic