Ranjit Nair

Greenhorn
+ Follow
since Jan 14, 2005
Cows and Likes
Cows
Total received
0
In last 30 days
0
Total given
0
Likes
Total received
0
Received in last 30 days
0
Total given
0
Given in last 30 days
0
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by Ranjit Nair

If have following WEB-INF Structure

WEB-INF
CLASSES --> userAccount.class
LIB
web.xml
music.jsp
userpage.jsp

Code for userpage:
<%@ page language = "java" %>
<jsp:useBean id="UP" scope="application" class="userAccount" />
<jsp:setProperty name="UP" property="sAccountID" param="sAccountID" />
<jsp:setProperty name="UP" property="sPassword" param="sPassword" />

<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">
<title>New Page 1</title>
</head>

<body>

<%
String sAccountID = UP.getsAccountID();
String sPassword = UP.getsPassword();
String aAccountID = UP.getaAccountID();
String aPassword = UP.getaPassword();
boolean validateUser = UP.ValidateUserAccount();
if(validateUser == true)
{
out.println("hello user");
}
else
{
out.println("Register yourself");
}
boolean validateAdmin = UP.ValidateAdminAccount();
if(validateAdmin == true)
{
out.println("hello Admin");
}
else
{
out.println("You are not authorised for this service");
}
%>

</body>

</html>

I have successfuly deployed the apllication and also the verifier did give any failed results.

But when i run it, gives me following error:
org.apache.jasper.JasperException: Unable to compile class for JSPNote: sun.tools.javac.Main has been deprecated.


An error occurred at line: 2 in the jsp file: /userpage.jsp

Generated servlet error:
C:\j2sdkee1.3.1\repository\798RPTC0\web\LoginContextRoot\userpage$jsp.java:60: Class org.apache.jsp.userAccount not found.
userAccount UP = null;
^


An error occurred at line: 2 in the jsp file: /userpage.jsp

Generated servlet error:
C:\j2sdkee1.3.1\repository\798RPTC0\web\LoginContextRoot\userpage$jsp.java:63: Class org.apache.jsp.userAccount not found.
UP= (userAccount)
^


An error occurred at line: 2 in the jsp file: /userpage.jsp

Generated servlet error:
C:\j2sdkee1.3.1\repository\798RPTC0\web\LoginContextRoot\userpage$jsp.java:68: Class org.apache.jsp.userAccount not found.
UP = (userAccount) java.beans.Beans.instantiate(this.getClass().getClassLoader(), "userAccount");
^
3 errors, 1 warning
hi
I'm using jsdk1.4. The code for my remote interface is giving me this error. the code is as follows:

import javax.ejb.EJBObject;
import javax.rmi.RemoteException;

public interface song extends EJBObject
{
// Defining the business method
public String getsongID() throws RemoteException;
public String getcategory() throws RemoteException;
public String gettitle() throws RemoteException;
public String getartist() throws RemoteException;

}
The Error that it throws is:

song.java:3: package javax.ejb does not exist
import javax.ejb.EJBObject;
^
song.java:4: cannot resolve symbol
symbol : class RemoteException
location: package rmi
import javax.rmi.RemoteException;
^
song.java:6: cannot resolve symbol
symbol : class EJBObject
location: interface song
public interface song extends EJBObject
^
song.java:9: cannot resolve symbol
symbol : class RemoteException
location: interface song
public String getsongID() throws RemoteException;
^
song.java:10: cannot resolve symbol
symbol : class RemoteException
location: interface song
public String getcategory() throws RemoteException;
^
song.java:11: cannot resolve symbol
symbol : class RemoteException
location: interface song
public String gettitle() throws RemoteException;
^
song.java:12: cannot resolve symbol
symbol : class RemoteException
location: interface song
public String getartist() throws RemoteException;
^
7 errors