Meaningless Drivel is fun!*
The moose likes EJB and other Java EE Technologies and the fly likes HELP!!! java and activex Control Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Java » EJB and other Java EE Technologies
Bookmark "HELP!!! java and activex Control" Watch "HELP!!! java and activex Control" New topic
Author

HELP!!! java and activex Control

neha gowda
Greenhorn

Joined: Feb 04, 2004
Posts: 23
Hi All

I have a action class from which I have to load a web page with a activex control.
I�m using xml,xslt as the front end. I�ve to pass xml string to this activex control. How do I do it and how do I embed activex control in the web page.
Plz mail me the sample code.


regards
Neha
Paul Sturrock
Bartender

Joined: Apr 14, 2004
Posts: 10336

This is really an HTML question neha gowda, so you would probably get more help in that forum. Typically I believe you would use either param tags in conjunction with your object tag, or use the data attribute of the object tag to specify the xml. Without knowing anything about what params your activex control takes, I can't be any more specific.


JavaRanch FAQ HowToAskQuestionsOnJavaRanch
neha gowda
Greenhorn

Joined: Feb 04, 2004
Posts: 23
Thanks Paul Sturrock .

<OBJECT CLASSID="clsid:5220cb21-c88d-11cf-b347-00aa00a28331" id="Microsoft_Licensed_Class_Manager_1_0">
<PARAM NAME="LPKPath" VALUE="resources/images/Bg/IDePNA41.lpk"/>
</OBJECT>
<OBJECT ID="ctlPNATool" CLASSID="clsid:1219640C-63C5-47C7-9834-7171B5426070" CODEBASE="resources/images/Bg/IDePNA41.CAB#version=2004,100,0,1202">
<PARAM NAME="_ExtentX" VALUE="26452"></PARAM>
<PARAM NAME="_ExtentY" VALUE="10000"></PARAM>
</OBJECT>

this is the code I have in my XSL to display the Activex Control.It works fine .Activex control takes xml data as input.I've generated the xml but don't know how to feed xml data to the activex control. I need help in handling http request of the activex control.

regards
Neha gowda
Paul Sturrock
Bartender

Joined: Apr 14, 2004
Posts: 10336

There are two ActiveX controls there. Include nested <param /> tags. Your input data can probably be passed to the control with a param tag - either by writing the whole document into a tag (remember to CDATA it, if you have to do this), or by passing a url to your document saved as a file on the server. Check the documentation for the ActiveX control(s) to see if you can do either of these (and what name the params require).
 
wood burning stoves
 
subject: HELP!!! java and activex Control
 
Similar Threads
MS-DOS and javascript
A Strange Error while running the javascript on different machines?
Java and activeX ?
Java and Activex Control
Enabling Active X control in servlets