Question about Struts and ActionForm

Hi,

I've a LoginForm class that extends ActionForm and the login.jsp page accepts 2 fields - "username" and "password" and there are corresponding setters and getters in LoginForm.java. As part of moving this to container managed security (using login modules), I want to change the field names to j_username and j_security. I made the change to the login.jsp page and also to the getters and setters (made them getJ_username, getJ_password) but I keep getting the "getter is not defined" struts related error. any thoughts?

[538 byte] By [kpalaniaa] at [2007-11-27 9:17:36]
# 1
You would need to follow naming convention. It should beuserName, I never tried with underscore, try j_userName (caps N). I don't think it will work.
skp71a at 2007-7-12 22:08:12 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...