[英]Using JSP, display org.apache.axis.message.MessageElement[] as String / XML output
I'm trying to display the output as either String / XML format on JSP.我正在尝试在 JSP 上将 output 显示为 String / XML 格式。
org.apache.axis.message.MessageElement[] msgElement = getScheduleData.get_any();
Here data is stored on msgElement
variable.这里数据存储在
msgElement
变量中。
What are the steps i need to take to display the msgElement
output as XML / String Format?我需要采取哪些步骤才能将
msgElement
output 显示为 XML / 字符串格式?
Thanks in advance.提前致谢。
Write this in your jsp file, where ever you want to display.将其写入您的 jsp 文件中,无论您想在哪里显示。
<% org.apache.axis.message.MessageElement[] type_any138 = getScheduleData.get_any();
String temp_any138 = null;
if(type_any138 != null){
java.util.List list_any138= java.util.Arrays.asList(type_any138);
temp_any138 = list_any138.toString();
}
%>
<%=temp_any138%>
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.