[英]I need to pass a parameter expected by a . tag file, using javascript
I have a .tag file that renders an HTML output but it expects an attribute. 我有一个呈现HTML输出的.tag文件,但它需要一个属性。 I need to pass the required data to that tag file using a javascript file.
我需要使用javascript文件将所需数据传递到该标记文件。 Is there a way to do that?
有没有办法做到这一点?
.tag文件只是Servlet(它们在服务器上运行),因此您必须将值从JS传递到.tag的唯一方法是启动一个将这些值传递给包含.tag的jsp的请求,并通过请求对象,例如: ${requestScope.myParam}
No you can't. 不,你不能。 I wish it was that easy.
我希望那是那么容易。 You probably want to pass a client property to the tag (which reside on de server) but that's not going to work..
您可能想要将客户端属性传递给标记(位于服务器上),但这将无法正常工作。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.