请将下面代码中的JSP代码转化为PHP代码,谢谢了。
<%if(request.getAttribute("returnInfo")!=null){%><%=request.getAttribute("returnInfo"...
<%
if(request.getAttribute("returnInfo") != null){
%>
<%=request.getAttribute("returnInfo") %>
<%
}
%>
////////////////////////////////////////////////////////
page language="java" import="java.util.*" pageEncoding="ISO-8859-1"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<base href="<%=basePath%>">
////////////////////////////////////////////////////////
<%@ page language="java" import="java.util.*" pageEncoding="GB18030"%>
<%@ page import="java.util.ArrayList,com.xyj.struts.bean.XyjInfoBean" %>
<%
ArrayList aList = (ArrayList)request.getAttribute("XyjInfoaList");
XyjInfoBean sib = null;
%>
<%
if(aList != null){
for(int i=0;i<aList.size();i++){
sib = (XyjInfoBean)aList.get(i);
%> 展开
if(request.getAttribute("returnInfo") != null){
%>
<%=request.getAttribute("returnInfo") %>
<%
}
%>
////////////////////////////////////////////////////////
page language="java" import="java.util.*" pageEncoding="ISO-8859-1"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<base href="<%=basePath%>">
////////////////////////////////////////////////////////
<%@ page language="java" import="java.util.*" pageEncoding="GB18030"%>
<%@ page import="java.util.ArrayList,com.xyj.struts.bean.XyjInfoBean" %>
<%
ArrayList aList = (ArrayList)request.getAttribute("XyjInfoaList");
XyjInfoBean sib = null;
%>
<%
if(aList != null){
for(int i=0;i<aList.size();i++){
sib = (XyjInfoBean)aList.get(i);
%> 展开
1个回答
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询