简体   繁体   中英

How to change html files dynamically based on user login information using Apache Tomcat Server?

I want to make changes to HTML files based on the user login (by retrieving the user information from the database and displaying it on a page). How is it possible to do that? Based on my research so far, one way to do that is via PHP but I am using the Tomcat server and the Tomcat server does not understand PHP files.

If you use tomcat server then you need java code. It sounds like you are trying to interfere with an existing source code. If so, then you should name the project (or framework) then people will be easier to help you. With java, you can refer to some of the web framework:
- Spring ( https://spring.io/ )
- Struts ( https://struts.apache.org/ )
- Hibernate ( https://hibernate.org/ )
Or search here: https://installable.org/library/java/?k=web%20framework

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM