Home >Web Front-end >HTML Tutorial >I have a question about some content in the cell that cannot be displayed_html/css_WEB-ITnose

I have a question about some content in the cell that cannot be displayed_html/css_WEB-ITnose

WBOY
WBOYOriginal
2016-06-24 11:58:23938browse

                  for(int i=0;i                  {
                        Dutyplan d=(Dutyplan)list.get(i);
                       if( d.getOndutytime().equals("上午1、2")&&d.getWeekday()==1)
                       {
                              out.println(d.getTeacher().getRealname());
                               if(d.getWeeks()!=null)
                              {
                                    out.println("
");
                                    out.println(d.getWeeks());
                              }
                     out.println("
");
                     out.println(d.getTeacher().getCellphone());
                     out.println("
");                    
                     }
                 }
这个就是我写的HTML页面每个单元格显示该条记录的条件。红色的那一行。每个单元格都有写。但是在所有的单元格里,在getWeeks不为NULL的前提下,只有一个单元格能显示出来。其他的单元格都不会显示getWeeks的返回值。但是我在后台测试,发现每条记录的getWeeks是存在的,而且赋值正确。但就是无法显示。语法是没有错误的。不知道问题出在哪里?还是说是我软件自己出了问题?


回复讨论(解决方案)

if( d.getOndutytime().equals("上午1、2")&&d.getWeekday()==1)
条件都满足了?

if( d.getOndutytime().equals("上午1、2")&&d.getWeekday()==1)
条件都满足了?

对。记录都能在相应的单元格显示  但就是不能显示GETWEEKS

out.println("
");
out.println(d.getWeeks());

打印到日志里

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn