home forums resources search newsjoinmembers: 5824
Main Network: Joomla Wordpress Drupal Drupal.se Fireorb Flash Java PHP Ruby Windows Linux
 videos
 articles
 blogs
 comments
 downloads
sitemap

Pass variable to java class from php

 
m kk - posted on:Wed, 2008-02-13 15:17

Hi,
The php/java bridge is a rescuer for me It is a great idea. But I wanted to know if is it possible to pass a variable from php to a java class using the bridge. The example only illustrates how to create an object and call a function.

Site categories:
  
 

 
by Hiveminds on Mon, 2008-03-03 09:43

The simplest method is to use arguments is the class methods.

public String SayHello(int i, double f, char c, boolean test) {
  Date today = new Date();
  return "Hello Geek here is the java date and time: " + today + test;
}

Using the bridge passing variables to the java class becomes easy.

This article brought to you by the Hiveminds Magazine - Staff. Contact us if you want to post an article or announcement anonymously

Enter your Hiveminds Magazine username.

Enter the password that accompanies your username.

Wordpress Content Management Systems Wordpress PHP Drupal Adobe Flex Silverlight ASP.NET Content Management Systems
 

Newsletter

Get updates on Hiveminds services, articles and downloads by signing up for the newsletter.

Editor's choice

Some of the better articles, stories and tutorials found at Hiveminds.

Find more

Find more of Hiveminds articles, stories, tutorials and user comments by searching.




Picked links

Hand picked websites and articles from around the web that provide quality reading.

page top