帮忙找个错误。急!
报错如下:
Servlet.service() for servlet action threw exception
javax.servlet.jsp.JspException: Cannot find bean source in any scope
我jsp页面代码只要加上 <html:```> tag就会报上面的错误.
jsp code:
<%@ page language= "java " pageEncoding= "UTF-8 "%>
<%@ taglib uri= "http://jakarta.apache.org/struts/tags-bean "
prefix= "bean "%>
<%@ taglib uri= "http://jakarta.apache.org/struts/tags-html "
prefix= "html "%>
<%@ taglib uri= "http://jakarta.apache.org/struts/tags-logic "
prefix= "logic "%>
<%@ taglib uri= "/WEB-INF/c.tld " prefix= "c "%>
<%@ taglib uri= "http://struts.apache.org/tags-tiles " prefix= "tiles "%>
<%@ page contentType= "text/html; charset=gb2312 " language= "java "
import= "java.sql.* "
errorPage= " "%>
<!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 ">
<!-- DW6 -->
<head>
<!-- Copyright 2005 Macromedia, Inc. All rights reserved. -->
<title>
Home Page
</title>
<meta http-equiv= "Content-Type " content= "text/html; charset=gb2312 " />
<link rel= "stylesheet " href= "css/mm_spa.css " type= "text/css " />
<style type= "text/css ">
<!--
body {
background-color: #330099;
}
.STYLE2 {color: #FFFFFF}
-->
</style>
</head>
<body background= " img/mm_bg_red.gif ">
<img src= " mm_spacer.gif " alt= " " width= "50 " height= "1 " border= "0 " />
<table border= "0 " cellspacing= "0 " cellpadding= "0 ">
<tr bgcolor= "#220103 ">
<td rowspan= "2 " colspan= "2 " nowrap= "nowrap ">
<img src= " img/mm_spa_photo1.jpg " alt= "Header image " width= "215 "
height= "108 " border= "0 " />
</td>
<td colspan= "2 " height= "55 " nowrap= "nowrap " id= "logo " valign= "bottom ">
Quality is the only way to survive and prosper
</td>
<td width= "283 " rowspan= "2 ">
<img src= " img/achievo_logo.gif " alt= "header image 2 " width= "180 "
height= "84 " border= "0 " />
</td>
<td width= "7 " rowspan= "2 "> </td>
</tr>
<tr bgcolor= "#220103 ">
<td height= "54 " colspan= "2 " nowrap= "nowrap " id= "tagline " valign= "top ">