Meaningless Drivel is fun!
The moose likes Tomcat and the fly likes apache doesn't run jsp Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Products » Tomcat
Bookmark "apache doesn Watch "apache doesn New topic
Author

apache doesn't run jsp

moshi cochem
Ranch Hand

Joined: Nov 10, 2009
Posts: 91
Hi,
I'm working with moodle application. written in php - http://moodle.org/ - if someone knows it.
I have to call from it to jsp file that working in java application.
If there is a simple apache tomcat on the machine, the java app is running well.
In the moodle case, the tomcat server is encapsulated somehow inside the folders of the moodle.
I don't see there any folder called webapps - for puting there my war file.
I took the folder that should be developed out of the war file and manualy put it in the folder that contains
other php files. when i call to one of my jsp pages, I get the source of the file desplayed on the screen,
and not the result html.
Anybody has any idea ?
thanks
Deepak Bala
Bartender

Joined: Feb 24, 2006
Posts: 6662
    
    5

php and JSP are evaluated completely differently. Are you trying to place a war along with php files and expecting them to work ?


SCJP 6 articles - SCJP 5/6 mock exams - More SCJP Mocks
moshi cochem
Ranch Hand

Joined: Nov 10, 2009
Posts: 91
Hi,
thanks for your answer.
What I'm trying to do is taking Moodle application that is a php application, and from the php files to call to jsp files.
I relised that the moodle application is working on apache, and that jsp needs tomcat.
So, I guess I should search now for "how I can run Moodle application on tomcat" or something like this...
Any suggestion ?
Thanks a lot!
Tim Holloway
Saloon Keeper

Joined: Jun 25, 2001
Posts: 17038
    
  26

moshi cochem wrote:Hi,
thanks for your answer.
What I'm trying to do is taking Moodle application that is a php application, and from the php files to call to jsp files.
I relised that the moodle application is working on apache, and that jsp needs tomcat.
So, I guess I should search now for "how I can run Moodle application on tomcat" or something like this...
Any suggestion ?
Thanks a lot!


PHP can't "call" jsp files, but it can reference JSP content (and the reverse).

Apache (more formally Apache HTTPD) can't run Java - including JSP. Apache Tomcat can't run anything but Java - at least without help. So you'd need one of each, and the pages would have to reference the opposing resources using URLs.


An IDE is no substitute for an Intelligent Developer.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: apache doesn't run jsp
 
It's not a secret anymore!