This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
The moose likes JSP and the fly likes regarding access of another server Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Java » JSP
Bookmark "regarding access of another server" Watch "regarding access of another server" New topic
Author

regarding access of another server

Venkat Kanneganti
Ranch Hand

Joined: Nov 30, 2007
Posts: 43
Hi,
i have new problem,let me explain first
i have one jsp page running on localhost server,from that jsp page i need to access other jsp on antoher server running on different system,
i know we can use sendRedirect() but once request is dispatched to other jsp,
again i need my server execute remaing page of my jsp
any one help to this problem
Ben Souther
Sheriff

Joined: Dec 11, 2004
Posts: 13410

Lookup the JSTL Import tag.
<c:import ... />


Java API J2EE API Servlet Spec JSP Spec How to ask a question... Simple Servlet Examples jsonf
Venkat Kanneganti
Ranch Hand

Joined: Nov 30, 2007
Posts: 43
Hi,
Thanks for your response,already i have used c:import but i am getting 'ConnectionException ',any suggestions
Regards
Venkat
Ben Souther
Sheriff

Joined: Dec 11, 2004
Posts: 13410

Rather than looking for alternatives, why don't you start by debugging the issue with c:import?


Do you have a full stack trace you can share with us?
What does your c:import tag look like?
Have you tried hitting the URL directly with a browser to test it?
Have you tried this from the machine on which your container is hosted?
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: regarding access of another server
 
Similar Threads
JSP Help very urgent
How do I use my functioning Java?
jasper Exception: unable to compile JSP
Applet in a html page and using Tomcat
tomcat session handling