kandy
2006-08-31 00:58:34 UTC
<%
String back_check[]=request.getParameterValues("yron");
String back_ins_no[]=request.getParameterValues("ins_no");
int i;
int size=9;
for(i=0;i<size;i++)
{
if(back_check[i].equals("checked"))
{
out.println("back_ins_no[i]");
}
}
%>
==========================================
執行後出現這訊息:
HTTP Status 500 -
--------------------------------------------------------------------------------
type Exception report
message
description The server encountered an internal error () that prevented it
from fulfilling this request.
exception
org.apache.jasper.JasperException: Exception in JSP: /Management/do.jsp:15
12: int size=9;
13: for(i=0;i<size;i++)
14: {
15: str=back_check[i];
16: if(str.equals("checked"))
17: {
18: out.println("back_ins_no[i]");
Stacktrace:
org.apache.jasper.servlet.JspServletWrapper.handleJspException(JspServletWrapper.java:504)
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:393)
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:314)
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:264)
javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
root cause
java.lang.NullPointerException
org.apache.jsp.Management.do_jsp._jspService(do_jsp.java:61)
org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:97)
javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:332)
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:314)
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:264)
javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
========================================================================
請教各位前輩該怎麼解決,另外還有個問題..就是arrary的陣列個數要如何取得?
感謝大家!
note The full stack trace of the root cause is available in the Apache
Tomcat/5.5.17 logs.
--------------------------------------------------------------------------------
--
※ 發信站: 批踢踢實業坊(ptt.cc)
◆ From: 61.64.65.202
[1;37m推 [33mPsMonkey[m[33m:請先找一本「Java」的書,把基礎弄懂... [m 08/31 16:58
String back_check[]=request.getParameterValues("yron");
String back_ins_no[]=request.getParameterValues("ins_no");
int i;
int size=9;
for(i=0;i<size;i++)
{
if(back_check[i].equals("checked"))
{
out.println("back_ins_no[i]");
}
}
%>
==========================================
執行後出現這訊息:
HTTP Status 500 -
--------------------------------------------------------------------------------
type Exception report
message
description The server encountered an internal error () that prevented it
from fulfilling this request.
exception
org.apache.jasper.JasperException: Exception in JSP: /Management/do.jsp:15
12: int size=9;
13: for(i=0;i<size;i++)
14: {
15: str=back_check[i];
16: if(str.equals("checked"))
17: {
18: out.println("back_ins_no[i]");
Stacktrace:
org.apache.jasper.servlet.JspServletWrapper.handleJspException(JspServletWrapper.java:504)
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:393)
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:314)
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:264)
javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
root cause
java.lang.NullPointerException
org.apache.jsp.Management.do_jsp._jspService(do_jsp.java:61)
org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:97)
javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:332)
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:314)
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:264)
javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
========================================================================
請教各位前輩該怎麼解決,另外還有個問題..就是arrary的陣列個數要如何取得?
感謝大家!
note The full stack trace of the root cause is available in the Apache
Tomcat/5.5.17 logs.
--------------------------------------------------------------------------------
--
※ 發信站: 批踢踢實業坊(ptt.cc)
◆ From: 61.64.65.202
[1;37m推 [33mPsMonkey[m[33m:請先找一本「Java」的書,把基礎弄懂... [m 08/31 16:58