Re: Using PHP language in Java/JSP files.



I'm just gonna answer everyone at once, sorry if this seems disjointed:


Thanks for the input. I apologize that I know next to nothing about
Java and JSP and that I tend to be a little tongue-in-cheek.

PHP is installed and working properly. I am able to run PHP code that
is not included within the jsp files and not placed within the tomcat
directory. The application is complete and written in jsp (which is
different than Java, right?) and I'm just trying to add one feature
which is easy in PHP, but seems to be very difficult in jsp/java. I
don't know how to make jsp output php code (though I would try and link
to a php file outside of tomcat, but I need a variable that jsp already
has to be passed to the php code (oy vey).

Right now tomcat is not running php. I'm not sure what servlet i would
need to install. The basics are: I have a jsp application that needs
a feature added to it. I am trying to add php to the jsp file, so that
the php is processed, then outpout to the jsp which processes it and
converts it to whatever the browser needs. Rewriting this entire
application into PHP is on the long-term to do list, but is not what I
was looking to do right now.

Basically, a user is going to click on a link, and this link will, once
clicked, take a file (which they are viewing) copy it to a
subdirectory, rename the extension (from test.txt to test.doc for
example) and then display the renamed file onscreen. If there is a
simple (or even a complicated, but doable) way to do this with jsp, I
am all ears.

Does anyone know any good online java/jsp tutorials?

Again, thanks!

.



Relevant Pages

  • Re: Discussion: PHP versus JSP
    ... We used MySQL, Tomcat, and JSP. ... > re-doing the app using PHP. ... JSP is an attempt from the Java camp to achieve an ASP/PHP like programming ...
    (comp.lang.java)
  • 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: Tiefgreifendes Problem
    ... zugreift, ist man in Java immer noch mit dem Download von Hibernate, ... Zwar kann ich kein PHP, aber das ganze war trotzdem schnell ... wenn man nix kompliziertes braucht und JEE braucht er nicht die Bohne;-) Tomcat steht schon zur Verfügung. ... Rahmenwerke die man zunächst lokalisieren und dann installieren und ...
    (de.comp.lang.java)
  • Re: [Discussion] PHP =?ISO-8859-15?Q?f=FCr_die_View-Schicht=3F?= =?ISO-8859-15?Q
    ... Java kritisch gegenüber. ... das in PHP zu lassen? ... Statt komplizierte XML-Schnittstellen ... Ob auf JSP, JSF oder ein anderes Template-System müsste ...
    (de.comp.lang.java)
  • 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. ... so now I have to translate all of the PHP scripts into ... PHP to JSP, figuring that while not very "Java guru cool" to do so, ...
    (comp.lang.java.help)