Win a copy of Mesos in Action this week in the Cloud/Virtualizaton forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

multiple context problem

 
Shailesh Chandra
Ranch Hand
Posts: 1082
Java Oracle Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi all,


I am facing a problem in my application because of multiple context. here is explanation of my problem.

I have multiple war files here is, those are part of single ear but they have different web context.

On user interaction with the help common menu in top frame, user switched to different context and comes back to previous context.


Now my problem is that when user switch to different context every thing works file, but whenever user comes back to context of my was file context does not change , however page gets displayed .

since context page is not able to include css and js files, because we are using context relative url....

I am using following steps during context switching




hope I could explain my problem,

please advice how do I switch context so that I can get the all relative resources....

Shailesh
 
Ben Souther
Sheriff
Posts: 13411
Firefox Browser Redhat VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The servlet spec doesn't cover cross context behaviour in great detail (compared with other aspects of servlet apps) so, at best I would expect inconsistant behaviour between different containers.

Which one are you using?

Also, out of curiosity, why did you spread your app over multiple contexts?
It's something I've never done and have wondered what motivates others to do so.

Last, since this is more of a servlet issue than a JSP specific one, I'm going to move it to our Servlets forum.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic