Click here to Skip to main content
15,887,596 members
Home / Discussions / Java
   

Java

 
AnswerRe: Help option in a JAR FILE Pin
Richard MacCutchan30-Dec-14 22:09
mveRichard MacCutchan30-Dec-14 22:09 
GeneralRe: Help option in a JAR FILE Pin
ramina sen30-Dec-14 22:16
ramina sen30-Dec-14 22:16 
GeneralRe: Help option in a JAR FILE Pin
Richard MacCutchan30-Dec-14 22:47
mveRichard MacCutchan30-Dec-14 22:47 
Questionproblem to connect Java EE application to database Pin
Imad_dz29-Dec-14 6:31
Imad_dz29-Dec-14 6:31 
SuggestionRe: problem to connect Java EE application to database Pin
Richard MacCutchan29-Dec-14 23:13
mveRichard MacCutchan29-Dec-14 23:13 
Questionpagination in java swing Pin
bilalshameem25-Dec-14 23:44
bilalshameem25-Dec-14 23:44 
AnswerRe: pagination in java swing Pin
Richard MacCutchan26-Dec-14 1:05
mveRichard MacCutchan26-Dec-14 1:05 
Question[EDIT] CLASS cannot be resolved to a type Pin
AmbiguousName23-Dec-14 8:56
AmbiguousName23-Dec-14 8:56 
Hello. I am trying to write small java bean. The classes for java beans compile successfully. When I try to use them in my .jsp file I get the error
DatabseDAO cannot be resolved to a type // in the browser

Here are declarations for these beans
// DAO class - in file 1
import java.sql.*;
import java.io.*;
import java.util.*;

public class DatabseDAO implements Serializable
{
        /// ........... all the code here
}

// bean class - in file 2
import java.io.*;

public class PersonBean implements Serializable
{
  /// ........... all the code here
}

And here is how I use them in jsp file
<%
    DatabseDAO db2 = new DatabseDAO();

    ArrayList persons_list = db2.GetPersons("SELECT * FROM People");
    PersonBean person_bean = null;

    for (int i=0; i<persons_list.size(); i++)
    {
        person_bean = (PersonBean) persons_list.get(i);
%>

        <tr>
            <td><% =person_bean.getPersonId() %></td>
            <td><% =person_bean.getPersonName() %></td>
            <td><% =person_bean.getPersonAddress() %></td>
        </tr>
<%
    }
%>

The classes (bean and DAO) are not declared in any package. What is wrong here ?

This world is going to explode due to international politics, SOON.

QuestionRe: CLASS cannot be resolved to a type Pin
Richard MacCutchan23-Dec-14 21:38
mveRichard MacCutchan23-Dec-14 21:38 
AnswerRe: [EDIT] CLASS cannot be resolved to a type Pin
alexey_s22-Jan-15 8:15
alexey_s22-Jan-15 8:15 
QuestionGabor Patch Generator Pin
amirsharifzadeh20-Dec-14 22:01
amirsharifzadeh20-Dec-14 22:01 
SuggestionRe: Gabor Patch Generator Pin
Richard MacCutchan20-Dec-14 22:14
mveRichard MacCutchan20-Dec-14 22:14 
QuestionHow to Use Delimiters in my program(Does not work and Crashes) Pin
Kaytlyn Grace Lau20-Dec-14 7:44
Kaytlyn Grace Lau20-Dec-14 7:44 
AnswerRe: How to Use Delimiters in my program(Does not work and Crashes) Pin
Richard MacCutchan20-Dec-14 21:06
mveRichard MacCutchan20-Dec-14 21:06 
AnswerRe: How to Use Delimiters in my program(Does not work and Crashes) Pin
Richard MacCutchan21-Dec-14 4:01
mveRichard MacCutchan21-Dec-14 4:01 
GeneralRe: How to Use Delimiters in my program(Does not work and Crashes)(SOLVED) Pin
Kaytlyn Grace Lau21-Dec-14 9:18
Kaytlyn Grace Lau21-Dec-14 9:18 
GeneralRe: How to Use Delimiters in my program(Does not work and Crashes)(SOLVED) Pin
Richard MacCutchan21-Dec-14 22:44
mveRichard MacCutchan21-Dec-14 22:44 
Question[SOLVED] Does not redirect properly Pin
Django_Untaken14-Dec-14 20:52
Django_Untaken14-Dec-14 20:52 
QuestionRe: Does not redirect properly Pin
Richard MacCutchan14-Dec-14 22:19
mveRichard MacCutchan14-Dec-14 22:19 
QuestionLogin Details Authentication Pin
JayantiSh13-Dec-14 12:08
JayantiSh13-Dec-14 12:08 
AnswerRe: Login Details Authentication Pin
Richard MacCutchan13-Dec-14 21:33
mveRichard MacCutchan13-Dec-14 21:33 
GeneralRe: Login Details Authentication Pin
JayantiSh16-Dec-14 3:27
JayantiSh16-Dec-14 3:27 
GeneralRe: Login Details Authentication Pin
TorstenH.17-Dec-14 2:19
TorstenH.17-Dec-14 2:19 
Generaljava Pin
Member 109275319-Dec-14 1:48
Member 109275319-Dec-14 1:48 
GeneralRe: java Pin
Richard MacCutchan9-Dec-14 6:11
mveRichard MacCutchan9-Dec-14 6:11 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.