将存储在字符串值中的 java 类 macaddress.java 输出传输到 LOGINPAGE.jsp 中的隐藏文本字段 MAC

发布于 2024-10-07 17:18:39 字数 349 浏览 0 评论 0原文

Java类程序ma​​caddress,它保存本地主机的macaddress地址......而其他是loginpage.jsp......我需要包括java 类ma​​caddress输出,存储在隐藏文本字段中的字符串macaddress=00-K0-89-9D-JY中,该字段将获取BE能够获取 MAC 地址以及用户名和密码...任何人都可以用简单的解释 源代码...如何将存储在字符串值中的 java 类输出传输到 LOGINPAGE.jsp 中的隐藏文本字段 MAC... 感谢您抽出时间, 问候, 老兄

Java class program macaddress which holds the macaddress address of a local host.... and other is a loginpage.jsp... i need to include the java
class macaddress output which is stored in a string macaddress=00-K0-89-9D-JY in a hidden text field which wil fetch BE ABLE TO FETCH the MAC address along with username and password...can anyone explain with a simple
source code...how to TRANSFER a java class output STORED IN A STRING value to a HIDDEN text field MAC in LOGINPAGE.jsp...
thanks for ur time,
regards,
dude

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

萌能量女王 2024-10-14 17:18:39

在您的 Servlet 中:

request.setAttribute("macaddress", "00-K0-89-9D-JY");

在您的 jsp 文件中:

<input type='hidden' value='${macaddress}' />

In your Servlet:

request.setAttribute("macaddress", "00-K0-89-9D-JY");

In your jsp file:

<input type='hidden' value='${macaddress}' />
~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文