简体   繁体   中英

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. How to achieve it? Basically my application gets data from wsdl link and java file processes it. And I want to pass the output of java file to jsp.

Thanks in advance.

request.setAttribute("value",valueFromWSDL);

This can be set in the java.

In the index.jsp you can use

request.getAttribut("value");

to obtain the value

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM