[英]JSP: how to include a page with get parameters?
I need to include a page from an external application in one of my pages.我需要在我的一个页面中包含来自外部应用程序的页面。 Now this page expects a get parameter.现在这个页面需要一个 get 参数。 So the url would be something like /x/y?z=123.所以 url 类似于 /x/y?z=123。
I was thinking:我刚在想:
<jsp:include page="/x/y?z=${zParam}"/>
But that doesn't seem to do the trick?但这似乎并不奏效? Any advice?有什么建议吗?
Try JSTL's <c:import url="..">
试试 JSTL 的<c:import url="..">
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.