Re: Using PHP language in Java/JSP files.
- From: "Ben_" <reply@xxxxxxxxxxxxx>
- Date: Wed, 30 Nov 2005 10:12:37 +0100
AFAIK, you won't be able to plug the output of the JSP interpreter into the
PHP interpreter, and have "double" parsing if it's what you want.
Using a JSR 223 implementation or a ColdFusion-like product, you could
however code JSP and PHP in the same page, and have Java interpret JSP and
PHP, which would fit your need.
Now, if the enhancement you need to code is:
* list files in a directory
* let user select a file
* copy the selected file
* rename the copy
Then it's not that hard to write in Java / JSP, and using PHP just because
you know it may be counter-productive.
You need to use FileInputStream & FileOutputStream to read the file in
blocks of bytes and write the bytes into the new file.
Here is an example of writing a copy of a file:
http://www.rgagnon.com/javadetails/java-0064.html.
For tutorials, there are so many sources... Sun has one. Here is a start:
http://java.sun.com/products/jsp/docs.html.
.
- References:
- Using PHP language in Java/JSP files.
- From: cejohnson
- Re: Using PHP language in Java/JSP files.
- From: Ben_
- Re: Using PHP language in Java/JSP files.
- From: Ziggie
- Using PHP language in Java/JSP files.
- Prev by Date: Re: mono-thread concurrent modification
- Next by Date: Re: mono-thread concurrent modification
- Previous by thread: Re: Using PHP language in Java/JSP files.
- Next by thread: Re: Using PHP language in Java/JSP files.
- Index(es):
Relevant Pages
|