[英]send parameters from java to jsp
I would like to send parameters from a java file that does a specific job to index.jsp file. 我想将参数从执行特定工作的Java文件发送到index.jsp文件。 How to achieve it?
如何实现呢? Basically my application gets data from wsdl link and java file processes it.
基本上,我的应用程序从wsdl链接获取数据,并通过java文件对其进行处理。 And I want to pass the output of java file to jsp.
而且我想将java文件的输出传递给jsp。
Thanks in advance. 提前致谢。
request.setAttribute("value",valueFromWSDL);
This can be set in the java. 可以在java中设置。
In the index.jsp you can use 在index.jsp中,您可以使用
request.getAttribut("value");
to obtain the value 获得价值
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.