TCLUG Archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [TCLUG:13058] PHP and Java
Quoting Luke Francl (fran0382@tc.umn.edu):
> On Fri, 28 Jan 2000, Bob Tanner wrote:
>
> > Is there a way for PHP to make calls into JavaBeans.
> >
> > Kind of like JSP, but using PHP :-)
>
> This may be possible, I'm not sure -- I don't know how JavaBeans actually
> work. You might want to look at the passthru function:
> http://www.php.net/manual/function.passthru.php3
>
> Also, a good place to look for answers is the searchable PHP4beta mailing
> list at: http://www.progressive-comp.com/Lists/?l=php4beta&r=1&w=2 (you
> might also want to check the standard php3 list).
>
> This would be an interesting thing to make work, though. JSP must be
> compiled right? If PHP was able to access JavaBeans while remaining
> interpreted, that would be a major scripting victory...
Since a JavaBean can return a string, you could just return something like:
<select name="foobar">
<option>
<option>
</select>
And have PHP just "include" that right inline. That is my hope at least :-)
--
Bob Tanner <tanner@real-time.com> | Phone : (612)943-8700
http://www.real-time.com | Fax : (612)943-8500
Key fingerprint = 6C E9 51 4F D5 3E 4C 66 62 A9 10 E5 35 85 39 D9