Tomcat JSP & PHP

I've installed Tomcat 4.0.1 I'd like to attach also PHP. Is it possible. Does anybody know this way? And is it possible to mix JSP with PHP
<%
out.print("Test");
%>
<?php
echo "Test";
?>

In theory, you should be able to use both technologies on the same page, whenever you can solve some configuration issues like file extension assigning, e.g: if you have a .php file, how can you run the jsp inside? you need to make some kind of "neutral" extension and refine your server to send to each server its own code.
I�m trying to do it on windows 2000 (IIS 5.0), but haven�t still figured out how.

Similar Messages

  • In Dreamweaver MySites[New Site] menu option , if I had a hosting JSP/PHP what I must declare the hosting JSP or PHP ?

    In Dreamweaver MySites[New Site] menu option , if I had a hosting JSP/PHP what I must declare the hosting JSP or PHP ?

    The simplest answer is to choose the language you work best with, and that fits the clients specification the best.
    I have mixed server languages on a site before, (would not recommend) when a client has decided they wish to change from their old one to a new(er) /different one, the only thing you must watch if doing this, is that you do not mix languages on the same page (will not work correctly, if at all), and parameter passing.
    PZ

  • Need help on integrating htmldb with asp/jsp/php

    Hello there, we have a few existing htmldb applications running at the moment, and now we would like to develop some asp/jsp/php applications. However there is one issue we still haven't solved yet, which is the SESSION(Login) problem. We don't know how the session is being generated, how to pull out session values manually from db etc etc.
    If you have done this before or any ideas, will be much appreciated.
    Thanks very much
    James

    James,
    sometimes it makes sense to look at these things from a different (and broader) perspective.
    Especially in a context of a corporation it makes sense to use a Single Sign On (SSO) server for authentication (usually against LDAP) . Something like Netegrity Siteminder, Oracle SSO Server (as part of Oracle Internet Application Server) or something similar.
    Then you could have all your applications use the authentication method of the SSO server which will keep track of the valid session and the applications that participate in the SSO context.
    On the Apex side you would have to write a custom authentication scheme to leverage that functionality, the session handling will no longer be of any concern to you.
    Just a different way to look at it.
    ~Dietmar.

  • Need help with httpd/tomcat/jsr223/php

    Hello,
    I�m new to tomcat, but have been working with httpd for years. (now I find out how different the two are)
    I�m having some problems getting php to play nicely with tomcat. Here�s my configuration:
    RHEL4 2.6.9-34.0.2.ELsmp
    apache-tomcat-5.5.17
    httpd-2.0.55 (with mod_jk)
    mysql 5.0.21
    jsr223
    primary tomcat application trying to get working: nutch-0.7.2
    what ends up eventually happening (after struggling to get jsp and php working together) is my /usr/local/apache/logs/mod_jk.log gets filled with stuff like this up to 2gb, at which point it brings apache to it�s knee�s until I clear the file. I�m not concerned about this, but I figured the log file might be helpful
    [Fri Jul 21 13:15:19 2006] [4016:10464] [debug] map_uri_to_worker::jk_uri_worker_map.c (461): Attempting to map context URI '/*.jsp'
    [Fri Jul 21 13:15:19 2006] [4030:10464] [debug] map_uri_to_worker::jk_uri_worker_map.c (449): Attempting to map URI '/bannerads/adlog.php' from 5 maps
    [Fri Jul 21 13:15:19 2006] [4030:10464] [debug] map_uri_to_worker::jk_uri_worker_map.c (461): Attempting to map context URI '/servlets-examples/*'
    [Fri Jul 21 13:15:19 2006] [4030:10464] [debug] map_uri_to_worker::jk_uri_worker_map.c (461): Attempting to map context URI '/jsp-examples/*.jsp'
    [Fri Jul 21 13:15:19 2006] [4030:10464] [debug] map_uri_to_worker::jk_uri_worker_map.c (461): Attempting to map context URI '/*/servlet/*'
    [Fri Jul 21 13:15:19 2006] [4030:10464] [debug] map_uri_to_worker::jk_uri_worker_map.c (461): Attempting to map context URI '/ROOT/*'
    [Fri Jul 21 13:15:19 2006] [4030:10464] [debug] map_uri_to_worker::jk_uri_worker_map.c (461): Attempting to map context URI '/*.jsp'
    [Fri Jul 21 13:15:19 2006] [4030:10464] [debug] map_uri_to_worker::jk_uri_worker_map.c (449): Attempting to map URI '/bannerads/adlog.php' from 5 maps
    [Fri Jul 21 13:15:19 2006] [4030:10464] [debug] map_uri_to_worker::jk_uri_worker_map.c (461): Attempting to map context URI '/servlets-examples/*'
    [Fri Jul 21 13:15:19 2006] [4030:10464] [debug] map_uri_to_worker::jk_uri_worker_map.c (461): Attempting to map context URI '/jsp-examples/*.jsp'
    [Fri Jul 21 13:15:19 2006] [4030:10464] [debug] map_uri_to_worker::jk_uri_worker_map.c (461): Attempting to map context URI '/*/servlet/*'
    [Fri Jul 21 13:15:19 2006] [4030:10464] [debug] map_uri_to_worker::jk_uri_worker_map.c (461): Attempting to map context URI '/ROOT/*'
    [Fri Jul 21 13:15:19 2006] [4030:10464] [debug] map_uri_to_worker::jk_uri_worker_map.c (461): Attempting to map context URI '/*.jsp'
    [Fri Jul 21 13:15:19 2006] [4030:10464] [debug] map_uri_to_worker::jk_uri_worker_map.c (449): Attempting to map URI '/images/employment1.gif' from 5 maps
    [Fri Jul 21 13:15:19 2006] [4030:10464] [debug] map_uri_to_worker::jk_uri_worker_map.c (461): Attempting to map context URI '/servlets-examples/*'
    [Fri Jul 21 13:15:19 2006] [4030:10464] [debug] map_uri_to_worker::jk_uri_worker_map.c (461): Attempting to map context URI '/jsp-examples/*.jsp'
    [Fri Jul 21 13:15:19 2006] [4030:10464] [debug] map_uri_to_worker::jk_uri_worker_map.c (461): Attempting to map context URI '/*/servlet/*'
    [Fri Jul 21 13:15:19 2006] [4030:10464] [debug] map_uri_to_worker::jk_uri_worker_map.c (461): Attempting to map context URI '/ROOT/*'
    [Fri Jul 21 13:15:19 2006] [4030:10464] [debug] map_uri_to_worker::jk_uri_worker_map.c (461): Attempting to map context URI '/*.jsp'
    [Fri Jul 21 13:15:19 2006] [4030:10464] [debug] map_uri_to_worker::jk_uri_worker_map.c (449): Attempting to map URI '/images/employment1.gif' from 5 maps
    [Fri Jul 21 13:15:19 2006] [4030:10464] [debug] map_uri_to_worker::jk_uri_worker_map.c (461): Attempting to map context URI '/servlets-examples/*'
    [Fri Jul 21 13:15:19 2006] [4030:10464] [debug] map_uri_to_worker::jk_uri_worker_map.c (461): Attempting to map context URI '/jsp-examples/*.jsp'
    [Fri Jul 21 13:15:19 2006] [4030:10464] [debug] map_uri_to_worker::jk_uri_worker_map.c (461): Attempting to map context URI '/*/servlet/*'
    [Fri Jul 21 13:15:19 2006] [4030:10464] [debug] map_uri_to_worker::jk_uri_worker_map.c (461): Attempting to map context URI '/ROOT/*'
    [Fri Jul 21 13:15:19 2006] [4030:10464] [debug] map_uri_to_worker::jk_uri_worker_map.c (461): Attempting to map context URI '/*.jsp'
    [Fri Jul 21 13:15:19 2006] [4025:10464] [debug] map_uri_to_worker::jk_uri_worker_map.c (449): Attempting to map URI '/daily/1997/01/06/sports/ap06sd.ap' from 5 maps
    [Fri Jul 21 13:15:19 2006] [4025:10464] [debug] map_uri_to_worker::jk_uri_worker_map.c (461): Attempting to map context URI '/servlets-examples/*'
    [Fri Jul 21 13:15:19 2006] [4025:10464] [debug] map_uri_to_worker::jk_uri_worker_map.c (461): Attempting to map context URI '/jsp-examples/*.jsp'
    [Fri Jul 21 13:15:19 2006] [4025:10464] [debug] map_uri_to_worker::jk_uri_worker_map.c (461): Attempting to map context URI '/*/servlet/*'
    [Fri Jul 21 13:15:19 2006] [4025:10464] [debug] map_uri_to_worker::jk_uri_worker_map.c (461): Attempting to map context URI '/ROOT/*'
    [Fri Jul 21 13:15:19 2006] [4025:10464] [debug] map_uri_to_worker::jk_uri_worker_map.c (461): Attempting to map context URI '/*.jsp'
    [Fri Jul 21 13:15:19 2006] [4025:10464] [debug] map_uri_to_worker::jk_uri_worker_map.c (449): Attempting to map URI '/daily/1997/01/06/sports/ap06sd.ap' from 5 maps
    [Fri Jul 21 13:15:19 2006] [4025:10464] [debug] map_uri_to_worker::jk_uri_worker_map.c (461): Attempting to map context URI '/servlets-examples/*'
    [Fri Jul 21 13:15:19 2006] [4025:10464] [debug] map_uri_to_worker::jk_uri_worker_map.c (461): Attempting to map context URI '/jsp-examples/*.jsp'
    [Fri Jul 21 13:15:19 2006] [4025:10464] [debug] map_uri_to_worker::jk_uri_worker_map.c (461): Attempting to map context URI '/*/servlet/*'
    [Fri Jul 21 13:15:19 2006] [4025:10464] [debug] map_uri_to_worker::jk_uri_worker_map.c (461): Attempting to map context URI '/ROOT/*'
    [Fri Jul 21 13:15:19 2006] [4025:10464] [debug] map_uri_to_worker::jk_uri_worker_map.c (461): Attempting to map context URI '/*.jsp'
    stepping back, I added this to httpd.conf to get apache-tomcat working:
    httpd.conf:
    # Mod_jk settings
    # Load mod_jk module
    LoadModule jk_module modules/mod_jk.so
    # Where to find workers.properties
    JkWorkersFile conf/workers.properties
    # Where to put jk logs
    JkLogFile logs/mod_jk.log
    # Set the jk log level [debug/error/info]
    JkLogLevel debug
    # Select the log format
    JkLogStampFormat "[%a %b %d %H:%M:%S %Y] "
    # JkOptions indicate to send SSL KEY SIZE,
    JkOptions ForwardKeySize ForwardURICompat -ForwardDirectories
    # JkRequestLogFormat set the request format
    JkRequestLogFormat "%w %V %T"
    # Send JSPs for context /jsp-examples to worker named default
    JkMount /jsp-examples/*.jsp default
    # Send servlets-examples to worker named default
    JkMount /servlets-examples/* default
    # Send search2 to worker named default
    JkMount /ROOT/* default
    JkMount /*/servlet/* default
    JkMount /*.jsp default
    to get php working I installed jsr223 and added this to my web.xml file
    <servlet>
    <servlet-name>JSR223Script</servlet-name>
    <servlet-class>com.sun.script.http.ScriptServlet</servlet-class>
    <init-param>
    <param-name>script-blocks</param-name>
    <param-value>js,groovy</param-value>
    </init-param>
    </servlet>
    and then this under the servlet-mapping section. When I add this, php pages will show correctly, but my nutch search.jsp page just comes up as a blank page. My / jsp-examples/ work however.
    <servlet-mapping>
    <servlet-name>JSR223Script</servlet-name>
    <url-pattern>*.php</url-pattern>
    </servlet-mapping>
    <servlet-mapping>
    <servlet-name>JSR223Script</servlet-name>
    <url-pattern>*.js</url-pattern>
    </servlet-mapping>
    <servlet-mapping>
    <servlet-name>JSR223Script</servlet-name>
    <url-pattern>*.groovy</url-pattern>
    </servlet-mapping>
    When I remove the 3 server mappings, the nutch jsp pages work fine, but the php pages don�t
    Any help would be greatly appreciated! Thanks

    My suggestion would be to post to the correct forum. This forum is dedicated to discussions regarding Java Web Start, and although most people where would be able to help, these kind of posts are considered a little rude.
    The best place to start searching is at the Apache Project website - http://jakarta.apache.org/.

  • How can I port an existing Tomcat (JSP) application in SAP Netweaver 2004s

    Hi All,
    I want to port an existing JSP application (using Tomcat as Web server) in SAP Web AS 6.40.
    Please any one suggest me.
    Eagerly looking forward to your reply......
    Thanks and Regards
    Avijit Dhar

    Hi,
    The maximum number of work processes depends on several things like the below.
    1)  Majorly on Your primary Memory
    2)  Hardware capacity
    3)  Operating systems
    4)  SAP version as well...
    You need to calculate the work processes with your primary memory.
    Every work process should take 150 mb space on memory.. so you need to increase the work processes that should be campatible with your primary memory.
    And please read the OSS notes as suggested by our frnds then go ahead with your rquirement.
    -Srini

  • JSP - PHP

    Hi,
    I want to include a PHP file in my JSP file. How to do that ? Please give me syntax or idea ?
    Thanks.

    In your JSP use <iframe src="PHP_Doc"></iframe>

  • Oracle 9i and Tomcat JSP

    hi all,
    i just installed oracle 9i and i'm having some issues with running my existing JSP on tomcat. basically tomcat won't start!!
    the exception on starting tomcat that i get is
    "Address in use: JVM_Bind"
    obviously 9i has played with my java vm somewhere and i can't figure out where. is there somewhere in 9i that i can configure the jvm used (or in tomcat even??) ?? some other solution perhaps.
    if anyone has anything at all to help me out it would be most appreciated. thanks.
    Takis

    Hi we have a similar problem.
    Oracle have a service PaginServer, that use a the port 80.
    We shut down this service and it work.
    i hope it help

  • Mysql, jdbc, tomcat, jsp...

    hi,
    i am new in this topic.
    i have some simple questions:
    i use windows. i downloaded eclipse wtp, mysql 5.0.41, apache tomcat 6.0.13 and installed them all.
    what version of jdbc should i download and what are the steps for a working connection between jsp and mysql?
    what is the code that i should copy on the classpath?
    where is classpath?
    i know it is very boring for you but if you could help i would be so pleased:)
    thank you..

    what version of jdbc should i download JDBC is just available in the JDK.
    If you mean the JDBC driver, the Connector/J, just refer to the manfacturer's site.
    Here is a link: http://www.mysql.com/products/connector/j/
    For Java 1.5 (JDBC 3.0), get the Connector/J 5.0.
    For Java 1.6 (JDBC 4.0), get the Connector/J 5.1.
    and what are the steps for a working connection between jsp and mysql?
    what is the code that i should copy on the classpath?Read the reference manual available at the Connector/J site.
    http://dev.mysql.com/doc/refman/5.0/en/connector-j.html
    where is classpath?It depends on the running environment. As you're using Eclipse, just rightclick at the project, choose Properties, navigate to Java Build Path, choose tab Libraries and add the JAR to the classpath.

  • Session variables in jsp,php

    Dear friends,
    is there any way tht i can pass the session variables set in a jsp file to a php file. Is there any way to do this apart from setting cookies?
    plz help!!
    bussa

    You can create POST or GET request.

  • Installing tomcat JSP engine

    I am installing TOMCAT so i can run JSP files on my apache webserver. Everything works fine. Installed a new version of Solaris9 installed GCC and after that Apache.....
    No problem I get the basic apache page.. so it is working fine. :-)
    Now we have a problem I installed java and after that I would like to install tomcat... to run tomcat i have to set the enviromental variable JAVA_HOME to the directory where java is installed......
    How the #^&*#^* do I set a enviromental variable... I like to do this when the box boots....
    Anyone with experience installing tomcat on a clean solaris9 box and setting the JAVA_HOME?
    Thanks already.
    Johan.

    I am installing TOMCAT so i can run JSP files on my apache webserver. Everything works fine. Installed a new version of Solaris9 installed GCC and after that Apache.....
    No problem I get the basic apache page.. so it is working fine. :-)
    Now we have a problem I installed java and after that I would like to install tomcat... to run tomcat i have to set the enviromental variable JAVA_HOME to the directory where java is installed......
    How the #^&*#^* do I set a enviromental variable... I like to do this when the box boots....
    Anyone with experience installing tomcat on a clean solaris9 box and setting the JAVA_HOME?
    Thanks already.
    Johan.

  • Comparing JSP ,PHP AND ASP

    Hello
    Can you send me few reasons why is JSP better then ASP nad PHP.
    Thanks Jelena

    I don't know much of PHP but I can defintely compare it to ASP. ASP is a Windows proprietary technology that runs primarily on Windows machines. It uses either JavaScript or VBScript as the underlying language and has some limitations. For one there is the lack of multithreading which makes tasks that require asyncronous processing rather difficult. VBScript is a subset of Visual Basic which means there are a lot of things (objects and such) left out. You can create objects encompassing anymissing functionality out of COM using a CreateObject statement but if the objects were created using Visual Basic then there are threading issues that severly limit the amount of concurrent access. There is no direct support for polymorphism and inhereitance in VB which means Visual Basic is not a true object oriented language.
    JSP overcomes all of these limitations by using Java as the underlying programming language. Java has language level support for threading that eases the burden of concurrent access and makes asynchronous tasks a snap. It is based on the J2EE standard rather than a proprietary technology. There are various implementations of this standard that allow you to plug JSP apps into virtually any webserver running on almost any hardware. Java includes direct support for polymorphism and inheritance making it a true object oriented language.
    ASP.Net/VB.Net overcomes all of the mistakes made with ASP/VB by mimicking the Java/JSP platform. This shows that the ideas implemented in Java are rather strong ideas and have longevity. If you are writing your 1st web app and have limited knowledge of how the net works then maybe VB/ASP is a better starting point for it's simplicity and integrated environment. However, when you are ready to build scalable enterprise level web apps then JSP is definitely the better choice. Take it from someone experieinced in both.
    Cliff

  • JSP , PHP, ASP???

    i read somewhere that php is far more powerful than JSP and PHP? is that rue??
    also for which is finding hosting, cheaper and easier???
    Ali

    PHP more powerful? Depends on what you mean by power.
    In terms of features, no. JSP and ASP have many more features. They have full fledged OO programming languages and API libraries backing them up.
    In terms of speed, it can be faster, just BECAUSE it doesn't have to bother with all the features that JSP/ASP provide.
    In terms of memory requirements, PHP wins hands down. Java/ASP can be quite memory hungry.
    They all do basically the same stuff at the end of the day - generate dynamic web pages.
    For a lot of simple small-medium size websites PHP is perfectly fine.
    ASP and .NET can provide many more features, but you are tied to MIcrosoft platforms.
    Java/JSP is the best (of course - how can I say other on a java forum) - provides a good balance of speed/power without tying you down to a specific platform
    You will probably find hosting easier for PHP/MySQL than you will for the other technologies, though I can't say with any certainty. I haven't really looked myself :-)
    Cheers.
    evnafets
    (let the flames begin)

  • Jsp - php integration

    Hi all,
    First up all I am very new to java. I have a web application developed on php.
    I also have a CRM (customer relation management) delevoped on jsp.So I want
    to pass some values from php to java so that a popup window showing details of customer will
    generate on java (jsp).
    I will explain my scenario..I have a php CRM which is used as a predictive dialer for asterisk.(voip).
    But I also have customized CRM which is developed on jsp.
    The use of php CRM is, I can use it as a predictive dialer and when a call connects to a customer
    a popup is generated and will show that customers details.That popup is done by ajax in php CRM.
    I want that popup to come on java CRM so that it have more options and fields.Is there any way for that...
    I am expecting somebody's help.......

    Prasad,
    This forum is dedicated to JSR-208 (Java Business Integration), so it isn't too likely you'll find an answer to a JSP question here. The types of integration topics discussed here are related to enterprise application integration (EAI) and business-to-business (B2B) interoperation.
    You might try the JSP forum, http://forum.java.sun.com/forum.jspa?forumID=45, or one of its sibling forums in the Web Applications area (http://forum.java.sun.com/category.jspa?categoryID=20).
    I believe you'll find an answer to your question here: http://forum.java.sun.com/thread.jspa?threadID=703737&messageID=4080080
    -Ron

  • Strange thing with tomcat+jsp+javabean

    I use javabean in jsp with tomcat container.if I put the javabean file in a package,then it works well.But if I don't, I means,there are no package clause in my javabean file.then it complaint that org.apache.jsp. error:class not found.
    It is very strange.Of course place the class file I put is right.Do anyone encounter the same problem.I use tomcat4.0.4

    Did you import the classfile? Even if it is not there in a package, you need to import it.
    For example, if you have a Test.java (Test.class) in your web-inf\\classes with out any package statement, then you need to code this in your jsp,
    <%@ page import="Test" %> (I don't exactly remember whether you need to import 'Test' or 'Test.class'). Just give a try.
    Sudha

  • Linux Apache /Tomcat - JSP

    Hi,
    I am very new to the Apache/Tomcat world (and Linux for that matter).... what I have is RedHat 9
    Apache version 2.0.40-21 (pre-loaded with RH9)
    is this enough for running JSP with database connectivity. or tomcat also required.
    help me

    Hi,
    Yes Tomcat and Apache can run on the same server as long as they are both configured to do so. IE: You could have apache serve all the static files (html, images, etc.) and then have Tomcat just serve the JSP/Java side of the web application.
    This config tends to perform better because if I'm correct Tomcat handles HTML and image requests slower than apache does (or did they fix that?).
    As for the ports, if I'm right the default port on Apache is 80 and Tomcat is 8080.
    dapanther...

Maybe you are looking for

  • Can't Open Safari anymore - Crashes everytime

    Process:               Safari [19470] Path:                  /Applications/Safari.app/Contents/MacOS/Safari Identifier:            com.apple.Safari Version:               8.0.2 (10600.2.5) Build Info:            WebBrowser-7600002005000000~1 Code Typ

  • Cannot be heard at all

    When using Skype # to call out to landline, businesses (usually) I can hear them perfectly but they do NOT hear me at all....not BAD sound just NO sound on their end...many different attempts and different business numbers ....does not happen with re

  • Facing issue in integrating with Cisco ISE

    We are trying to integrate our product(Cisco Prime Infrastructure) with Cisco ISE for Authentication and Authorizations. We already support PAP/CHAP, and not trying to add support for EAP-TLS. Currently during our integration, facing TLS payload erro

  • Setting up LAF

    I'm trying to change how my java app looks so i've gone to www.javootoo.com and downloaded a theme. from that i've got a .jar file. Now being a noobie I don't know how to set it up. I setup a CLASPATH environment variable but then I can't compile my

  • Ink Aware Plug-In: what is it?

    Hi, I keep getting a message saying - Adobe Ink Aware Plug-In not installed - but can't find any information on what this Plug-In is and where to find a copy to download and install. Can anyone help? Thx. Ali