Using PHP language in Java/JSP files.
- From: cejohnson@xxxxxxxxx
- Date: 29 Nov 2005 11:31:37 -0800
OK...I inherited a Java based app that I assume is coded completely in
Java (isn't that what jsp files are?). I needed to make an addition to
it, so rather than learning Java (since I'm trying to phase away from
it) I am wanting to make additions in php (as I know php, this was the
best thought to me).
Here's my problem. The Java app (at least all the jsp files) are in the
tomcat directory, so that Java/tomcat interprets them. Unfortunately,
any php code that is dropped into the tomcat file is ignored by the php
parser and spit out as html code. As Html doesn't know php from a hole
in the ground, I get some neato errors.
So...what do I need to change (and where please) so that a) php is
parsed within the tomcat directory; b) I can make a call to a php
script outside the tomcat directory or c) copy, rename, and open the
renamed copy using Java (if this is my only option...)
for PHP in the jsp files I've been trying one of the following (with no
success)
<script language="php">blah blah blah</script>
and
<?php blah blah blah ?>
Thoughts?
.
- Follow-Ups:
- Re: Using PHP language in Java/JSP files.
- From: Mike Gaab
- Re: Using PHP language in Java/JSP files.
- From: Ben_
- Re: Using PHP language in Java/JSP files.
- From: zero
- Re: Using PHP language in Java/JSP files.
- From: Oliver Wong
- Re: Using PHP language in Java/JSP files.
- Prev by Date: API fro SP2 communication
- Next by Date: Re: generics question.
- Previous by thread: API fro SP2 communication
- Next by thread: Re: Using PHP language in Java/JSP files.
- Index(es):
Relevant Pages
|
|