Jsp can';无法在param变量中获取任何内容
我似乎无法在param值中获取任何内容……请求被传递到servlet,但项目在 告诉我我做错了什么 JSp-Jsp can';无法在param变量中获取任何内容,jsp,servlets,Jsp,Servlets,我似乎无法在param值中获取任何内容……请求被传递到servlet,但项目在 告诉我我做错了什么 JSp- 你能告诉我你在哪里设置'lasti'属性和'k'+i属性吗 int x=(Integer)request.getAttribute("lasti"); request.getAttribute("k"+i); intx=(整数)request.getAttribute(“lasti”) request.getAttribute(“k”+i) 这是正确的Jsp: <% ou
你能告诉我你在哪里设置'lasti'属性和'k'+i属性吗 int x=(Integer)request.getAttribute("lasti");
request.getAttribute("k"+i); intx=(整数)request.getAttribute(“lasti”)
request.getAttribute(“k”+i) 这是正确的Jsp:
<%
out.println("<marquee bgcolor=\"cyan\">WELCOME TO XWEB</marquee>");
Integer x=(Integer)request.getAttribute("lasti");
int count =x;
for(int i=0;i<=count;i++)
{
String msubject=(String)request.getAttribute("k"+i);
out.println("<a href=\"/xweb/rimds?¶m="+msubject +"\">"+msubject+"</a>");
out.println("</br>");
}
out.println("<a href=\"/xweb/customerLogin.html\">logout</a>");
%>
int x=(Integer)request.getAttribute("lasti");request.getAttribute("k"+i);
<%
out.println("<marquee bgcolor=\"cyan\">WELCOME TO XWEB</marquee>");
Integer x=(Integer)request.getAttribute("lasti");
int count =x;
for(int i=0;i<=count;i++)
{
String msubject=(String)request.getAttribute("k"+i);
out.println("<a href=\"/xweb/rimds?¶m="+msubject +"\">"+msubject+"</a>");
out.println("</br>");
}
out.println("<a href=\"/xweb/customerLogin.html\">logout</a>");
%>