avatar
s*e
1
How can one integrate a java class into a HTML page? Are Applet ,Servelet and
JSP the only ways to use a Java class in a HTML page? If I simply put a java
class with a form such as "Action=1.class", is the java intepretor going to
run it? In another word, can I run a java class with the way I run a
javascript or VBScript program?
Thanks,
avatar
r*l
2
JSP is the closest to what you need.
You can put your java code directly inside .
However, it is never a good way to put java code directly inside JSP page,
unless the project is very simple.
The java code should belong to backend. You can use JSTL for basic logic on
the JSP page.

and

【在 s******e 的大作中提到】
: How can one integrate a java class into a HTML page? Are Applet ,Servelet and
: JSP the only ways to use a Java class in a HTML page? If I simply put a java
: class with a form such as "Action=1.class", is the java intepretor going to
: run it? In another word, can I run a java class with the way I run a
: javascript or VBScript program?
: Thanks,

相关阅读
logo
联系我们隐私协议©2024 redian.news
Redian新闻
Redian.news刊载任何文章,不代表同意其说法或描述,仅为提供更多信息,也不构成任何建议。文章信息的合法性及真实性由其作者负责,与Redian.news及其运营公司无关。欢迎投稿,如发现稿件侵权,或作者不愿在本网发表文章,请版权拥有者通知本网处理。