473,473 Members | 2,163 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

symbol not found

1 New Member
hello m getting errors called symbol not found

GetAction:java12:cannot find symbol
symbol: class SampleForm
location:class GetAction
SampleForm sampleForm= (SampleForm)form;
^

GetAction:java12:cannot find symbol
symbol: class SampleForm
location:class GetAction
SampleForm sampleForm= (SampleForm)form;
^

GetAction:java14:cannot find symbol
symbol: variable SampleDAO
location:class GetAction
List listone=(List)SampleDAO.getData();
^



in the below code,

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import org.apache.struts.action.ActionForm;
import org.apache.struts.action.ActionForward;
import org.apache.struts.action.ActionMapping;
import java.util.*;
import org.apache.struts.action.*;
public class GetAction extends Action{
public ActionForward execute(ActionMapping mapping,ActionForm form,HttpServletRequest request,
HttpServletResponse response)throws Exception{
SampleForm sampleForm= (SampleForm)form;
try{
List listone=(List)SampleDAO.getData();
sampleForm.set("listone", listone);
}
catch(Exception exce){
throw exce;
}
return mapping.findForward("inputthree");
}

}
Aug 14 '07 #1
2 2096
kestrel
1,071 Recognized Expert Top Contributor
Welcome to The Scripts!
Im going to move this to the Java forum. Have nice day!

--
Kestrel
Aug 14 '07 #2
JosAH
11,448 Recognized Expert MVP
hello m getting errors called symbol not found

GetAction:java12:cannot find symbol
symbol: class SampleForm
location:class GetAction
SampleForm sampleForm= (SampleForm)form;
^

GetAction:java12:cannot find symbol
symbol: class SampleForm
location:class GetAction
SampleForm sampleForm= (SampleForm)form;
^

GetAction:java14:cannot find symbol
symbol: variable SampleDAO
location:class GetAction
List listone=(List)SampleDAO.getData();
^



in the below code,

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import org.apache.struts.action.ActionForm;
import org.apache.struts.action.ActionForward;
import org.apache.struts.action.ActionMapping;
import java.util.*;
import org.apache.struts.action.*;
public class GetAction extends Action{
public ActionForward execute(ActionMapping mapping,ActionForm form,HttpServletRequest request,
HttpServletResponse response)throws Exception{
SampleForm sampleForm= (SampleForm)form;
try{
List listone=(List)SampleDAO.getData();
sampleForm.set("listone", listone);
}
catch(Exception exce){
throw exce;
}
return mapping.findForward("inputthree");
}

}
Well, I don't see any definition of class SampleForm either, not an import that
tells the compiler where to find the compiled form of it.

kind regards,

Jos
Aug 14 '07 #3

Sign in to post your reply or Sign up for a free account.

Similar topics

4
by: Justin Carter | last post by:
Hi. I'm using VB6 and trying to read in a simple text file. I'm using a statement similar to the following, which generally works fine. Input #Item, variable1, variable2, variable3, etc. ...
0
by: Richard | last post by:
I am setting up HS in 8i, when I go to $ORACLE_HOME/bin and do a ldd hsodbc i get the below error message, I have done a relink to recreate the hsodbc executable but still no luck. I do have a tar...
3
by: Ney André de Mello Zunino | last post by:
Hello. I would appreciate if somebody could assist me with an error message I am getting from the Microsoft WinDbg 6.3 debugging tool. I am not familiar with it, since I have just downloaded it....
0
by: David Jobin | last post by:
Hi all. I'm desperate :) I know my request is unusual but I can't find anything out there to help me. I'm building an application with that queries the web service provided by Microsoft...
0
by: geoffblanduk_nospam | last post by:
I'm running Xalan-C++ 1.10 under Solaris. I'm using the binary iamge downloaded from the Xalan-C website. I've built my library using Forte 6.2. This builds into a library that is then called by...
3
by: Olav | last post by:
Hi all, I can not install CF 2.0 SP 1 on an Symbol PPT8800 running WinCE 4.2. The Install-Log say's cgacutil.exe failed with exit-code 80000004 and I get a messagebox indicating a support-Info...
2
by: f rom | last post by:
----- Forwarded Message ---- From: Josiah Carlson <jcarlson@uci.edu> To: f rom <etaoinbe@yahoo.com>; wxpython-users@lists.wxwidgets.org Sent: Monday, December 4, 2006 10:03:28 PM Subject: Re: ...
1
by: Justin Johnson | last post by:
Hello, I'm trying to build Python 2.5.0 on AIX 5.3 using IBM's compiler (VisualAge C++ Professional / C for AIX Compiler, Version 6). I run configure and make, but makes fails with undefined...
5
by: kp | last post by:
Hi, I am compiling on an AIX 5.1 box and my test machine is AIX 5.3. I run the foll. steps for compiling my test binary "test" /usr/vacpp/bin/xlC test.c -c -o test.o -I/home/jag/progs/include...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
1
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
1
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.