Win a copy of Practical SVG this week in the HTML/CSS/JavaScript forum!
    Bookmark Topic Watch Topic
  • New Topic

forward from one application to other application

 
Raj Kumar Bindal
Ranch Hand
Posts: 418
  • Mark post as helpful
  • send pies
  • Report post to moderator
Please tell me the number of ways in which we can forward from one application to another application running on different containers.I think these 2 can work :
1.ServletContext.getRequestDispatcher.forward("URL of the 2nd application")
2.response.sendRedirect("URL")
But,i am not sure,please tell if there are any other ways.
One more thing,if 2 applications are running on same container,then also,it will be the same case,because,in that case,we just have the url.
Please correct if i am wrong.
 
Raj Kumar Bindal
Ranch Hand
Posts: 418
  • Mark post as helpful
  • send pies
  • Report post to moderator
Is there no one who can tell the number of ways in which we can forward the control from one application to other application...
 
abhishek jethwani
Greenhorn
Posts: 14
  • Mark post as helpful
  • send pies
  • Report post to moderator
you can tranfer the control from one application to another in different way. the two way you have already given.

but i think this also depends upon the framework you use. like if you use Spring you can directly use forward to model and in model you define the url where you want to go, the same way for struts.
 
Ben Souther
Sheriff
Posts: 13411
Firefox Browser Redhat VI Editor
  • Mark post as helpful
  • send pies
  • Report post to moderator
Originally posted by Raj Kumar Bindal:
Is there no one who can tell the number of ways in which we can forward the control from one application to other application...


Please see:
http://faq.javaranch.com/java/EaseUp

You asked your question on a Sat evening US and Western Europe time and then several hours later on Sunday morning.
a) Many of our users are not near their computers during these hours.
b) Just because someone didn't answer your question, doesn't mean that there isn't anyone who knows the answer. Personally, I tend to skip right past short questions that require long answers (like what are all the ways to do xyz...?) and then come back to them last, if at all. This is especially true the original poster has also asked a lot of other, unrelated, questions at the same time.

To insure that questions do get the best response possible, see:
http://faq.javaranch.com/java/HowToAskQuestionsOnJavaRanch
 
Bear Bibeault
Author and ninkuma
Marshal
Posts: 65535
108
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Report post to moderator
Please do not post the same question in more than one topic.
 
    Bookmark Topic Watch Topic
  • New Topic
Boost this thread!