Posting PHP results in Jtable

Hi.
I have a PHP page, which works via GET requests to get data from my Database. It just echo's lines of text, such as
This is line 1
This is line 2
I would like my Java Application to be able to read this data, and then populate a Jtable with it.
Can anyone explain to me how i could get this to work?

A quick google for "simple JTable example" plus the previously provided link, and a swing template I cut down, equals:
import java.net.*;
import java.io.*;
import java.awt.*;
import javax.swing.*;
public class URLReader extends JFrame {
     private final int COLUMNS = 4;
     private final int ROWS = 2;
     private JTable sampleJTable;
     private String[][] cells = new String[ROWS][COLUMNS];
    public static void main(String[] args) throws Exception {
          try {
               new URLReader();
          } catch (Exception e) {
               e.printStackTrace();
     public URLReader() throws Exception {
          super("Creating a Simple JTable from a php file.");
          URL theUrl = new URL("http://www.allydm.co.uk/Covenant/farm_list.php");
          BufferedReader in = new BufferedReader(
                    new InputStreamReader(
                    theUrl.openStream()));
          String inputLine = in.readLine();
          String[] lines = inputLine.split("<br>");
          for (int i = 0; i < ROWS; i++) {
               String[] stuff = lines.split(" ");
               for (int j = 0; j < COLUMNS; j++) {
                    cells[i][j] = stuff[j];
          in.close();
          Container content = getContentPane();
          setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
          String[] columnNames = {"1", "2", "3", "4"};
          sampleJTable = new JTable(cells, columnNames);
          JScrollPane tablePane = new JScrollPane(sampleJTable);
          content.add(tablePane, BorderLayout.CENTER);
          setSize(450,150);
          setVisible(true);
It's hard-coded to look for two rows, and four columns, but you get the idea...

Similar Messages

  • Urgent : Posting Payroll results from legacy system to SAP Fi /C0

    Hi Experts,
                A client requirment is such that they have to post payroll results to FI/Co
                They are not using SAP HR- Payroll module . They use their own payroll 
                 processing system . 
                 Please tell what would be the best way of doing so 
                  Help is urgently required
    Nidhi

    To be more specific, Pavani is referring to create a new inbound - custom program, which can create IDOCs in SAP system and transfer the data to FI - CO module.
    If your client has all the infrastructure for a new interface development, like XI system or IBM - Mercator system, Out bound interface for Third party payroll system, Interface - ABAP team, then it could be planned to develop the SAP inbound interface.
    Hope this helps.
    Narasimha

  • Posting payroll results to FI : error F5 808

    Hi all,
    While posting payroll results to FI, we have the following error
    F5 808 Field Assign. is a required field for G/L account XXXX 1111111111
    XXXX is the company code
    1111111111 is the account number
    The field "Assignement" is set to required in table T004V(field status variants) in FI customizing and they can't change it to optional.
    is there a standard way to correct this? should we implement an exit user (definition SMOD_PCPO0001)?
    Thanks
    Karim

    Check the Posting Keys and Field Status Group through tcode OB41 and also check the below thread ...
    [where can i fill the "assign." when posting payroll to GL error f5808;
    Mohan

  • Error while posting payroll results to FI -IN PY

    Dear Consultants,
    When I am posting Payroll results to FI I am able to see the + amount and - amount is equal still it giving error and when I check PCP0 it says incorrect document generated. Please do needful.
    Error message: Error in document: HRPAY 0000000094 DEVCLNT200
    Error in document: HRPAY 0000000094 DEVCLNT200
    Message no. RW609
    Diagnosis
    Errors occurred when checking or posting the document
    Reference type = HRPAY
    Reference key = 0000000094
    Logical system = DEVCLNT200
    You can find the errors in the log.
    System Response
    The document cannot be posted.
    Procedure
    Remove the error in the document and create and post the document again.
    Second error message : Posting period 012 2012 is not open
    Message Text
    Posting period 012 2012 is not open
    Technical Data
    Message type__________
    E (Error)
    Message class_________
    F5 (Document Editing)
    Message number________
    201
    Message variable 1____
    012
    Message variable 2____
    2012
    Message variable 3____
    +
    Message variable 4____
    COSM
    Message Attributes
    Level of detail_______
    2 (Level of detail 2)
    Problem class_________
    Sort criterion________
    Number________________
      1
    Environment Information
    Item__________________
    000
    Please do needful, why this error is coming even though the +and - amount are equal.
    Regards,
    Naresh.KM

    Dear Siva,
    Sorry for delay in reply, as per my understanding I have done the assignment correctly, and the same arrears are coming in RT table as well as in payslip. When I checked the report RPDKON00 I have got a list of wage types assigned to GL account under Country grouping 40,
    A.Define wage type posting characteristics : I have copied arrears, carryforward wage types from their original wage types.
    Example : From Basic pay (which is using in infotype 0008)  I have copied Basic arrear wage type and basic carryforward wage type. and assigned the same in ZN42, ZN43, ZN44 and did the assignment.
    B. Define symbolic account : I have copied the symbolic account which is assigned to Basic wage type and copied the same and created new symbolic account and assigned to only basic arrear wage type which is coming in RT table.
    C .Assigned wage type to symbolic account : I have not assigned arrear wage type symbolic account to Original wge type in V_T53EL. Only Basic wage type symbolic account is mapped here.
    D Mapping symbolic account to G/L account : I have assigned the arrear wage type Symbolic account to the same GL which is assigned to original Basic wage type symbolic account.
    I have followed the same process for all the arrear wage types, and even the report RPDKON00 it is showing the same there is no error message.
    Apart from that I have created a New Symbolic account for /ZF5 and did all assignment, and assigned /ZF5 wage type symbolic account to /3F1 wage type symbolic account and GL mapping also same as /3F1.
    In Standard /552 arrear process there is no /ZF5 postings it will directly deduct the amount.
    Please suggest do I need to check any other area or how can I solve this error. kindly do needful.
    Regards,
    Naresh.KM 

  • Error while posting payroll results to FI  - Documents not getting created

    Hi all,
    While posting payroll results to FI for Dec 2011 a failure of our Production Server resulted in erroneous posting of payroll
    results. Posting run no: 1756 did not get posted at all though the run
    status shown was "document posted". The issue was resolved by resorting
    to manual posting of entries.
    Now we are unable to post payroll results for Jan 2012 for the same
    range of employee numbers for whom the manual posting was made for Dec
    2011. No posting documents are getting created.
    Kindly suggest how to resolve the issue.
    Regards,
    Sunil

    Hi All,
        I raised an OSS for the issue. SAP Support provided a solution for the problem. The solution involved cancelling a reversal which we had tried and failed followed by re posting the run no 1756. Our manual entries had to be reversed.The solution is given below.
        Please follow these steps:
    - Select the posting run 1756
    - Menu => Edit => Reversal => Reset after termination
    - After last step the status of the posting run should appear as
    'documents posted'
    - Go to transaction SM13
    - Select by user 8273 and date 02.01.2012
    - You should see an entry like this:
    400 8273 02.01.2012 15:26:57 @07\QEnqueues released@ Error
    - Select the entry and press the button 'Single test'
    - In case the system shows an error, please send the message back to us
    - In case the system shows no errors => press button 'Repeat update'
    - Then check in PCP0 and FI is the document has been correctly posted.
    Regards
    Sunil

  • Urgent :Posting Payroll results from Legacy system to FI/co

    Hi Experts,
    A client requirment is such that they have to post payroll results to FI/Co
    They are not using SAP HR- Payroll module . They use their own payroll
    processing system .
    Please tell what would be the best way of doing so
    Help is urgently required
    Nidhi

    hai nidhi,
    Inform ABAP team to develop the programme for payroll results,and post the entry to FI through T.code F-02.
    govind.

  • Linux vs. linux-ck power usage - laptop users please post your results

    Krum reported are rather significant increase in power consumption when using the linux-ck kernel vs. the linux (stock ARCH) kernel.
    krum wrote:With the last ck i7-avx, I jump from 10W (stock arch) to 15W on my laptop with the same kernel options and same usage.
    I will investigate further another time...
    I began to wonder just how universal this was so I tested on my own laptop (Intel T9400 @ 2.53 GHz, NVidia FX, 2x2 GB, SSD and 17" screen) booted into three different kernels, ARCH, ck-generic, and ck-core2 with the latter two downloaded from my unofficial repo.  I took two readings per kernel.  The first was measured with powertop on battery after letting it settle for a good 3 min of idle.  The second was with the battery removed and on AC power measured with a Kill-A-Watt.  My results indicate no significant differences.
    linux-3.0.3-1
    Powertop: 37.5
    Kitt-A-Watt: 41
    linux-ck-3.0.3-4
    Powertop: 38.6
    Kitt-A-Watt: 41
    linux-ck-core2-3.0.3-4
    Powertop: 37.5
    Kitt-A-Watt: 40
    Can others running both kernels do a similar analysis with powertop and post the results here?

    Hi,
    I did my test with powertop.
    I got also higher temp:
    [root@akira david]# uname -a && uptime && fan
    Linux akira 3.0-ck #1 SMP PREEMPT Sun Aug 21 05:31:12 EDT 2011 x86_64 Intel(R) Core(TM) i7-2620M CPU @ 2.70GHz GenuineIntel GNU/Linux
    22:20:24 up 10:26,  4 users,  load average: 0.00, 0.03, 0.07
    speed:        2616
    level:        auto
    Core 0:         +47.0°C 
    Core 1:         +42.0°C
    [root@akira david]# uname -a && uptime && fan
    Linux akira 3.0-ARCH #1 SMP PREEMPT Wed Aug 17 21:55:57 CEST 2011 x86_64 Intel(R) Core(TM) i7-2620M CPU @ 2.70GHz GenuineIntel GNU/Linux
    22:22:52 up 2 min,  4 users,  load average: 0.28, 0.19, 0.08
    speed:        2630
    level:        auto
    Core 0:         +39.0°C 
    Core 1:         +38.0°C
    EDIT:
    [root@akira david]# uname -a && uptime && fan
    Linux akira 3.0-ck #1 SMP PREEMPT Sun Aug 21 05:31:12 EDT 2011 x86_64 Intel(R) Core(TM) i7-2620M CPU @ 2.70GHz GenuineIntel GNU/Linux
    22:29:41 up 2 min,  4 users,  load average: 0.18, 0.24, 0.10
    speed:        2644
    level:        auto
    Core 0:         +40.0°C 
    Core 1:         +35.0°C
    My bad, I forget to had these kernel boot option: pcie_aspm=force i915.i915_enable_rc6=1 i915.i915_enable_fbc=1 i915.lvds_downclock=1
    So it seems to be OK, I will do new powertop test when my battery will be full.
    Last edited by krum (2011-08-28 21:11:47)

  • PHP Shoutbox : stop users posting php code

    hi guys/girls
    can anyone give me an easy way to stop users on my site
    posting php code into a shoutbox.
    i have a shoutbox made up of a normal html form that posts
    their shouts to a mysql database using php.
    at the moment the only validation i have in place is the
    built in form validation dreamweaver8 has which stops
    users posting a blank post. however a user can post php code
    if they know how, which could cause problems.
    thanks
    ted.

    tedrodgers wrote:
    > i dont see how the highlight file function helps me in
    this case? please explain alittle more.
    That suggestion came from "Pro PHP Security". However,
    looking at the
    PHP manual, it should be highlight_string(), not
    highlight_file().
    http://www.php.net/manual/en/function.highlight-string.php
    How would it help? highlight_string() converts PHP code to
    HTML for
    display purposes. Once converted to HTML, it cannot be
    executed or do
    any harm to your website.
    > and what other validation do you suggest?
    Without knowing the details of your application, it's hard to
    say; but
    just checking that the text area isn't blank is no protection
    at all.
    Attackers could post spam or hot link to pornographic images.
    Two simple
    measures would be to pass the content to strip_tags() and/or
    htmlentities().
    http://www.php.net/manual/en/function.strip-tags.php
    http://www.php.net/manual/en/function.htmlentities.php
    David Powers
    Author, "Foundation PHP for Dreamweaver 8" (friends of ED)
    Author, "Foundation PHP 5 for Flash" (friends of ED)
    http://foundationphp.com/

  • Binding ArrayCollection to HTTPService method="POST" xml result

    Hi All,
    Firstly apologies for posting all this code!
    I have the following app that adds & displays in a
    datagrid the data from a mysql db, works fine so far.
    #########################<START
    SNIP>##########################
    <?xml version="1.0" encoding="utf-8"?>
    <mx:Application xmlns:mx="
    http://www.adobe.com/2006/mxml"
    xmlns="*" layout="absolute"
    backgroundGradientColors="[#0080ff,#80ffff]"
    creationComplete="send_data()">
    <!-- This is the Script to SetUp Functions-->
    <mx:Script>
    <![CDATA[
    private function youveClicked():void {
    mx.controls.Alert.show('You Clicked!!!');
    private function send_data():void {
    staffcodeRequest.send();
    ]]>
    </mx:Script>
    <!-- This is the HTTPService-->
    <mx:HTTPService id="staffcodeRequest" url="
    http://192.168.0.84/amfphp/services/staffcode.php"
    useProxy="false" method="POST">
    <mx:request xmlns="">
    <firstname>{firstname.text}</firstname><surname>{surname.text}</surname><staffcode>{staff code.text}</staffcode><emailaddress>{emailaddress.text}</emailaddress><department>{departm ent.text}</department>
    </mx:request>
    </mx:HTTPService>
    ###########################<END
    SNIP>##########################
    I'm thinking of Binding the the xml formated results into an
    arrayCollection & then use the filterFunction to allow a user
    to filter the data (is this possible?).
    (Below is some code that I found in a thread & am using
    to work from as an example)
    #########################<START
    SNIP>##########################
    <mx:Application xmlns:mx="
    http://www.adobe.com/2006/mxml"
    layout="vertical" creationComplete="initData()">
    <mx:Script>
    <![CDATA[
    import mx.collections.ArrayCollection;
    [Bindable]
    private var dataList:ArrayCollection ;
    private function initData():void{
    dataList= new ArrayCollection([
    {name:"school A", city:"Dartford"},
    {name:"school B", city:"Pomona "},
    {name:"School C", city:"Phillipsburg"}
    private function filterDemo():void{
    dataList.filterFunction = searchDemo;
    dataList.refresh();
    private function searchDemo(item:Object):Boolean{
    var isMatch:Boolean = false
    if(item.name.toLowerCase().search(search.text.toLowerCase())
    != -1){
    isMatch = true
    return isMatch;
    private function clearSearch():void{
    dataList.filterFunction = null;
    dataList.refresh();
    search.text = '';
    ]]>
    </mx:Script>
    ###########################<END
    SNIP>##########################
    If it is possible, I need some help in integrating the
    following code, (I've tried but keep getting {1151: A conflict
    exists with definition staffcodeRequest in namespace internal.})
    #########################<START
    SNIP>##########################
    <?xml version="1.0" encoding="utf-8"?>
    <mx:Application xmlns:mx="
    http://www.adobe.com/2006/mxml"
    xmlns="*" layout="absolute"
    backgroundGradientColors="[#0080ff,#80ffff]"
    creationComplete="send_data()">
    <!-- This is the Script to SetUp Functions-->
    <mx:Script>
    <![CDATA[
    private function youveClicked():void {
    mx.controls.Alert.show('You Clicked!!!');
    private function send_data():void {
    staffcodeRequest.send();
    <!--Can I just Bind the arrayCollection here-->
    import mx.collections.ArrayCollection;
    [Bindable]
    private var staffcodeRequest:ArrayCollection;
    private function filterDemo():void{
    staffcodeRequest.filterFunction = searchDemo;
    staffcodeRequest.refresh();
    private function searchDemo(item:Object):Boolean{
    var isMatch:Boolean = false
    if(item.staffcode.toLowerCase().search(search.text.toLowerCase())
    != -1){
    isMatch = true}
    return isMatch;
    private function clearSearch():void{
    staffcodeRequest.filterFunction = null;
    staffcodeRequest.refresh();
    search.text = '';
    ]]>
    </mx:Script>
    <!-- This is the HTTPService-->
    <mx:HTTPService id="staffcodeRequest" url="
    http://192.168.0.84/amfphp/services/staffcode.php"
    useProxy="false" method="POST">
    <mx:request xmlns="">
    <firstname>{firstname.text}</firstname><surname>{surname.text}</surname><staffcode>{staff code.text}</staffcode><emailaddress>{emailaddress.text}</emailaddress><department>{departm ent.text}</department>
    </mx:request>
    </mx:HTTPService>
    ###########################<END
    SNIP>##########################
    What I am strugling with is BINDING the returned xml formated
    results to an arrayCollection, and changing from the static xml
    file example to mxl formated txt received from the mysql db on the
    fly.
    Help would be grate ;-)
    TIA
    Danny

    From what I've read, it seems that a Proxy Server, such as
    BlazeDS or FDS, is required if you want to use anything other than
    GET or POST and set the useProxy property to true.
    What is the motivation of requiring a proxy server to support
    HTTP PUT or DELETE?

  • How to post the result of a formula in IP

    Hi,
    Let's say I have 3 lines in my input ready query:
    Sales : $10
    Cost of goods: $5
    I want to post
    Margin = $5 (Sales - Cost of goods)
    I would like to post the formula for margin without using a macro or a planning function.
    Is there a way to post a hard coded formula?
    Thanks a lot,
    Patrick

    Hi Mayank, 
    I would go for a complex FOX or VBA because the overhead of the planning framework is performance relevant as well. A number of small FOXes will call the planning framework more often and this results in performance loss. So small FOXes should be merged to one big FOX if possible for performance reasons.
    Bye Matthias

  • Posting Payroll results to FI with special G/L account

    Hi,
    We need to post some payroll results to special G/L accounts. SAP documentation say it's not possible. How can we manage that? any solution or suggestion is welcome.
    Thanks
    K.

    Thanks for replying.
    I need this to be done for all employees.
    I need to post some wagetypes to vendor accounts. the issue is : SAP doesn't allow to use special G/L indicator with posting to vendor accounts, which is the requierement in my case.
    I'm wondering if there is another solution to make this possible.
    regards,
    K.

  • Urgent:display result from JTable

    need help making the following in my code work:
    1.how do i display the whole table in my code using a dialog box or JOptionPane.
    2. i want to display a message beneath the table show the total price of items selected from the JComboBox .
    3.is there any way i could add a method or sommething that display detail of each item seleted from the list in a seperate column of the JTable in my code.say for instance,if i selects beans,1 cup, 100 and it display protein in a seperate column in the JTable.
    Thanks in advance.
    my code:
    '\n'
    import java.awt.*;
    import java.awt.event.*;
    import javax.swing.*;
    import javax.swing.border.*;
    import javax.swing.table.*;
    import java.util.*;
    public class BreakFast extends JFrame implements ActionListener{
         private JList ingredient;
         private JTable table;
         private DefaultTableModel model;
         private JButton move;
         private String[] food;
         private JComboBox box,box1;
         private String[] units;
         private double[] price={100,150,200,250,300,350,400};
         private JButton finish;
         public BreakFast(){
              Container c=getContentPane();
              c.setLayout(new FlowLayout());
              food = new String[] {"Corn Flakes","Beans","Shredded Bread","Mushroom",
              "eggs","Milks","Butter","Sugar","water","Oil"};
              ingredient = new JList(food);
              ingredient.setSelectionMode(ListSelectionModel.MULTIPLE_INTERVAL_SELECTION);
              ingredient.setVisibleRowCount(4);
              JPanel p = new JPanel();
              p.setBorder(BorderFactory.createBevelBorder(BevelBorder.RAISED));
              move = new JButton(">>>");
              move.addActionListener(this);
              //meal = new JTextArea(5,20);
              //meal.setEditable(false);
              p.add(new JScrollPane(ingredient),"Wast");
              JPanel p2 = new JPanel();
              p2.setBorder(new BevelBorder(BevelBorder.RAISED));
              units = new String[]{"2 cups","3 cups","4 cups","5 cups","1 mudu","2 mudu",
                        "3 mudu","4 mudu","5 mudu","6 mudu","7 mudu","8 mudu","9 mudu",
                        "1 bag"};
              box = new JComboBox(units);
              box.addActionListener(this);
              box1 = new JComboBox();
              //box1.setEditable(true);
              box1.addActionListener(this);
              for(int i=0;i<price.length;i++){
                   box1.addItem(price);
              model = new DefaultTableModel();
              //model.addColumn("No.");
              model.addColumn("Food Items");
              model.addColumn("Units");
              model.addColumn("Price");
              table = new JTable(model);
              JScrollPane pane = new JScrollPane(table);
              pane.setPreferredSize(new Dimension(350,100));
              finish = new JButton("Finish");
              finish.addActionListener(this);
              p.add(box,"West");
              p.add(box1,"Center");
              p.add(move,"East");
              p2.add(pane,"North");
              p2.add(finish,"South");
              c.add(p);
              c.add(p2);
              setSize(450,300);
              setVisible(true);
              setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
         public void actionPerformed(ActionEvent e){
         Object[] value = ingredient.getSelectedValues();
         if(e.getSource() == move){
         for(int i=0;i < value.length;i++){
         String word = (String)value[i];
         Vector<Object> data = new Vector<Object>();
         data.addElement( word );
    data.addElement( box.getSelectedItem() );
    data.addElement( box1.getSelectedItem());
         model.addRow( data );
         if(e.getSource() == finish){
              JOptionPane.showMessageDialog(BreakFast.this,table,"Selection Summary",JOptionPane.PLAIN_MESSAGE);
              System.exit(0);
         public static void main(String[] arg){
              new BreakFast();

    Multi-Post:
    http://forum.java.sun.com/thread.jspa?threadID=5122371&tstart=0
    Ignored.

  • PHP results pagination

    Hi All,
    I'm using the following script to display search results on various pages, but there are so many pages of results the list of pages takes up too much room, see;
    http://dev.merco.co.uk/node/9
    I would like the list to look more like this;
    1  2 3 ....  57 58 59 [Next] Last Page
    With dots to show there are more pages between the first and last pages.
    Any advice on how to do this would be much appreciated!
    Isabelle
    CODE START ***************************************************************************************** **************************************
    <?php
    // how many rows to show per page
    $rowsPerPage = 5;
    // by default we show first page
    $pageNum = 1;
    // if $_GET['page'] defined, use it as page number
    if(isset($_GET['page']))
        $pageNum = $_GET['page'];
    // counting the offset
    $offset = ($pageNum - 1) * $rowsPerPage;
    $user_name = "xxxx";
    $password = "xxxx";
    $database = "xxxx";
    $server = "xxxx";
    $db_handle = mysql_connect($server, $user_name, $password);
    $db_found = mysql_select_db($database, $db_handle);
    // how many rows we have in database
    $query   = "SELECT COUNT(job_title) AS numrows FROM jobs";
    $result  = mysql_query($query) or die('Error, query failed');
    $row     = mysql_fetch_array($result, MYSQL_ASSOC);
    $numrows = $row['numrows'];
    // how many pages we have when using paging?
    $maxPage = ceil($numrows/$rowsPerPage);
    // print the link to access each page
    $self = $_SERVER['PHP_SELF'];
    $nav  = '';
    for($page = 1; $page <= $maxPage; $page++)
       if ($page == $pageNum)
          $nav .= " $page "; // no need to create a link to current page
       else
          $nav .= " <a href=\"9?page=$page\">$page</a> ";
    // creating previous and next link
    // plus the link to go straight to
    // the first and last page
    if ($pageNum > 1)
       $page  = $pageNum - 1;
       $prev  = " <a href=\"9?page=$page\">[Prev]</a> ";
       $first = " <a href=\"9?page=1\">First Page</a> ";
    else
       $prev  = ''; // we're on page one, don't print previous link
       $first = ''; // nor the first page link
    if ($pageNum < $maxPage)
       $page = $pageNum + 1;
       $next = " <a href=\"9?page=$page\">[Next]</a> ";
       $last = " <a href=\"9?page=$maxPage\">Last Page</a> ";
    else
       $next = ''; // we're on the last page, don't print next link
       $last = ''; // nor the last page link
    // print the navigation link
    $nav  = '';
    for($page = 1; $page <= $maxPage; $page++)
       if ($page == $pageNum)
          $nav .= " $page "; // no need to create a link to current page
       else
          $nav .= " <a href=\"9?page=$page\">$page</a> ";
    ?>

    Hi,
    if you have the parameters in the $_GET array, which you most probably do, you can just do this:
    $myget = $_GET;
    $myget['offset'] = (insert your offset here);
    $newurl = 'http://www.mysite.com/results.php?' . http_build_query($myget);
    Also, being that this is an Oracle/PHP forum, you might have better luck asking these kinds of questions in some generic PHP forum, as your question has not much to do with Oracle itself.
    Hope this helps,
    Michal

  • Automatic posting of results

    Hi all, Can results be automatically posted to a web page?

    Actually you can publish the responses and embed it in your website.
    Open you form
    Click on the Share button in the bottom left corner
    Click on Publish Responses
    Click on the Publish button in the dialog
    You will see a "Published" icon on the bottom bar
    Hover it to expend it (if it is not already expended)
    Click on "Copy embed code"
    You can then use this embed code in your website. As responses are coming it the table will reflect the lastest data.
    You can also just have a link to the published data (use "Copy link" instead) if you don't want to embed the data in your website.
    Hope this helps
    Gen

  • HTTP POST PHP

    Dear J2me people,
    I'm writing an app for midp 1.0 /2.0. It posts data via http post to a php file on a server. It works in emulators and many actual devices.
    However, I've got this problem on Nokia 6230i and Nokia 6101. The data sends OK (HTTP code 200) but doesn't write to database.
    It seems people have come across similar problems on the forums,
    although haven't posted the solution.
    Thank you very much for your time,
    Mark
    code follows::::::::::::::::::::::
    httpConnection = (HttpConnection)Connector.open(url);
                 httpConnection.setRequestProperty("User-Agent","Profile/MIDP-  1.0 Configuration/CLDC-1.0");
                 httpConnection.setRequestProperty("Content-Language", "en-CA");
       httpConnection.setRequestProperty("CONTENT-TYPE", "application/x-www-form-urlencoded");
                  httpConnection.setRequestProperty( "Connection", "close" );
                          httpConnection.setRequestMethod( httpConnection.POST);
    String req = 4&entries=1&date0=2/12&label0=WriteHere&age0=Write%20Here&wagescale0=8" ;               
            httpConnection.setRequestProperty("Content-Length", Integer.toString( req.length()));
              out = httpConnection.openOutputStream();
                int rlength = req.length();
                for ( int i = 0; i < rlength; i++ )
                    out.write( req.charAt(i));
                in = httpConnection.openInputStream();
                      

    hi mark....
    by any chance could you help me with audio streaming via bluetooth from a handset?
    eventually i would like to mount the application onto a dell axim PDA.
    i hav a bit of code you can look @ which has a about 3/4 errors of which i dont know. im sure there is a truck load of imports to add to this code but im not sure as to which ones.
    please please help if u can, thanks.
    package javax.bluetooth;
    import java.io.DataOutputStream;
    public class firstone {
    public void transfer(DataOutputStream output) {
    try{
    int i = 0;
    int auglis = 50058; //chunk size
    //if it is wav file, we need to edit header:
    // audio[4] = (byte)0x8A;
    // audio[5] = (byte)0xC3;
    // audio[6] = (byte)0x00;
    // audio[7] = (byte)0x00;
    // audio[54] = (byte)0x50;
    // audio[55] = (byte)0xC3;
    // audio[56] = (byte)0x00;
    // audio[57] = (byte)0x00;
    byte[] tmp = new byte[50058];
    int countBytes= 0;
    int headerup = 32; //mp3 header is 32 bytes.
    while(i<50058){
    tmp[i] = audio; //byte array audio is byte array from mp3 file
    i++;
    countBytes++;
    output.writeInt(50058); //write to midlet, that chunk size will be 50058
    output.write(tmp); //write chunk itself
    boolean varam = true; //booleand that will become false, when file ends
    while(varam){
    int tmplen = garums - countBytes; //check if it is not last chunk
    int o=50058;
    if(tmplen>50058){           //if it is not last chunk
    o = 50058;
    } else{
    o = tmplen+headerup; // if it is last chunk
    tmp = new byte[o];
    varam = false; //out while loop will end
    int z = 0;
    while(z<32){                 //write 32 byte header to chunk
    tmp[z] = audio[z];
    z++;
    countBytes++;
    while(z<o){                  //white chunk it self
    tmp[z] = audio[i];
    z++;
    i++;
    countBytes++;
    headerup = headerup +32;
    output.writeInt(o); //white size of chunk (typically 50058)
    output.write(tmp); //white chunk itself
    } catch (Exception e) {}

Maybe you are looking for

  • 30 GB Video iPod

    okay, today my software updater launched and prompted me to download and install the update to iTunes and to iPod updater and so i did that. later in the day, i went to charge and update the podcasts on my iPod for a trip i was going to take. i was p

  • JTree with XML content expand/collapse problem

    Hello all, I'm having this very weird problem with a JTree I use to display the contents of an XML file. I use the DOM parser (and not JDOM since I want the application to run as an applet as well, and don't want to have any external libraries for th

  • I'm looking for Flash courses in London

    My level in Actionscript is very bad, I need some help. I'd like to meet somebody who can help me or tell me where to find a great school. Thanks.

  • Call Specs for Java Classes

    I have loaded some interdependent java classes in Oracle successfully, Not sure about how to write call specs for these as one method of class A needs an object of class B as input parameter. TIA PM

  • No Values Found when F4 pressed in cell

    We have an input ready row on an empty plan cube.  When F4 is pressed to facilitate data entry into the cell, the values in the master data table are not displayed (which is what I expected).  I have experimented with the InfoObject settings on the B