Hi Ben,
Thanks for the reply.
But I am getting error because its trying to pass "/actualContextPathName"
I mean to say that i am trying to pass the context path to the js function and as there is a forward slash "/" it might be giving the problem. I want to use the context path in the js function to open a jsp page.
If you see my code, i am using request.getContextPath() only.
But my confusion is still there because i thought that we can use the context path with any resource we are including but it does not seem like that.
If you see the code above in my previous post, I needed to include jsp in a different way than html and so forth.
I understanding was from wherever I am calling/including the resource contextpath should still work.
So in my code I should able to use:
/Contextpath/jsp/test.jsp
/Contextpath/html/test.html
/Contextpath/css/test.css etc.
It would be great if you can explain it further.
Thanks Bear for letting me know about that jsp, js stuff.
Actually I am very new to all these stuff.
Thanks and regards,
Karan