[hotjoe.com] HotJoe Java Help Forums
  [Search] Search   [Recent Topics] Recent Topics   [Hottest Topics] Hottest Topics   [Members]  Member Listing   [Groups] Back to home page 
[Register] Register / 
[Login] Login 
Visit java.com
Please send email if you are having login problems - see the posts below for more info.
Hotmail and Yahoo! users - please see the Hotmail post or the Yahoo! post for information on lost emails.
Accessing Web Service from JSP or Servlet  XML
Forum Index » J2EE Application Development
Author Message
swmk

Newbie

Joined: 08/06/2006 21:39:18
Messages: 1
Offline

Hi, all...

I am new to WS and I wanna know how can I access a web service from a JSP or Servlet. I mean for JavaEE5.


Thanks in advance,
Stephen
stdunbar

Newbie
[Avatar]

Joined: 06/22/2005 14:51:37
Messages: 849
Location: Superior, CO, USA
Offline

I'm not yet using JEE 5 but it looks like there are some samples that are part of the JEE 5 spec. This is good news for those of us who have been using other implementations for a while now.

I would caution you about the design though. A JSP is really meant for display purposes, not "code". You're likely going to be better off having a bean of some sort behind the JSP that does the actual communication with the web service and have the JSP interact with that bean. That way you keep your display logic separate from your back end logic.

Thanks for using the forums at hotjoe.com
[WWW] [Yahoo!] [ICQ]
 
Forum Index » J2EE Application Development
Go to:   
Powered by JForum 2.1.9 © JForum Team
This site run by Scott Dunbar of Xigole Systems. © 2005-2011 - Scott Dunbar
Oracle and Java are registered trademarks of Oracle and/or its affiliates. Other names may be trademarks of their respective owners
hotjoe.com, xigole.com, and Scott Dunbar have no affiliation with Oracle