Java Help
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsProgramming LanguagesJava Help

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
Generate data entry and reporting .NET Web apps in minutes, straight from your database. Read our FREE whitepaper “Build Web 2.0 Applications Without Hand-Coding” Download now!
  #1  
Old October 29th, 2001, 07:55 AM
martin76 martin76 is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Oct 2001
Location: Bangalore
Posts: 1 martin76 User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Send a message via AIM to martin76 Send a message via Yahoo to martin76
Post Invoking COM Objects from JSP

I am interested in invoking COM objects from my JSP Page. Can anyone help me !


Bye
Martin !

Reply With Quote
  #2  
Old November 11th, 2001, 01:23 AM
sLiPkNoT rUlEz sLiPkNoT rUlEz is offline
PHP Coder
Dev Shed Newbie (0 - 499 posts)
 
Join Date: May 2001
Location: Ontario
Posts: 66 sLiPkNoT rUlEz User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 8
Send a message via ICQ to sLiPkNoT rUlEz Send a message via AIM to sLiPkNoT rUlEz Send a message via Yahoo to sLiPkNoT rUlEz
The JNI is probably the only chance you have which means you'll need to know some C++... why would you want to use COM anyway?
__________________
Click here and wait. It's a kewl effect, trust me.

Reply With Quote
  #3  
Old November 12th, 2001, 07:35 PM
rmontrose rmontrose is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Mar 2001
Location: Irving, Texas USA
Posts: 1 rmontrose User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
I would look at J-Integra's (URL) COM-Java bridging tool. It allows you call COM objects from Java code without having to write C++ or native code. You need a pretty good understanding of how the COM object is suppose to work, but if you have that then it should work. It is pricy (about $3K) but if you are going commercial work then it will be work your time.

(BTW, I evaluated their product and it worked for the evaluation, but we were able to come up with a pure Java solution and didn't need the COM library. So I haven't bought it to use in a production environment and can't comment on that).

Reply With Quote
  #4  
Old November 13th, 2001, 05:27 AM
sub sub is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jan 2001
Location: Brazil
Posts: 4 sub User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Lightbulb Reading excell files

create a DNS connection employee_xls
and try the code below...

import java.io.*;
import java.net.*;
import java.sql.*;
import java.util.*;

public class ReadExcell{
public static final String DRIVER_NAME = "sun.jdbc.odbc.JdbcOdbcDriver";
public static final String DATABASE_URL = "jdbc:odbc:employee_xls";

public static void main(String[] args)
throws ClassNotFoundException, SQLException{
Class.forName(DRIVER_NAME);
Connection con = null;
try {
con = DriverManager.getConnection(DATABASE_URL);
Statement stmt = con.createStatement();
ResultSet rs = stmt.executeQuery
("select 1stcol, 2ndcol, 3rdcol, etc... from [NAME_OF_SHEET$]");
while (rs.next()) {
String ONE = rs.getString(1);
String TWO = rs.getString(2);
String THREE = rs.getString(3);
int ETC = rs.getInt(4); //If it is int

System.out.println("First: " + 1stcol + " Second: " + 2ndcol + " Third: " + 3rdcol...);
}
rs.close();
stmt.close();
}
finally {
if (con != null)
con.close();
}
}
}

Reply With Quote
Reply

Viewing: Dev Shed ForumsProgramming LanguagesJava Help > Invoking COM Objects from JSP


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 5 hosted by Hostway