¼òµ¥µÄjspÊä³ö
ÎÒÏëÒªÊä³ö1µ½30 ÒªÕâÑùµÄЧ¹û
1 2 3 4 5 6 7
8 91011121314
15161718192021
22232425262728
2930
¾ÍÊÇÒªÈÕÆÚµÄÄÇÑù£¬ÎÒÊÔÁ˺ܶàµÄ·½·¨¶¼Ã»Óã¬ÒòΪÓеÄÊÇ1¸öλÖã¬ÓеÄÊÇÁ½¸öλÖõģ¬ºÃÄѸ㣬
Ï£Íû¸ßÊÖÄܸø¸ö ¿ÉÒÔʵÏֵĴúÂë
×ö¸öÅжϰ¡£¬1λµÄ¾Í²¹¸ö¿Õ¸ñʲôµÄ
// 0 ´ú±íÇ°Ãæ²¹³ä0
// 4 ´ú±í³¤¶ÈΪ4
// d ´ú±í²ÎÊýΪÕýÊýÐÍ
String str1 = String.format("%02d", number1);
System.out.println(str1);// 1Êä³öΪ01
<% String str =null;
PrintWriter pw = response.getWriter();
String[] strs = new String[31];
for(int i =1;i<=30;i++){
if(i<10){
str = " " + i;
}else{
str = " "+i;
}
strs[i]=str;
pw.print(strs[i]);
if(i==7||i==14||i==21||i==28){
pw.println("<br>");
}
}%>
Java code:
public class Test {
public static void main(String[] args) {
String str = null;
String[] strs = new String[31];
for (int i = 1; i <= 30; i++) {
if (i < 10) {
str = i + " ";
} else {
str = i + " ";
}
strs[i] = str;
Ïà¹ØÎÊ´ð£º
type Exception report
message
description The server encountered an internal error () that prevented it from fulfilling this request.
exception
org.apache.jas ......
JSPÒ³ÃæÖÐÓжà¸öradio°´Å¥
JSPÒ³Ãæ½«²ÎÊýPOST¸øservlet
ÒªÇóÈçÏÂ;
1.Ñ¡ÔñÒ»¸öradio£¬µ÷ÓÃservlet servletÖиù¾Ý²ÎÊýµ÷ÓÃÆäËû½Ó¿Ú£¬³ý·ÇÑ¡ÖиÃradio²¢µã»÷JSPÖеÄʵР......
jspÒ³ÃæÖеÄJava±äÁ¿³ö´í£¬ÇëÎÊÒ»ÏÂJavaµÄ¸ßÊÖÃÇ£¬ÈçºÎ½â¾ö£¿ÐèÒªÌí¼ÓÄĸöjar°ü
<logic:notEqual name="parts" property="checkStatus2" value="1">
<label for ......
ÕâÊÇ´íÎóÐÅÏ¢£¬ÑÏÖØ: Servlet.service() for servlet jsp threw exception
org.apache.jasper.JasperException: Unable to compile class for JSP:
An error occurred at line: 33 in the jsp file: /WebRo ......
org.apache.jasper.JasperException: Unable to compile class for JSP:
An error occurred at line: 52 in the jsp file: /vip_info.jsp
ÕË cannot be resolved
49: <table border="1& ......