Simple CVS example

Hello,
Does anyone know about a basic example that shows how to create a simple csv file based on an SQL query from a jsp file?
Thanks....

I guess I wasn't very clear. I'm only using jsp to format the page and to present a link or button to the user saying something like 'download report in cvs format'. I won't run my SQL query from within my jsp page, this will happen in a servlet.
I'm working in web environment and that's why I mentioned jsp in my posting. What I would like to know is how do I make it possible for my jsp page to present my users with a dialogue box where they can access my data in a csv file which they can then either view or save to their local system...?
It's pretty straight forward in PHP, so I figured it would be a similar approach when using jsp...?

Similar Messages

  • Simple Java Example for DI API

    Hello,
    I have a Java Application and would like to connect to a SAP BO Database using JCO and DI API.
    I want a simple java example that just connects to the BO Database and returns an item name or value or a recordset from the database.
    Since i dont have the names of what kind of fields, items , tables exist in the SAP BO Demo database i need a basic example to make sure that i can connect to the database and retrieve data from the DB.
    Any help in this regard would be appreciated...
    Amit

    Dear Amit Hingher,
    The B1 JCO is a java wrapper for DI API so basically you could refer to DI help for all objects, methods and properties.
    Here the jave sample for connection function:
    package test;
    import com.sap.smb.sbo.api.*;
    public class ConnectSAP {
         // company interface
         public ICompany company;
         private SBOErrorMessage errMsg = null;
         public static void main(String[] args) {
              ConnectSAP company = new ConnectSAP();
              company.conn();
         //method make connection andinitialize company instance
         public int conn() {
              int rc = 0;
              try {
                   company = SBOCOMUtil.newCompany();
                   company.setServer("(local)");
                   company.setCompanyDB("test");
                   company.setUserName("manager");
                   company.setPassword("manager");
                   company.setDbServerType(...);
                   company.setUseTrusted(new Boolean(false));
                   company.setLanguage(SBOCOMConstants.BoSuppLangs_ln_English);
                   company.setDbUserName("Sa");
                   company.setDbPassword("123");
                   company.setAddonIdentifier("...");     
                   company.setLicenseServer("...");
                   rc = company.connect();
                   if (rc == 0) {
                        System.out.println("Connected!");
                   } else {
                        errMsg = company.getLastError();
                        System.out.println(
                             "I cannot connect to database server: "
                                  + errMsg.getErrorMessage()
                                  + " "
                                  + errMsg.getErrorCode());
              } catch (Exception e) {
                   e.printStackTrace();
                   return -1;
              return rc;
         public void freeConnection(){
              company.disconnect();
    Best Regards
    Jane Jing
    SAP Business One Forums team

  • Error running A Simple MDB example with oc4j

    Hi All,
    I am new to OC4J, I am trying the example for MDB from OTN's site, A Simple MDB example with OC4J. When I start my OC4J on the command line > java -jar oc4j.jar
    I get the following exception:
    Error deploying file:/C:/unzipped/mdb_hello_world/build/mdb/mdb.jar homes: No lo
    cation set for Topic resource MessageDrivenBean MDB
    Error in application mdb: Error loading package at file:/C:/unzipped/mdb_hello_w
    orld/build/mdb/mdb.jar, Error deploying file:/C:/unzipped/mdb_hello_world/build/
    mdb/mdb.jar homes: No location set for Topic resource MessageDrivenBean MDB
    04/07/09 15:21:40 Error instantiating application 'mdb' at file:/C:/unzipped/mdb
    helloworld/build/mdb.ear: Error initializing ejb-module; Exception Error in ap
    plication mdb: Error loading package at file:/C:/unzipped/mdb_hello_world/build/
    mdb/mdb.jar, Error deploying file:/C:/unzipped/mdb_hello_world/build/mdb/mdb.jar
    homes: No location set for Topic resource MessageDrivenBean MDB
    04/07/09 15:21:41 Error starting HTTP-Server: Address already in use: JVM_Bind
    04/07/09 15:21:41 Oracle Application Server Containers for J2EE 10g (9.0.4.0.0)
    initialized
    I have just followed all the steps provided to run the example exactly as given.
    I did add my Topic and TopicConnectionFatory entries in my jms.xml -
    <topic name="The Topic" location="jms/theTopic">
    <description>A MDB topic</description>
    </topic>
    <topic-connection-factory location="jms/theTopicConnectionFactory" />
    Here is the ejb-jar.xml given in the example:
    <?xml version="1.0"?>
    <!DOCTYPE ejb-jar>
    <ejb-jar>
    <enterprise-beans>
    <message-driven>
    <description>My message driven bean</description>
    <ejb-name>MDB</ejb-name>
    <ejb-class>MDB</ejb-class>
    <transaction-type>Container</transaction-type>
    <message-driven-destination>
    <destination-type>javax.jms.Topic</destination-type>
    <subscription-durability>NonDurable</subscription-durability>
    </message-driven-destination>
    <resource-ref>
    <description>The log topic where log events are broadcasted...</description>
    <res-ref-name>jms/theTopic</res-ref-name>
    <res-type>javax.jms.Topic</res-type>
    <res-auth>Container</res-auth>
    </resource-ref>
    <resource-ref>
    <description>The Factory used to produce connections to the log topic...</description>
    <res-ref-name>jms/theTopicConnectionFactory</res-ref-name>
    <res-type>javax.jms.TopicConnectionFactory</res-type>
    <res-auth>Container</res-auth>
    </resource-ref>
    </message-driven>
    </enterprise-beans>
    <assembly-descriptor>
    <container-transaction>
    <method>
    <ejb-name>MDB</ejb-name>
    <method-name>*</method-name>
    </method>
    <trans-attribute>Supports</trans-attribute>
    </container-transaction>
    </assembly-descriptor>
    </ejb-jar>
    Here is my orion-ejb-jar.xml:
    <?xml version="1.0"?>
    <!DOCTYPE orion-ejb-jar PUBLIC "-//Evermind//DTD Enterprise JavaBeans 1.1 runtime//EN" "http://xmlns.oracle.com/ias/dtds/orion-ejb-jar.dtd">
    <orion-ejb-jar deployment-version="1.0.2.2" deployment-time="e7f5a3f42d">
    <enterprise-beans>
    <message-driven-deployment name="MDB" destination-location="jms/theTopic" connection-factory-location="jms/theTopicConnectionFactory">
    <resource-ref-mapping name="jms/theTopic" />
    <resource-ref-mapping name="jms/theTopicConnectionFactory" />
    </message-driven-deployment>
    </enterprise-beans>
    <assembly-descriptor>
    <default-method-access>
    <security-role-mapping name="&lt;default-ejb-caller-role&gt;" impliesAll="true" />
    </default-method-access>
    </assembly-descriptor>
    </orion-ejb-jar>
    I don't know what is wrong. Please help me.
    Rohini

    Hello,
    I guess that you didn't define the Topic and/or TopicConnectionFactory on your OC4J
    Inside $J2EE_HOME/config (see: subfolders .../j2ee/home/config e.g.)folder are several xml files appropriate for OC4J configuration. There's also jms.xml. Please, verify this one, it should have some entries for your settings.
    Just like in an example below:
    <topic-connection-factory name="TopicConnectionFactory" location="jms/TopicConnectionFactory"/>
    <topic name="theTopic" location="jms/theTopic"/>
    The names should be the same like in your MDB deployment descriptors. It works of course after next OC4J server restart.
    I hope helped you
    Krzysztof

  • Need a simple Dashboard example

    Hello All,
    Can any one provide me an simple Dashboard example (Charts)  using Flex 3 .
    The dashboard should use a MYSQL database as a source.
    Many thanks,

    this is the mxml file
    <?xml version="1.0" encoding="utf-8"?>
    <mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" layout="vertical" creationComplete="init()">
        <mx:Script>
            <![CDATA[
                import mx.collections.ArrayCollection;
                import mx.rpc.events.ResultEvent;
                [Bindable] private var dataColl:ArrayCollection;
                private function init():void{
                    xmlServ.send();
                private function handleResult(event:ResultEvent):void{
                    dataColl = (event.result as ArrayCollection).getItemAt(0).main as ArrayCollection;
            ]]>
        </mx:Script>
        <mx:HTTPService id="xmlServ" url="data.xml" resultFormat="array" result="handleResult(event)"/>
        <mx:TabNavigator id="myTabz" width="100%" height="100%">
            <mx:Canvas label="DataGrid" width="100%" height="100%">
                <mx:DataGrid dataProvider="{dataColl}" width="100%" height="100%">
                    <mx:columns>
                        <mx:DataGridColumn dataField="Products" headerText="Products"/>
                        <mx:DataGridColumn dataField="stock" headerText="Stock"/>
                    </mx:columns>
                </mx:DataGrid>
            </mx:Canvas>
            <mx:Canvas label="Line Chart" width="100%" height="100%">
                <mx:LineChart id="myLineChart" dataProvider="{dataColl}" showDataTips="true" width="100%" height="100%">
                    <mx:horizontalAxis>
                        <mx:CategoryAxis dataProvider="{dataColl}" categoryField="Products"/>
                    </mx:horizontalAxis>
                    <mx:series>
                        <mx:LineSeries yField="stock" displayName="Stock"/>
                    </mx:series>
                </mx:LineChart>
            </mx:Canvas>
            <mx:Canvas label="Bar Chart" width="100%" height="100%">
                <mx:BarChart id="myBarChart" dataProvider="{dataColl}" showDataTips="true" width="100%" height="100%">
                    <mx:verticalAxis>
                        <mx:CategoryAxis dataProvider="{dataColl}" categoryField="Products"/>
                    </mx:verticalAxis>
                    <mx:series>
                        <mx:BarSeries yField="Products" xField="stock" displayName="Stock"/>
                    </mx:series>
                </mx:BarChart>
            </mx:Canvas>
            <mx:Canvas label="Pie Chart" width="100%" height="100%">
                <mx:PieChart id="myPieChart" dataProvider="{dataColl}" showDataTips="true" width="100%" height="100%">
                    <mx:series>
                        <mx:PieSeries field="stock" nameField="Products" labelPosition="inside"/>
                    </mx:series>
                </mx:PieChart>
            </mx:Canvas>
        </mx:TabNavigator>
    </mx:Application>
    and the data.xml is
    <?xml version="1.0"?>
    <main>
        <Products>Products 1</Products>
        <stock>36</stock>
    </main>
    <main>
        <Products>Products 2</Products>
        <stock>48</stock>
    </main>
    <main>
        <Products>Products 3</Products>
        <stock>46</stock>
    </main>
    <main>
        <Products>Products 4</Products>
        <stock>78</stock>
    </main>

  • Simple jsp example of using BI Bean in Myeclipse

    hi
    anyone can show me a simple jsp example of using BI Bean in Myeclipse
    or how to import BI Bean into Myeclipse
    I would so thankful for who can answer me.. please its urgent
    thanks

    Sorry, I was not very clear in my last message.
    I need all my webservices to share the same bean during one user session.
    Then, if a page calls 2 different web services, only 1 database connection is made instead of 2. And if the user opens other pages which call other webservices, they will use the connection kept into the session bean.
    Anyway, I tried to do like it is said in your website but I can not build my project. I have an error : java.lang.LinkageError: JAXB 2.0 API is being loaded from the bootstrap classloader, but this RI (from jar:file:/C:/.../build/web/WEB-INF/lib/jaxb-impl.jar!/com/sun/xml/bind/v2/model/impl/ModelBuilder.class) needs 2.1 API. Use the endorsed directory mechanism to place jaxb-api.jar in the bootstrap classloader. I do not understand because I have downloaded the jax-ws 2.1.1 api and no other libraries are imported in my project. :-(
    I wonder if it is not related to netbeans...

  • Simple JSP example problems

    Hello, I am new to JSP and I was wondering if I could get some help from some people that know what they are doing. I'm trying to run a simple JSP example that I got out of a book. But I've modified it a bit to just play around with it. But it doesn't want to run. I'm starting to think it's something wrong with the way I'm building/installing the stuff. I'm running IBM WebSphere 4 and JBuilder 8. I was just wondering if you could look at my code just to make sure I'm doing this right.
    It's a pretty simple example. A JSP calls a class to get a message to print out.
    Here's the code for the class: (HelloWorld.java)
    package helloworld;
    public class HelloWorld
    private String message = "No message specified";
    public String getMessage()
    return(message);
    public void setMessage(String message)
    this.message = message;
    =================================================================
    Here's the code for the JSP: (HelloWorld.jsp)
    <html>
    <head>
    <title>Using JavaBeans with JSP</title>
    </head>
    <body>
    <jsp:useBean id="helloWorld" class = "helloworld.HelloWorld" />
    <ol>
    <li>Initial Value (JSP Expression):
    <%= helloWorld.getMessage() %></li>
    <li><jsp:setProperty name="helloWorld"
    property="message"
    value="Hello World" />
    Value after setting property with setProperty:
    <jsp:getProperty name="helloWorld"
    property="message" /></li>
    </ol>
    </body>
    </html>
    I just wanted to be able to test out a JSP hitting a class file. Does someone have a better/easier way to do this? Or do you see anything wrong with my example? Thanks in advance.

    The 1 thing missing in your example is the import directive for the helloworld.HelloWorld class.
    Add the following line somewhere around the start of your jsp and things should be fine
    <%@ page import="helloworld.HelloWorld" %>
    Cheers

  • Simple DataSocket example hangs the DataSocket server

    Hi,
    I am having problems with the Simple DataSocket example. As soon as I try to connect to the DataSocket server on the local machine using dstp the server crashes. The error signature is:
    AppName: cwdss.exe          AppVer: 4.2.3.1                 ModName: mfc42.dll
    ModVer: 6.2.4131.0            Offset: 0001bc9b
    By restarting the server I am sometimes able to connect but most of the time this only results in a repeated crash. Furthermore when I try to close either the reader or the writer after such a crash I get the error message “the RPC-server is not available”. The only way to close the program is to use the task manager. I am using Measurement Studio 7.1 and Visual Studio 2003 version 7.1.3088 and I have successfully used DataSocket to communicate with an OPC server on the local machine. I would appreciate any suggestions on how to solve the problems since I would like use dstp in my own applications.
    Adam

    As I wrote in the original post, it is the simple datasocket example that I am having trouble with. I have managed to get the reader and writer to talk to each other by restarting the datasocket server repeatedly, but since the datasocket server crashes most of the times when I try to connect to it (i.e. I press either manual or auto update connect) this is rather tedious work. I think that the files were replaced correctly; at least the file cwdss.exe reappeared. The version of cwdss.exe is 4.2.3.1. Which other files should I check? The version of nids.dll is the same, i.e. 4.2.3.1.
    Adam

  • Simple struts example but it doesn't work

    Hello everybody,
    I'm new in struts technology and I wanted try a simple struts example, but it didn't work. Here are listings of code:
    *** struts-config .xml (is located in WEB-INF/) :
    <?xml version="1.0" encoding="ISO-8859-1" ?>
    <!DOCTYPE struts-config PUBLIC
    "-//Apache Software Foundation//DTD Struts Configuration 1.0//EN"
    "http://jakarta.apache.org/struts/dtds/struts-config_1_0.dtd">
    <struts-config>
    <form-beans>
    <form-bean name="registerForm" type="app.RegisterForm"/>
    </form-beans>
    <action-mappings>
    <action path="/register"
    type="app.RegisterAction"
    name="registerForm">
    <forward name="success" path="/success.html"/>
    <forward name="failure" path="/failure.html"/>
    </action>
    </action-mappings>
    </struts-config>
    *** RegisterAction.java (located in WEB-INF/classes/app):
    package app;
    import org.apache.struts.action.*;
    import javax.servlet.http.*;
    import java.io.*;
    public class RegisterAction extends Action {
         public ActionForward perform(ActionMapping mapping, ActionForm form,
                   HttpServletRequest req, HttpServletResponse res) {
              // b Cast the form to the RegisterForm
              RegisterForm rf = (RegisterForm) form;
              String username = rf.getUsername();
              String password1 = rf.getPassword1();
              String password2 = rf.getPassword2();
              // c Apply business logic
              if (password1.equals(password2)) {
                   return mapping.findForward("success");
              // E Return ActionForward for failure
              return mapping.findForward("failure");
    *** RegisterForm.java (located in WEB-INF/classes/app):
    package app;
    import org.apache.struts.action.*;
    public class RegisterForm extends ActionForm {
    protected String username;
    protected String password1;
    protected String password2;
    public String getUsername() {return this.username;};
    public String getPassword1() {return this.password1;};
    public String getPassword2() {return this.password2;};
    public void setUsername(String username) {this.username = username;};
    public void setPassword1(String password) {this.password1 = password;};
    public void setPassword2(String password) {this.password2 = password;};
    *** faulire.html ( located webapps/NAME_APPLICATION/ )
    <HTML>
    <HEAD>
    <TITLE>FAILURE</TITLE>
    </HEAD>
    <BODY>
    Registration failed!
    <P>try again?</P>
    </BODY>
    </HTML>
    *** success.html ( located webapps/NAME_APPLICATION/ )
    <HTML>
    <HEAD>
    <TITLE>SUCCESS</TITLE>
    </HEAD>
    <BODY>
    Registration succeeded!
    <P>try another?</P>
    </BODY>
    </HTML>
    *** register.jsp ( located webapps/NAME_APPLICATION/ )
    <%@ taglib uri="/WEB-INF/struts-html.tld" prefix="html" %>
    <html:form action="register.do">
    UserName:<html:text property="username"/><br>
    enter password:<html:password property="password1"/><br>
    re-enter password:<html:password property="password2"/><br>
    <html:submit value="Register"/>
    </html:form>
    *** web.xml (located in WEB-INF/)
    <?xml version="1.0" encoding="ISO-8859-1"?>
    <!DOCTYPE web-app
    PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 2.2//EN"
    "http://java.sun.com/j2ee/dtds/web-app_2_2.dtd">
    <web-app>
    <!-- Standard Action Servlet Configuration (with debugging) -->
    <servlet>
    <servlet-name>action</servlet-name>
    <servlet-class>
         org.apache.struts.action.ActionServlet
         </servlet-class>
    <init-param>
    <param-name>application</param-name>
    <param-value>ApplicationResources</param-value>
    </init-param>
    <init-param>
    <param-name>config</param-name>
    <param-value>/WEB-INF/struts-config.xml</param-value>
    </init-param>
    <init-param>
    <param-name>debug</param-name>
    <param-value>2</param-value>
    </init-param>
    <init-param>
    <param-name>detail</param-name>
    <param-value>2</param-value>
    </init-param>
    <init-param>
    <param-name>validate</param-name>
    <param-value>true</param-value>
    </init-param>
    <load-on-startup>2</load-on-startup>
    </servlet>
    <!-- Standard Action Servlet Mapping -->
    <servlet-mapping>
    <servlet-name>action</servlet-name>
    <url-pattern>*.do</url-pattern>
    </servlet-mapping>
    <!-- Struts Tag Library Descriptors -->
    <taglib>
    <taglib-uri>/WEB-INF/struts-bean.tld</taglib-uri>
    <taglib-location>/WEB-INF/struts-bean.tld</taglib-location>
    </taglib>
    <taglib>
    <taglib-uri>/WEB-INF/struts-html.tld</taglib-uri>
    <taglib-location>/WEB-INF/struts-html.tld</taglib-location>
    </taglib>
    <taglib>
    <taglib-uri>/WEB-INF/struts-logic.tld</taglib-uri>
    <taglib-location>/WEB-INF/struts-logic.tld</taglib-location>
    </taglib>
    </web-app>
    After start of NAME_APPLICATION it show register form (register.jsp) but when I fill out all information and submit those information it show empty window in internet browser and in url box is something like this:
    http://localhost:8084/StrutsTest/register.do;jsessionid=2304C0A9820E7FCC23106C16564D51A8
    where is a problem? Thank you

    Employing a descendent of the Action class that does not implement the perform() method while using the Struts 1.0 libraries. Struts 1.1 Action child classes started using execute() rather than perform(), but is backwards compatible and supports the perform() method. However, if you write an Action-descended class for Struts 1.1 with an execute() method and try to run it in Struts 1.0, you will get this "Document contained no data" error message in Netscape or a completely empty (no HTML whatsoever) page rendered in Microsoft Internet Explorer.
    Also check this URL http://www.geocities.com/Colosseum/Field/7217/SW/struts/errors.html

  • Simple JMS example.

    simple JMS example.
    i am trying to execute this simple example SimpleQueueSender.java from the tutorial provided at http://java.sun.com/products/jms/tutorial/1_3_1-fcs/doc/client.html#1027210
    in this example it is creating empty initial context;
    jndiContext = new InitialContext();
    with empty InitialContext i got (javax.naming.NoInitialContextException: Need to specify class name in environment or system property, or as an applet parameter, or in an application resource file: java.naming.factory.initial)
    so i have modified it to
    Properties prop = new Properties();
    prop.setProperty(Context.INITIAL_CONTEXT_FACTORY, "weblogic.jndi.WLInitialContextFactory");
    prop.setProperty(Context.PROVIDER_URL, "t3://192.168.3.91:7001");
    jndiContext = new InitialContext(prop);
    after making this changes and looking up for
    queueConnectionFactory = (QueueConnectionFactory) jndiContext.lookup("QueueConnectionFactory"); // here it is returning weblogic.jms.common.DestinationImpl.classs
    i am still getting java.lang.ClassCastException
    i have configured weblogic 8.1 and created new JMS server and created JMSQueue named 'QueueConnectionFactory' and JNDI name 'jndi_QueueConnectionFactory'
    what else do i need to add or change to my code or environment
    also tell me is this
    Context.INITIAL_CONTEXT_FACTORY = "weblogic.jndi.WLInitialContextFactory" right value
    ******************************************************************************************

    hmnn...well if I remember correctly you need to create an instance of a ConnectionFactory or a QueueConnectionFactory in weblogic and then request that via jndi.
    To explain, what I believe is happening is that you've said you created a Queue in weblogic and named it xxxQueueConnectionFactory. You are then trying to cast this Queue to a QueueConnectionFactory. Based on what I thought I understood of jms this doesn't work. You need to lookup an instance of an actual ConnectionFactory and then use that to create a queue.
    good luck.

  • Bug in Teststand 2014 Simple UI Example ?

    Hi,
    I am using Teststand 2014 and LabVIEW 2013 SP1.
    I would like to create a UI for a Teststand sequence that I have created.
    I have started with the Simple UI example (Source Code) shipped with NI.
    Located at  - C:\Users\Public\Documents\National Instruments\TestStand 2014 (32-bit)\UserInterfaces\Simple\LabVIEW\Source Code
    I have encountered with an unexpected behaviour - when running the User Interface VI and selecting a Sequence, it works fineat first, but if I Exit the application (the VI return to edit mode), I cannot run the application again until I close LabVIEW completely.
    There seems to be more resources that are open.\\
    Steps to reproduce - 
    1. Create an Empty VI (called 1.vi for example)
    2. Create a Sequence that only calls the 1.vi in the Main Group. (called 1.seq for example)
    3. Open 'Build Script.lvproj' located at "C:\Users\Public\Documents\National Instruments\TestStand 2014 (32-bit)\UserInterfaces\Simple\LabVIEW\Source Code"
    4. Open and run Top-Level.vi.
    5. Click on 'Open Sequence File' and Select the 1.seq, Click on 'Single Pass' and the application should finish running the sequence (with the one VI in it) very fast.
    6. Exit the application.
    7. repeat on steps 4 and 5.
    Am I missing something ?
    When using the compiled application (exe), it works fine when called repeatedly.
    I would like to be able to add changes to the VI and to be able to run it again and again... 
    Amitai.
     

    Hi,
    I tried with the same combination and did the exact steps to reproduce.
    With the "Reserve Loaded VIs for execution" enabled i am seeing this :
    After execution is completed if i click on close execution and close sequence file, the empty test vi is read only (reserved - not in edit mode)
    However when i disable this :
    After execution and clickingon "close execution" + "close sequence file" -- i can edit the test vi.
    Probably i am missing something from the steps to reproduce?
    Additionally did you observe this behaviour with other UI/Sequence editor?
    Regards,
    Ravi

  • Simple bluetooth example labview pda

    hi, im trying to use the simple bluetooth examples on the pda, i can compile and run the client  on the pda no problems but when i try running the server on the computer it just stops straight off, i thought it was the timeout but thats still at 3000 and i havent changed anything on it.
    i running xp pro sp2, broadcom 2045 adapter and a ipaq 5550 with bluetooth
    any help would be ace
    cheers
    andy

    Hi Andy,
    LabVIEW will only support devices that use Microsoft's Bluetooth Stack, and unfortunatly it appears yours does not. The following list of bluetooth devices are supported by Microsoft's bluetooth stack and therefore LabVIEW:
    Belkin F8T012UK1 EDR Bluetooth USB Adapter
    Belkin F8T003 Bluetooth USB Adapter - 10 Meters ( Belkin F8T003 ver. 2 don't seems to work )
    Billionton GUBTCR41 - 100 m (Software included in the package not installed)
    Conceptronic "Bluetooth 2.0 USB Adapter 200M" CBTU2A / CBT200U2A (Software in the package not installed)
    Dell Wireless 350 Bluetooth Module
    D-Link DBT-120 Bluetooth Adaptor
    Encore USB Dongle (Microsoft Stack)
    Exwell BD-U08 EDR Bluetooth USB Adapter
    Exwell BD-U01 Bluetooth USB Adapter - 10 Meters
    Kensington USB K33085 (Microsoft Stack)
    GigaByte Bluetooth USB Adapter GN-BT05D (Software included in the package not installed)
    Hama Bluetooth Dongle 00049207 (Software included in the package not installed). Inquiries seems to hang after a while ..
    IBM Integrated Bluetooth II on ThinkPad T40 (with driver from Microsoft; file version: 5.1.2600.2180, xpsp_sp2_rtm.040803-2158)
    Trust BT 1300 TP Bluetooth USB adapter (Software included in the package not installed)
    Trust BT 2200 TP Bluetooth USB adapter (Software included in the package not installed) (Microsoft Stack and Widcomm)
    Perfect choice USB Adapter (Microsoft Stack and Widcomm)
    Sorry I can't give you a more possive resolution but unless your device is compatible with the Microsoft Bluetooth Stack it won't work I'm afraid.
    Best Regards,
    Ian Colman
    Applications Engineer
    National Instruments UK & Ireland

  • List of steps required to create simple planning example

    Hello
    I am new to BPS
    Could you please give me a list of steps required to create simple planning example.
    Thanks
    Message was edited by: Aleksandrs Frolovs

    Hi Aleksandrs,
    Here is some good info:
    http://help.sap.com/saphelp_nw04/helpdata/en/5d/7c4b52691011d4b2f00050dadfb23f/content.htm

  • Help me to run this simple RMI example

    When i m running this example in standalone pc it works but while running on to different pc it gives error though I m giving the IP address from client of server.. If anyone can help me out plz help.
    Code:
    ReceiveMessageInterface
    import java.rmi.*;
    public interface ReceiveMessageInterface extends Remote
    void receiveMessage(String x) throws RemoteException;
    Server code:
    import java.rmi.*;
    import java.rmi.registry.*;
    import java.rmi.server.*;
    import java.net.*;
    public class RmiServer extends java.rmi.server.UnicastRemoteObject
    implements ReceiveMessageInterface
    int thisPort;
    String thisAddress;
    Registry registry; // rmi registry for lookup the remote objects.
    // This method is called from the remote client by the RMI.
    // This is the implementation of the �ReceiveMessageInterface�.
    public void receiveMessage(String x) throws RemoteException
    System.out.println(x);
    public RmiServer() throws RemoteException
    try{
    // get the address of this host.
    thisAddress= (InetAddress.getLocalHost()).toString();
    catch(Exception e){
    throw new RemoteException("can't get inet address.");
    thisPort=3232; // this port(registry�s port)
    System.out.println("this address="+thisAddress+",port="+thisPort);
    try{
    // create the registry and bind the name and object.
    registry = LocateRegistry.createRegistry( thisPort );
    registry.rebind("rmiServer", this);
    catch(RemoteException e){
    throw e;
    static public void main(String args[])
    try{
    RmiServer s=new RmiServer();
    catch (Exception e) {
    e.printStackTrace();
    System.exit(1);
    Client code:
    import java.rmi.*;
    import java.rmi.registry.*;
    import java.net.*;
    public class RmiClient
    static public void main(String args[])
    ReceiveMessageInterface rmiServer;
    Registry registry;
    String serverAddress=args[0];
    String serverPort=args[1];
    String text=args[2];
    System.out.println("sending "+text+" to "+serverAddress+":"+serverPort);
    try{
    // get the �registry�
    registry=LocateRegistry.getRegistry(
    serverAddress,
    (new Integer(serverPort)).intValue()
    // look up the remote object
    rmiServer=
    (ReceiveMessageInterface)(registry.lookup("rmiServer"));
    // call the remote method
    rmiServer.receiveMessage(text);
    catch(RemoteException e){
    e.printStackTrace();
    catch(NotBoundException e){
    e.printStackTrace();
    }

    When we compile with rmic skeleton and stub get created then we hav to place stub at each client ???Your remote client applcation need only _Stub.class fiels.
    Is there way by which we can know how many clients are connected to the
    server and there IP address, can anyone give the code... I guess that you should use a RMI login/logout method to register/unregister your client connection information into a databse or a simple static Hashtable(Vector) object.

  • Simple Button Example

    Hello Everyone!
    I have some stupid beginner questions... and it would be great i someone could help me!
    For now i learned how to make some buttons on a Toolbar via cl_gui_custom_container & cl_gui_toolbar.
    This one is for now cristal clear!
    But stupid thing is that I'm not able to make my simple program with few pushbuttons work!!!
    First i've docked some PushButtons trough the ScreenPainter and assigned them Function Codes, TextDisplay & Name. and then i'm not able to get any actions of that pushbuttons when i executes the program. When i click tem they simply do nothing!!!
    i checked and my screen is activated tough...
    stupid thing is when i Test my screen trough Sscreen painter one of buttons, explicitly the EXIT button do work and is exiting my program, but the other one does nothng, just like they bth do when i execute my program.
    Please Can anyone help me with this one???
    if u have some, please do provide me a sample code but not the simpliest one, because i do write my programs with classes, modules and etc...
    Thank you all in advance!
    kind regards, mya

    hi,
    To do some action on the button click you need to write some code in the PAI(Process after input) of the screen. The code in PAI is executed once the user do some action, example a button click, selecting a radio button or checking a check box...
    So in PAI, you can write the code and do various things on click of differed button with different function codes.
    Also you need to capture the ok_code. So you need to define an element in element list : OK_CODE.
    Case OK_CODE.
    when 'FCODE1'
          perform FUNC_BUTTON_1
    when 'FCODE2'
          perform FUNC_BUTTON_2
    when 'FCODE3'
          perform FUNC_BUTTON_3
    endcase.
    in this way you can write different functionalities for different buttons.
    Regards,
    Richa

  • Looking for Simple JSTL Example

    Hi Everyone,
    I'm looking for an example of a simple Web application that uses "JavaServer Pages Standard Tag Library" (JSTL) -- that doesn't use JDeveloper!
    I have OC4J stand-alone 10.1.3.0.0 on Microsoft Windows XP Professional Version 2002 Service Pack2 with JDK 1.5.0_07
    I created and packaged a J2EE application in a EAR file. The EAR file contents:
    META-INF/application.xml
    frstjstl.warContents of "application.xml"
    <?xml version="1.0"?>
    <application
           xmlns="http://java.sun.com/xml/ns/j2ee"
           xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
           xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee/application_1_4.xsd"
           version="1.4">
      <module>
        <web>
          <web-uri>frstjstl.war</web-uri>
          <context-root>frstjstl</context-root>
        </web>
      </module>
    </application>Contents of "frstjstl.war"
    META-INF/MANIFEST.MF
    index.jsp
    WEB-INF/lib/standard.jar
    WEB-INF/web.xmlContents of "web.xml"
    <?xml version="1.0"?>
    <web-app xmlns="http://java.sun.com/xml/ns/j2ee"
             xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
             xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd"
             version="2.4">
      <welcome-file-list>
        <welcome-file>index.jsp</welcome-file>
      </welcome-file-list>
      <jsp-config>
        <taglib>
          <taglib-uri>http://java.sun.com/jsp/jstl/core</taglib-uri>
          <taglib-location>/WEB-INF/lib/standard.jar</taglib-location>
        </taglib>
      </jsp-config>
    </web-app>Contents of "index.jsp"
    <%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
    <html>
      <head>
        <title>Simplest JSTL</title>
      </head>
      <body>
        &lt;h1>Simplest JSTL</h1>
        <c:forEach var="httpRequestHeaders" items="${headerValues}">
          ${httpRequestHeaders.key} = ${httpRequestHeaders.value}
        </c:forEach>
      </body>
    </html>My JSTL implementation comes from here:
    http://jakarta.apache.org/taglibs/doc/standard-doc/intro.html
    The distribution contains a "standard.jar" file and a "jstl.jar" file (among other things). The "standard.jar" file is included in my WAR (see above) and I have copied the "jstl.jar" file to:
    %J2EE_HOME%\jsp\lib\taglibI launch OC4J from the command prompt like this:
    java -jar oc4j.jarI deploy my EAR using the following command:
    java -jar admin.jar ormi://localhost oc4jadmin xxx -deploy -file frstjstl.ear -deploymentName FirstJSTL -bindWebApp default-web-siteThen I launch my Web browser and enter the following URL:
    http://localhost/frstjstlAnd I get the following error message:
    500 Internal Server Error
    OracleJSP: oracle.jsp.parse.JspParseException: /index.jsp: Line # 8, <c:forEach var="httpRequestHeaders" items="${headerValues}">
    Error: Attribute: items is not a valid attribute nameThanks (for reading),
    Avi.

    Thanks Qiang.
    Yes, when I copy file "index.jsp" to directory "%J2EE_HOME%\default-web-app\testJstl.jsp" it works.
    I use the following URL:
    http://localhost:8888/testJstl.jspAnd this is the output I get:
    [Format modified to be more suitable to post on this forum.]
    Simplest JSTL
    CONNECTION = [Ljava.lang.String;@7348e
    USER-AGENT = [Ljava.lang.String;@10b8d03
    ACCEPT-LANGUAGE = [Ljava.lang.String;@157011e
    ACCEPT-ENCODING = [Ljava.lang.String;@10a8143
    ACCEPT = [Ljava.lang.String;@ac8360 HOST = [Ljava.lang.String;@1e534cb
    [/pre]
    But I guess, since the JSTL related JAR files are part of the default Web application, there is no reason it shouldn't work.
    That's why you said:
    Let us do a sanity test first.So now what?
    (And, by the way, thanks for your help.)
    Cheers,
    Avi.
    Message was edited by:
            Avi Abrami                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       

Maybe you are looking for