Thanks a lot Dave for your really helpful suggestions,

I was doing something rubbish by retrieving the OnlineID more than once, now
I have rectified my code as ...

public int getOnlineID() {
                return OnlineID;
        }
        
        public void setOnlineID(int OnlineID) {
                this.OnlineID = OnlineID;
                }

and declared OnlineID in the starting as : private int OnlineID;

and removed the extra Variable from the Code and the Code is working.

and yes, I am making Email as Unique ID at DB level as well as before user
enters the form he will be validated that he has not already applied before.

>> package net.Candidate.application.action; 

>Again, I would strongly urge you to follow normal Java naming conventions 

This is the directory structure where where my Action class is sitting, is
that something wrong here....

and shall I make another class file where DB transactions should be
executed?

--
View this message in context: 
http://struts.1045723.n5.nabble.com/How-to-display-data-from-database-to-JSP-Page-in-Struts2-tp4566721p4568007.html
Sent from the Struts - User mailing list archive at Nabble.com.

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
For additional commands, e-mail: user-h...@struts.apache.org

Reply via email to