Click here to Skip to main content
15,885,278 members
Home / Discussions / Java
   

Java

 
Questioncode for extracting result to applet Pin
hari@251-Apr-15 20:38
hari@251-Apr-15 20:38 
AnswerRe: code for extracting result to applet Pin
Richard MacCutchan1-Apr-15 21:16
mveRichard MacCutchan1-Apr-15 21:16 
Questionregarding applets Pin
hari@251-Apr-15 20:36
hari@251-Apr-15 20:36 
AnswerRe: regarding applets Pin
Richard MacCutchan1-Apr-15 21:16
mveRichard MacCutchan1-Apr-15 21:16 
Questionjava tables Pin
Member 1068310231-Mar-15 12:57
Member 1068310231-Mar-15 12:57 
AnswerRe: java tables Pin
Sascha Lefèvre31-Mar-15 17:08
professionalSascha Lefèvre31-Mar-15 17:08 
AnswerRe: java tables Pin
Richard MacCutchan31-Mar-15 21:36
mveRichard MacCutchan31-Mar-15 21:36 
QuestionSpring MVC Pin
Member 1157091231-Mar-15 9:04
Member 1157091231-Mar-15 9:04 
I am working in spring MVC project where I need to use jsp form to connect to database. we are using signupservice.java to map the form values to database. I have attached the coding here. I have set the values for firstName and lastName but I want the signupservice.java take the form value instead of assigned value.I tried to change the coding but it is not working.Can anyone suggest me Where I went Wrong????
Java
public void registerStudent(StudentVO studentVO){      

        System.out.println("*******Student userName*******"+studentVO.getUserName());   
        studentVO.setFirstName("firstName");
        studentVO.setLastName("lastName");
        studentVO.setValidationID("VID");       
        studentVO.setBirthDate(new Date());
        studentVO.setGender('M');
        studentVO.setGradeLevel(2);
        studentVO.setRewardPoints("rewardPoints");
        //studentVO.setAge(12);
        AddressVO addressVO = new AddressVO();
        addressVO.setStreetAddress("streetAddress");
        addressVO.setCity("city");
        addressVO.setState("st");
        addressVO.setEmail("email");
        addressVO.setZipCode("zip");    
        studentVO.setAddressVO(addressVO);

        Student student = new Student();
        student.setUserName(studentVO.getUserAccountVO().getUserName());
        student.setFirstName(studentVO.getFirstName());
        student.setLastName(studentVO.getLastName());
        student.setValidationID(studentVO.getValidationID());
        student.setDateCreated(new Date());
        student.setBirthDate(studentVO.getBirthDate());
        student.setGender(studentVO.getGender());
        student.setGradeLevel(studentVO.getGradeLevel());
        student.setRewardPoints(studentVO.getRewardPoints());
        //student.setAge(studentVO.getAge());
        Address address = new Address();
        address.setStreetAddress(studentVO.getAddressVO().getStreetAddress());
        address.setCity(studentVO.getAddressVO().getCity());
        address.setState(studentVO.getAddressVO().getState());
        address.setEmail(studentVO.getAddressVO().getEmail());
        address.setZipCode(studentVO.getAddressVO().getZipCode());
        address.setDateCreated(new Date());
        student.setAddress(address);
        UserAccount userAccount = new UserAccount();
        userAccount.setUserName(studentVO.getUserAccountVO().getUserName());
        userAccount.setUserRole(studentVO.getUserAccountVO().getUserRole());
        userAccount.setPassword(studentVO.getUserAccountVO().getPassword());
        userAccount.setDateCreated(new Date());
        student.setUserAccount(userAccount);
        this.studentDAO.registerStudent(student);
    }

}">


modified 31-Mar-15 16:58pm.

QuestionI wrote a program for creating a table using JDBC concept ,i compiled and runned the program worked properly but when i open the sql command line to check whether the table is created but the table is not created please help me Pin
Murali Krishna Tunga31-Mar-15 4:23
Murali Krishna Tunga31-Mar-15 4:23 
AnswerRe: I wrote a program for creating a table using JDBC ... Pin
Richard MacCutchan31-Mar-15 6:16
mveRichard MacCutchan31-Mar-15 6:16 
Questiondocument Pin
Member 1156205127-Mar-15 20:34
Member 1156205127-Mar-15 20:34 
AnswerRe: document Pin
Richard MacCutchan27-Mar-15 22:15
mveRichard MacCutchan27-Mar-15 22:15 
QuestionNeed help making a small auction app for tomorrow. Willing to pay for help. Pin
Member 1155773226-Mar-15 4:25
Member 1155773226-Mar-15 4:25 
QuestionError : Cannot make a static reference to the non-static method getQuery() from the type Resource Pin
Member 1153828226-Mar-15 1:21
Member 1153828226-Mar-15 1:21 
AnswerRe: Error : Cannot make a static reference to the non-static method getQuery() from the type Resource Pin
Richard MacCutchan26-Mar-15 1:29
mveRichard MacCutchan26-Mar-15 1:29 
QuestionHow to call the method that have @Post annotations Pin
Member 1153828226-Mar-15 0:15
Member 1153828226-Mar-15 0:15 
QuestionHow to implement Rest API? Pin
Member 1153828225-Mar-15 23:51
Member 1153828225-Mar-15 23:51 
AnswerRe: How to implement Rest API? Pin
jainendra pal30-Mar-15 8:43
jainendra pal30-Mar-15 8:43 
Questionhow to create a chart from a database in android eclipse .. please help me :D Pin
Pungkas Soebarkah24-Mar-15 23:12
Pungkas Soebarkah24-Mar-15 23:12 
AnswerRe: how to create a chart from a database in android eclipse .. please help me :D Pin
Richard MacCutchan25-Mar-15 2:02
mveRichard MacCutchan25-Mar-15 2:02 
GeneralRe: how to create a chart from a database in android eclipse .. please help me :D Pin
Pungkas Soebarkah25-Mar-15 16:50
Pungkas Soebarkah25-Mar-15 16:50 
AnswerRe: how to create a chart from a database in android eclipse .. please help me :D Pin
jschell25-Mar-15 11:38
jschell25-Mar-15 11:38 
SuggestionRe: how to create a chart from a database in android eclipse .. please help me :D Pin
Richard Deeming26-Mar-15 3:00
mveRichard Deeming26-Mar-15 3:00 
QuestionProblem writing metadata to TIF file on Linux only Pin
wf-doug-6823-Mar-15 9:13
wf-doug-6823-Mar-15 9:13 
SuggestionRe: Problem writing metadata to TIF file on Linux only Pin
Richard MacCutchan23-Mar-15 22:29
mveRichard MacCutchan23-Mar-15 22:29 

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.