What is the best way to embed code into html using java?

Asked 2 years ago, Updated 2 years ago, 33 views

In php, you can embed html in the form of <p>?=$hello;?>/p>, but how do I do the same thing using java?

Please let me know if you know more.Thank you for your cooperation.

php java html

2022-09-29 20:25

1 Answers

The easiest one is JSP.
Probably the closest image to php.

As a supplement, if you want to create a web application in Java, don't build it only with JSP, but leave it only with HTML output.

  • Combine with Servlet
  • Using various frameworks

and so on.

Information on building Java web applications can be found in various books and Internet articles.For example, the website below has been finalized, so why don't you refer to it?

http://www.techscore.com/tech/Java/JavaEE/index/


2022-09-29 20:25

If you have any answers or tips


© 2024 OneMinuteCode. All rights reserved.