这个约瑟夫斯问题求解解

运行android项目时出现这个问题,求解
[问题点数:20分]
运行android项目时出现这个问题,求解
[问题点数:20分]
不显示删除回复
显示所有回复
显示星级回复
显示得分回复
只显示楼主
匿名用户不能发表回复!|
每天回帖即可获得10分可用分!小技巧:
你还可以输入10000个字符
(Ctrl+Enter)
请遵守CSDN,不得违反国家法律法规。
转载文章请注明出自“CSDN(www.csdn.net)”。如是商业用途请联系原作者。为了账号安全,请及时绑定邮箱和手机
求解这个问题,我感觉思路是对的啊
&?phpclass Car {
public $speed = 0; //汽车的起始速度是0
public function speedUp() {
$this-&speed += 10;
return $this-&
}}//定义继承于Car的Truck类class Truck extends
public function speedUp()
parent::speedUp();
return $this-&speedUp() += 50;
}}$car = new Truck();echo $car-&speedUp();
写下你的评论...
写下你的评论...
我之前引用了父类的方法了的嘛,这次引用的就应该就是父类的方法撒
其实我后面仔细看到你写了 但是我觉得你是语法不对
我感觉应该也是语法问题,能仔细说说吗
写下你的评论...
写下你的评论...
写下你的评论...
写下你的评论...
Copyright (C)
All Rights Reserved | 京ICP备 号-2唐崇荣牧师信仰问题解答集锦
此网页使用了框架,但您的浏览器不支持框架。查看:1830|回复:4
HTTP Status 500 -[hr]type Exception report
description The server encountered an internal error () that prevented it from fulfilling this request.
org.apache.jasper.JasperException: /Jsp/admin/newsDetailList.jsp(3,1) Page directive must not have multiple occurrences of pageencoding& & & & org.piler.DefaultErrorHandler.jspError(DefaultErrorHandler.java:40)& & & & org.piler.ErrorDispatcher.dispatch(ErrorDispatcher.java:407)& & & & org.piler.ErrorDispatcher.jspError(ErrorDispatcher.java:102)& & & & org.piler.Validator$DirectiveVisitor.visit(Validator.java:193)& & & & org.piler.Node$PageDirective.accept(Node.java:608)& & & & org.piler.Node$Nodes.visit(Node.java:2361)& & & & org.piler.Node$Visitor.visitBody(Node.java:2411)& & & & org.piler.Node$Visitor.visit(Node.java:2417)& & & & org.piler.Node$Root.accept(Node.java:495)& & & & org.piler.Node$Nodes.visit(Node.java:2361)& & & & org.piler.Validator.validateDirectives(Validator.java:1723)& & & & org.piler.generateJava(Compiler.java:182)& & & & org.pile(Compiler.java:347)& & & & org.pile(Compiler.java:327)& & & & org.pile(Compiler.java:314)& & & & org.apache.pile(JspCompilationContext.java:592)& & & & org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:326)& & & & org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:313)& & & & org.apache.jasper.servlet.JspServlet.service(JspServlet.java:260)& & & & javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
note The full stack trace of the root cause is available in the Apache Tomcat/6.0.30 logs.
[hr]Apache Tomcat/6.0.30
最有价值午饭
请把jsp贴上来,用代码控件
IT瞎掰群:,欢迎你!
/Jsp/admin/newsDetailList.jsp(3,1) Page directive must not have multiple occurrences of pageencoding
错误位置 大概如此~
不过 你的jsp 代码 贴出来看看 研究下&&只看错误描述信息 不能改正代码滴
中级工程师
Just do it
页面有多个编码?
技术再好也入侵不了你的心,是我的技术不够高还是你的心没有打开的权限?
欢迎光临JAVA板块:&&
我是在Jsp中加入了一些代码,用来显示数据库中的内容,加入以后就报错了,没加之前能够正常显示,这就是加入后的代码
& && && && && &NewsServiceImpl newsService=new NewsServiceImpl();
& && && && && &NewsDao newsDao=new NewsDaoImpl();
& && && && && &newsService.setNewsDao(newsDao);
& && && && && &List&News& newsList= newsService.getNewsList();
& && && && && &for(News news:newsList){
& && && && && &%&
& && && && && &&tr class=&admin-list-td-h2&&
& && && && && &
&td&&a href='adminNewsView.jsp?id=3'&&%=news.getTitle() %&&/a&&/td&
& && && && && &
&td&&%news.getAuthor(); %&&/td&
& && && && && &
&td&&%news.getCreateDate(); %&&/td&
& && && && && &
&td&&a href='adminNewsCreate.jsp?id=3'&修改&/a&
& && && && && &
&a href=&javascript:if(confirm('确认是否删除此新闻?')) location='adminNewsDel.jsp?id=3'&&删除&/a&
& && && && && &
下面是我整个JSP页面的代码:_____________________________________________________________________________________________________________
&% import=&com.pb.news.entity.News&%&
&%@ page language=&java& import=&java.util.*& pageEncoding=&UTF-8&%&
&%@ page language=&java& import=&java.util.Date,java.text.SimpleDateFormat& contentType=&text/ charset=UTF-8&
& & pageEncoding=&UTF-8&%&
&% import=&com.pb.news.service.NewsService&%&
&% import=&com.pb.news.service.impl.NewsServiceImpl&%&
&% import=&com.pb.news.dao.NewsDao&%&
&% import=&com.pb.news.dao.impl.NewsDaoImpl&%&
&!DOCTYPE html PUBLIC &-//W3C//DTD XHTML 1.0 Transitional//EN& &http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd&&
&html xmlns=&http://www.w3.org/1999/xhtml&&&head&
&meta http-equiv=&Content-Type& content=&text/ charset=UTF-8&&
&title&无标题文档&/title&
&link type=&text/css& rel=&stylesheet& href=&../../css/common.css&/&
&style type=&text/css&&
&!--页面顶部--&
&div id=&header&&
& & &div class=&main-top&&
& && &&&&div class=&logo&&&a href=&&&&span&新闻大视野&/span&&/a&&/div&
& && &&&&div class=&nav&&
& && && && &&ul class=&clearfix&&
& && && && && & &li&&a href=&#&&首页&/a&&/li&
& && && && && & &li&&a href=&#&&国内&/a&&/li&
& && && && && & &li&&a href=&#&&国际&/a&&/li&
& && && && && & &li&&a href=&#&&娱乐&/a&&/li&
& && && && && & &li&&a href=&#&&军事&/a&&/li&
& && && && &&/ul&
& && &&&&/div&
& & &/div&
& & &!--banner--&
& & &div class=&main-banner&&
& & &img src=&../../images/banner.png& /&
& & &/div&
& & &!--管理工具栏--&
& & &div class=&admin-bar&&
& && &&&&span class=&fr&&退出账户&/span&
& && &&&管理员:admin
& & &/div&
&!--主体--&
&div id=&content& class=&main-content clearfix&&
& & &div class=&main-content-left&&
& && &&&&!--新闻管理--&
& && &&&&div class=&class-box&&
& && && && &&div class=&class-box-header&&
& && && && && & &h3&新闻管理&/h3&
& && && && &&/div&
& && && && &&div class=&class-box-content&&
& && && && && & &ul&
& && && && && && &&&&li&&a href=&#&&新闻管理&/a&&/li&
& && && && && && &&&&li class=&clear-bottom-line&&&a href=&#&&最新新闻&/a&&/li&
& && && && && & &/ul&
& && && && &&/div&
& && &&&&/div&
& && &&&&!--//--&
& && &&&&!--主题管理--&
& && &&&&div class=&class-box&&
& && && && &&div class=&class-box-header&&
& && && && && & &h3&分类管理&/h3&
& && && && &&/div&
& && && && &&div class=&class-box-content&&
& && && && && & &ul&
& && && && && && &&&&li&&a href=&#&&分类管理&/a&&/li&
& && && && && && &&&&li class=&clear-bottom-line&&&a href=&#&&删除主题&/a&&/li&
& && && && && & &/ul&
& && && && &&/div&
& && &&&&/div&
& && &&&&!--//--&
& && &&&&!--账户管理--&
& && &&&&div class=&class-box&&
& && && && &&div class=&class-box-header&&
& && && && && & &h3&用户管理&/h3&
& && && && &&/div&
& && && && &&div class=&class-box-content&&
& && && && && & &ul&
& && && && && && &&&&li&&a href=&#&&用户管理&/a&&/li&
& && && && && && &&&&li class=&clear-bottom-line&&&a href=&#&&付费服务&/a&&/li&
& && && && && & &/ul&
& && && && &&/div&
& && &&&&/div&
& && &&&&!--//--&
& & &/div&
& & &div class=&main-content-right&&
& && &&&&!--即时新闻--&
& && &&&&div class=&main-text-box&&
& && && && &&div class=&main-text-box-tbg&&
& && && && && & &div class=&main-text-box-bbg&&
& && && && && && &&&&form name =&searchForm& id=&searchForm& action=&/news/jsp/admin/newsDetailList.jsp& method=&post&&
& && && & &div&
新闻分类:
&select name=&categoryId&&
&option value=&0&&全部&/option&
&option value='1' &国内&/option&
&option value='2' &国际&/option&
&option value='3' &娱乐&/option&
&option value='4' &军事&/option&
&option value='5' &财经&/option&
&option value='6' &天气&/option&
新闻标题&input type=&text& name=&title& id=&title& value=''/&
&button type=&submit& class=&page-btn&&GO&/button&
&button type=&button& class=&page-btn&&增加&/button&
&input type=&hidden& name=&currentPageNo& value=&1&/&
&input type=&hidden& name=&pageSize& value=&10&/&
&input type=&hidden& name=&totalPageCount& value=&2&/&
&table cellpadding=&1& cellspacing=&1& class=&admin-list&&
&tr class=&admin-list-head&&
&th&新闻标题&/th&
& && && && && && && && &&th&作者&/th&
& && && && && && && && &&th&时间&/th&
& && && && && && && && &&th&操作&/th&
& && && && && && &&&&/tr&
& && && && && & &/thead&
& && && && && & &tbody&
& && && && && &&%
& && && && && &NewsServiceImpl newsService=new NewsServiceImpl();
& && && && && &NewsDao newsDao=new NewsDaoImpl();
& && && && && &newsService.setNewsDao(newsDao);
& && && && && &List&News& newsList= newsService.getNewsList();
& && && && && &for(News news:newsList){
& && && && && &%&
& && && && && &&tr class=&admin-list-td-h2&&
& && && && && &
&td&&a href='adminNewsView.jsp?id=3'&&%=news.getTitle() %&&/a&&/td&
& && && && && &
&td&&%news.getAuthor(); %&&/td&
& && && && && &
&td&&%news.getCreateDate(); %&&/td&
& && && && && &
&td&&a href='adminNewsCreate.jsp?id=3'&修改&/a&
& && && && && &
&a href=&javascript:if(confirm('确认是否删除此新闻?')) location='adminNewsDel.jsp?id=3'&&删除&/a&
& && && && && &
& && && && && &
& && && && && & &%
& && && && && &}
& && && && && & %&
& && && && && & &/tbody&
& && && && &&/table&
& && && &&&&div class=&page-bar&&
&ul class=&page-num-ul clearfix&&
&li&共7条记录&& 1/2页&/li&
&a href=&javascript:page_nav(document.forms[0],2);&&下一页&/a&
&a href=&javascript:page_nav(document.forms[0],2);&&最后一页&/a&&&
&span class=&page-go-form&&&label&跳转至&/label&
& &&&&input type=&text& name=&inputPage& id=&inputPage& class=&page-key& /&页
& &&&&button type=&button& class=&page-btn& onClick='jump_to(document.forms[0],document.getElementById(&inputPage&).value)'&GO&/button&
& && &&&&/div&
& && & &/div&
&!--底部--&
&div class=&main-footer-box&&
& & 24小时客户服务热线:010- 常见问题解答 新闻热线:010-&br /&
& & 文明办网文明上网举报电话:010- 举报邮箱:&br /&
& & Coyright& News China gov,All Right Reserved.&br /&
& & 新闻中心版权所有
&/body&&/html&最近好多留言表示大家想要福利内涵君想播撒福利的内心那是杠杠的啊就是一时想不到好点子大家有没有什么好想法呢?你们都想要点啥?快来给内涵君留言,康木昂!各位看官您看我的小眼神儿↑↑↑点下底部广告(不需要下载也不需要关注)就当打赏内涵君了呗~1.什么神剧啊这是!?2.这手谁给你P上的3.装逼有风险,强装需谨慎4.以后都没办法直视土豪金的电饭煲了5.听到了妈妈心碎的声音6.谁特么把地擦这么干净!?7.保洁阿姨威武8.送给单身的你萌一个找伴侣的好方法9.谁帮忙解答下这个问题?。。。10.谁来猜猜这是哪句诗。。。(之九)——来自“濮阳亿和装饰1”投稿昨日答案揭晓 ↓↓↓锄禾日当午,汗滴禾下土。 谁知盘中餐,粒粒皆辛苦。快来帮内涵君点击屏幕最下方广告!只需点一下,不需要下载也不需要关注~
推荐阅读 ^o^
??看完不许笑,群发一下,给大家减减压!
欧洲杯撕名牌大赛!
??奶奶和姥姥的区别,很讽刺但很现实!
?一首《这一生有你就足够》,听醉了
猜你喜欢 ^_^
24小时热门文章

我要回帖

 

随机推荐