Using PHP language in Java/JSP files.



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?

.



Relevant Pages

  • Re: Using PHP language in Java/JSP files.
    ... > Java. ... > it) I am wanting to make additions in php (as I know php, ... The Java app (at least all the jsp files) are in the ... php scripts from an external or internal pool. ...
    (comp.lang.java.programmer)
  • Re: Using PHP language in Java/JSP files.
    ... > Java. ... > it) I am wanting to make additions in php (as I know php, ... The Java app (at least all the jsp files) are in the ...
    (comp.lang.java.programmer)
  • Re: HTML "scrape" causes loss of query string in URL
    ... >> in PHP with several PHP scripts interacting with one Java servlet, ... >> which interacted with several Java classes. ... > process to go from PHP to JSP. ...
    (comp.lang.java.help)
  • Re: e-commerce portal
    ... haven't had a single site that sees a need for this sort of hardening. ... Java anymore. ... PHP is a technology that has gotten a harsh rap due to large security ... Marketing at its worse, eh? ...
    (comp.databases.pick)
  • Re: [PHP] Semi-ADVERT, not really spam, sorry for it
    ... I appreciate your position but you need to understand that freelance PHP developers charge what they do because that's what the market will pay. ... I've recently taken on 2 PHP contractors and even though there's only 20 GBP difference in their daily rates one is miles better than the other, to the point where I'm having to check everything the slightly cheaper one is doing and I've found a number of killer bugs that would have caused major issues had they gone live. ... Email Java tutor needed! ... I thought that I might also utilize similar help against humble payments. ...
    (php.general)