I wrote a
Jsp file . In that i used a javabean. I am using weblogic 8.1. This is the code
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
<html>
<head>
<title> Global Auctions - view item, Holder Bean </title>
</head>
<boby>
<h1>View Item Holder Bean </h1>
<jsp:useBean id="item" class="Item" scope="session" >
<jsp:setProperty name="item" property="catId" value="3000" >
<jsp:setProperty name="item" property="desc" value="Mango" >
</jsp:useBean>
<table>
<tr><td>Item number : </td><td><%= item.getCatId() %></td></tr>
<tr><td>Item Desciption : </td><td><%= item.getDesc() %></td></tr>
</table>
</boby>
</html>
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
The above code giving an error
##############################################################
Compilation of 'C:\bea\user_projects\domains\mydomain\.\myserver\.wlnotdelete\extract\myserver__appsdir_myservletExp_dir_myservletExp\jsp_servlet\__item.java' failed:
--------------------------------------------------------------------------------
C:\bea\user_projects\domains\mydomain\.\myserver\.wlnotdelete\extract\myserver__appsdir_myservletExp_dir_myservletExp\jsp_servlet\__item.java:128: cannot resolve symbol
probably occurred due to an error in /item.jsp line 8:
<jsp:useBean id="item" class="Item" scope="session" >
C:\bea\user_projects\domains\mydomain\.\myserver\.wlnotdelete\extract\myserver__appsdir_myservletExp_dir_myservletExp\jsp_servlet\__item.java:129: cannot resolve symbol
probably occurred due to an error in /item.jsp line 8:
<jsp:useBean id="item" class="Item" scope="session" >
C:\bea\user_projects\domains\mydomain\.\myserver\.wlnotdelete\extract\myserver__appsdir_myservletExp_dir_myservletExp\jsp_servlet\__item.java:132: cannot resolve symbol
probably occurred due to an error in /item.jsp line 8:
<jsp:useBean id="item" class="Item" scope="session" >
C:\bea\user_projects\domains\mydomain\.\myserver\.wlnotdelete\extract\myserver__appsdir_myservletExp_dir_myservletExp\jsp_servlet\__item.java:134: cannot resolve symbol
probably occurred due to an error in /item.jsp line 8:
<jsp:useBean id="item" class="Item" scope="session" >
--------------------------------------------------------------------------------
Full compiler error(s):
C:\bea\user_projects\domains\mydomain\.\myserver\.wlnotdelete\extract\myserver__appsdir_myservletExp_dir_myservletExp\jsp_servlet\__item.java:128: cannot resolve symbol
symbol : class Item
location: class jsp_servlet.__item
Item item = null; //[ /item.jsp; Line: 8]
^
C:\bea\user_projects\domains\mydomain\.\myserver\.wlnotdelete\extract\myserver__appsdir_myservletExp_dir_myservletExp\jsp_servlet\__item.java:129: cannot resolve symbol
symbol : class Item
location: class jsp_servlet.__item
item = (Item)session.getAttribute("item"); //[ /item.jsp; Line: 8]
^
C:\bea\user_projects\domains\mydomain\.\myserver\.wlnotdelete\extract\myserver__appsdir_myservletExp_dir_myservletExp\jsp_servlet\__item.java:132: cannot resolve symbol
symbol : class Item
location: class jsp_servlet.__item
item = (Item)session.getAttribute("item"); //[ /item.jsp; Line: 8]
^
C:\bea\user_projects\domains\mydomain\.\myserver\.wlnotdelete\extract\myserver__appsdir_myservletExp_dir_myservletExp\jsp_servlet\__item.java:134: cannot resolve symbol
symbol : class Item
location: class jsp_servlet.__item
item = new Item(); //[ /item.jsp; Line: 8]
^
4 errors
###########################################################
anyone can rectify the problem