JWorld@TW the best professional Java site in Taiwan
      註冊 | 登入 | 全文檢索 | 排行榜  

» JWorld@TW » Java 新手區  

按列印兼容模式列印這個話題 列印話題    把這個話題寄給朋友 寄給朋友    訂閱主題
reply to postflat modego to previous topicgo to next topic
本主題所含的標籤
作者 servlet HTTP Status 500 如何解決
as0955344054





發文: 107
積分: 0
於 2013-10-23 20:33 user profilesend a private message to userreply to postreply to postsearch all posts byselect and copy to clipboard. 
ie only, sorry for netscape users:-)add this post to my favorite list
我想請問一下以下圖片錯誤的問題?? 怎麼修正
<servlet>
<servlet-name>testhttp</servlet-name>>
<servlet-class>bio.operon.servlet.testhttp</servlet-class>
</servlet>
<servlet-mapping>
<servlet-name>testhttp</servlet-name>
<url-pattern>/testhttp.do</url-pattern>
</servlet-mapping>

這是我的XML設定

http://www.javaworld.com.tw/jute/gallery/Y/X/YXMwOTU1MzQ0MDU0/1382530923987.png

testhttp檔案路徑在
E:\Apache Software Foundation\Tomcat 8.0\webapps\PPO\WEB-INF\classes\bio\operon\servlet\testhttp.class

public class testhttp extends HttpServlet{
public testhttp() {
}

protected void doPost(HttpServletRequest req, HttpServletResponse resp)
throws ServletException, IOException {
String url ="/PPO/related_tool.jsp";
ServletContext sc = getServletContext();
HttpSession session = req.getSession();
int testint = 100;
session.setAttribute("testint", testint);
RequestDispatcher rd = sc.getRequestDispatcher(url);
rd.forward(req, resp);
}

protected void doGet(HttpServletRequest req, HttpServletResponse resp)
throws ServletException, IOException {

doPost(req,resp);
}

}

另外附上JAVA程式碼


as0955344054 edited on 2013-10-23 23:26
reply to postreply to post
話題樹型展開
人氣 標題 作者 字數 發文時間
1803 servlet HTTP Status 500 如何解決 as0955344054 1175 2013-10-23 20:33
1666 Re:servlet HTTP Status 500 如何解決 chuanchu 1453 2013-10-23 21:19
1668 Re:servlet HTTP Status 500 如何解決 as0955344054 48 2013-10-23 22:41
1636 Re:servlet HTTP Status 500 如何解決 chuanchu 8 2013-10-23 22:44
1682 Re:servlet HTTP Status 500 如何解決 as0955344054 81 2013-10-23 23:37
1648 Re:servlet HTTP Status 500 如何解決 fsz570 178 2013-10-24 09:33
1628 Re:servlet HTTP Status 500 如何解決 as0955344054 8 2013-10-24 13:05
» JWorld@TW »  Java 新手區

reply to postflat modego to previous topicgo to next topic
  已讀文章
  新的文章
  被刪除的文章
Jump to the top of page

JWorld@TW 本站商標資訊

Powered by Powerful JuteForum® Version Jute 1.5.8