I have a bean Candidate that I want to pass from a jsp to a servlet.
I have the following code in my JSP:
<jsp:useBean id="Candidate" class="com.logicinfo.beans.Candidate" scope="session" />
<jsp:setProperty name="Candidate" property="*" />
I have a text field called 'name' in my form.
I have the following code in my servlet:
HttpSession session = request.getSession();
candidate = (Candidate) session.getAttribute("Candidate");
Then I try to retrieve a property from my bean and it returns no value.
What am i doing wrong??
Any help is appreciated.
I have the following code in my JSP:
<jsp:useBean id="Candidate" class="com.logicinfo.beans.Candidate" scope="session" />
<jsp:setProperty name="Candidate" property="*" />
I have a text field called 'name' in my form.
I have the following code in my servlet:
HttpSession session = request.getSession();
candidate = (Candidate) session.getAttribute("Candidate");
Then I try to retrieve a property from my bean and it returns no value.
What am i doing wrong??
Any help is appreciated.