Solved

jsp error..

Posted on 2004-04-16
3
271 Views
Last Modified: 2010-04-01
i got a java file called sms.java...
i created a package to store it.. so i now have the folder: com.sms
i use a jsp, refreshSms.jsp to call a function inside sms file
this is the error i encountered
org.apache.jasper.JasperException: Unable to compile class for JSP

An error occurred at line: 15 in the jsp file: /refreshSms.jsp

Generated servlet error:
    [javac] Compiling 1 source file

C:\Program Files\Apache Group\Tomcat 4.1\work\Standalone\localhost\imcsWeb\refreshSms_jsp.java:58: cannot resolve symbol
symbol  : method retrieveSMS ()
location: class com.sms.sms
   s.retrieveSMS();
    ^
1 error
------------------------------------------------------
this is wat i code in the jsp.. i think its the importing part that is causing the problems..
<%@ page import = "java.lang.*"%>
<%@ page import = "java.util.*"%>
<%@ page import = "com.sms.*"%>
<html>

<head>
<meta name="GENERATOR" content="Microsoft FrontPage 5.0">
<meta name="ProgId" content="FrontPage.Editor.Document">
<meta http-equiv="Content-Type" content="text/html; charset=windows-1252">
<meta http-equiv="refresh" content="5" />
<title>SMS Refresh</title>
</head>

<body>

<% sms s = new sms();
   s.retrieveSMS();
 %>
</body>

</html>
---------------------------
pls help..thanks..
0
Comment
Question by:hyaku
  • 2
3 Comments
 
LVL 35

Accepted Solution

by:
TimYates earned 120 total points
ID: 10843045
You sure it's

  retrieveSMS()

in sms.java, and not

  retrieveSms()

or

  retrieveSMS( int someVariable )
0
 

Author Comment

by:hyaku
ID: 10843109
opps..i found out my error..
should be this
receiveSMS() not retrieveSMS()
haha.. thanks for asking me to double check the function..
0
 
LVL 35

Expert Comment

by:TimYates
ID: 10857298
:-)

Good luck!!
0

Featured Post

Live: Real-Time Solutions, Start Here

Receive instant 1:1 support from technology experts, using our real-time conversation and whiteboard interface. Your first 5 minutes are always free.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Binary Differential Replication, What it is, how it works and how it differs from standard delta file replication
Color can increase conversions, create feelings of warmth or even incite people to get behind a cause. If you want your website to really impact site visitors, then it is vital to consider the impact color has on them.
Microsoft Active Directory, the widely used IT infrastructure, is known for its high risk of credential theft. The best way to test your Active Directory’s vulnerabilities to pass-the-ticket, pass-the-hash, privilege escalation, and malware attacks …
This video shows how to use Hyena, from SystemTools Software, to bulk import 100 user accounts from an external text file. View in 1080p for best video quality.

786 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question