You need to have Tomcat to run on top of Apache 2 for start. However obvious question coming to my mind, what are you trying to do with this old fashion page building process????
peter_budo
Code tags enforcer
15,436 posts since Dec 2004
Reputation Points: 2,806
Solved Threads: 902
OK, I will call you crazy. There is no reason to do such stuff when Java is able to handle all this. Simple example can be found here in JSP section or if you willing to learn there is number of frameworks that can help you with database management like Hibernate, with website like Wicket
PS: Post is moved to JSP section
peter_budo
Code tags enforcer
15,436 posts since Dec 2004
Reputation Points: 2,806
Solved Threads: 902
Well then once you logged in on PHP side and have all data you may want to create request POST (attach all data you need to this request) on which servlet is specifically listening. Servlet will then retrieve data from request and do what ever it has to do. However that mean keeping bot technologies separated and communicate through request unlike you above attempt. Above is just theory, I did very little with PHP at university long time ago so I wouldn't be able to advice.
peter_budo
Code tags enforcer
15,436 posts since Dec 2004
Reputation Points: 2,806
Solved Threads: 902