I am trying to add POJO onto my existing doPost servlet cos I think this is the acceptable standard and want to try things out.
So, what I did was to emulate after a POJO sample I found on the web.
My jsp :
And the<td>Full Name</td> <td><input type="text" id="FullName" name="FullName"></td>
n I also created a MembersBean
And finally at my doPost Servlet I add in the POJO portion but Netbean actually shows an error. So, I'm not sure what went wrong.public class MembersBean implements Serializable{ private String fullName; public void setFullName(String fullName) { this.fullName = fullName; }
Here's what I did:
Did I do something wrong?String strName = request.getParameter("FullName"); MembersBean member = new MembersBean(); member.setstrName(FullName); (and this line Netbean flash an error :(((