• 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

Context Paths in web clients of enterprise applications

 
Greenhorn
Posts: 13
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I have an enterprise application with two different web clients. Say web1 and web2(I'm using netbeans 6 with Glass Fish V2)

Initially when running the enterprise application, the context path is set to /web1Home.jsp. I'm trying to have a reference from this jsp page to another jsp page in the next web application(web2).

Is this possible? If it is possible how can I change the context path to /web2. When I try to do this, application is looking for the second jsp page also in the same context path as the first one and gives a file not found error.

PWC6117: File "D:\Enterprice1\dist\gfdeploy\web1_war\web2Home.jsp" not found
 
Ranch Hand
Posts: 167
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi,

What I understand from your question is about cross context communication. As fas as I know, you can't refer any resource which is external to your context. But what you can do is to open a socket connection (URLConnection) to the other context. Search on "Cross Context Communication" and I'm sure there are many posts already on this.
 
Sandareka Fernando
Greenhorn
Posts: 13
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Thanks.
[ November 29, 2008: Message edited by: Sandareka Fernando ]
 
Ranch Hand
Posts: 383
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I am not sure if this is what you want, but JSTL has a <c:import> tag, and one of the attributes is a context, so that you can dynamically include resources from other contexts on the same server.
Also, you can try:

Of course, you may not like it as it is low level, and you should ckech for null return values, but if nothing else is available, this is always there for you, and can be a basis for a custom tag or sth.
Regards.
 
What are you saying? I thought you said that Santa gave you that. And this tiny ad:
a bit of art, as a gift, that will fit in a stocking
https://gardener-gift.com
reply
    Bookmark Topic Watch Topic
  • New Topic