This week's book giveaways are in the Java EE and JavaScript forums.
We're giving away four copies each of The Java EE 7 Tutorial Volume 1 or Volume 2(winners choice) and jQuery UI in Action and have the authors on-line!
See this thread and this one for details.
The moose likes JSP and the fly likes how to call web services in JSP? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of The Java EE 7 Tutorial Volume 1 or Volume 2 this week in the Java EE forum
or jQuery UI in Action in the JavaScript forum!
JavaRanch » Java Forums » Java » JSP
Bookmark "how to call web services in JSP?" Watch "how to call web services in JSP?" New topic
Author

how to call web services in JSP?

harshada patil
Ranch Hand

Joined: Mar 12, 2011
Posts: 96
I'm designinga portlet in JSP, in which i want to call web service, how to do it?
Prasad Krishnegowda
Ranch Hand

Joined: Apr 25, 2010
Posts: 512

That is not what JSP is used for, its should be used only as a view. You could use your servlet to call webservice.


Regards, Prasad
SCJP 5 (93%)
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 61090
    
  66

Indeed. The time to be using JSPs inappropriately for anything other than constructing the view are long long past.


[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
 
Consider Paul's rocket mass heater.
 
subject: how to call web services in JSP?