Win a copy of Murach's Python Programming this week in the Jython/Python forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

can i do this ?  RSS feed

 
Asim Zafar
Greenhorn
Posts: 14
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
1) Can i forward the request from my JSP to another JSP located
on a different machine on the internet ?
(e.g if my URL is www.one.com/one.jsp can this jsp use forward tag ro forward the request object to www.two.com/two.jsp) ?
2) Can i open URL connection from my JSP to www.two.com/two.jsp ?
3) Can i open sockets, what kind of limitations are there ?
any help will be highly appreciated
Regards
Asim Zafar.
 
Vlad Patryshev
Ranch Hand
Posts: 61
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
1) Can i forward the request from my JSP to another JSP located
on a different machine on the internet ?
Sure you can. You can do anything that can be done in HTML.
2) Can i open URL connection from my JSP to www.two.com/two.jsp ?
Yes, inside your Java code.
3) Can i open sockets, what kind of limitations are there ?
This is also possible, why not. JSP is on the server side - no sandbox, basically.
 
Consider Paul's rocket mass heater.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!