• Post Reply Bookmark Topic Watch Topic
  • New Topic

how to access an external server thriugh a jsp?  RSS feed

 
Preeti Aggarwal
Greenhorn
Posts: 9
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I want to access an external server through a jsp? can i do it via using pageContext.include() or response.sendRedirect()?
I also want to check whether the web server is running on that external server or not?Condition is we can't change or add any file on the external server.
 
brisk rook
Greenhorn
Posts: 20
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
preeti,
i use response.sendRedirect() and it works pretty good....
like this...
response.sendRedirect("http://bkn001:8080/myApps/newpage1.jsp");
br
 
Sarath Mohan
Ranch Hand
Posts: 213
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Preeti,
If you want to check whether external server is alive and access resource from that server, try these classes
java.net.HttpURLConnection
bin
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!