|
|
| *** How to communicate with different web applications ? ? ? ? |
Expert:srinivas
Deepak ji thanks for fast reply still i have some doubt about this How to communicate with different web applications which are under same or different servers? ex :- ..localhost:8080/first/jsp/display.jsp ..localhost:8080/second/jsp/show.jsp here i want send session details from first/jsp/display.jsp to second/jsp/show.jsp without using query string like that
In your answer
display.jsp -------------- <%@ page session="true" %> <% String name = "Kumar"; session.putValue("name",name); String url =response.encodeURL("show.jsp"); %> <a href='<%=url%>'>show.jsp</a>
here this anchor tag showing ..localhost:8080/first/jsp/show.jsp not ..localhost:8080/second/jsp/show.jsp => so i meant to say that first and second are different contexts.
if i am trying to response.encodeURL("..localhost:8080/second/jsp/show.jsp");
show.jsp ----------- <% String name =(String)session.getValue("name"); out.println("Name value in session is "+name); %> in the show.jsp i am getting null value
can u guide me how to achive this if possible send me some code thanks in advance to all java experts.
Deepak ji plz help me. |
| Answers |
| More Questions |
|
|
Post Answers
Ask Question
Facing Programming Problem?
|
|
|
|
|