Hi All,
          Does anybody know how to call Jaguar components from a JSP , I have
the code for calling a Jaguar component from an ASP but don't know the
corresponding JSP syntax , can anyone throw some light on this.

TIA
Santosh

ASP code:
<%
     theURL = "iiop://servername:9000"
     Set aORB = Server.CreateObject("Jaguar.ORB")
     aORB.init("")

     Set aManager = aORB.string_to_object( theURL
).Narrow_("SessionManager/Manager")
     Set aSession =
aManager.createSession("jagadmin","password").Narrow_("SessionManager/Session")
     Set aFactory = aSession.lookup("pkg/n_comp")
     Set obj = aFactory.Create().Narrow_("pkg/n_comp")

     sz = obj.uf_get()
     Set aFactory = nothing
     Set aSession = nothing
     Set aManager = nothing
     Set aORB = nothing
     Set obj = nothing

     Response.Write sz
%>

===========================================================================
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
Some relevant FAQs on JSP/Servlets can be found at:

 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.html
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets

Reply via email to