When I call the class using ActionListener from my JSF file.. I got this error: Error 500: Can't instantiate class: 'Can't instantiate class: 'com.ex.RegisterController'.'.
I dont know how to clear it..
This is my JSF file(Register.jsp) <f:view> <h:form styleClass="form" id="form1"> <h:commandLink styleClass="selectlink" id="link1" actionListener="#{RegisterController.process}"> <h utputText value="Login"></h utputText> </h:commandLink> </h:form> </f:view>
This is my RegisterController.java file:
public abstract class RegisterController implements ActionListener {
public void process(ActionEvent e)throws AbortProcessingException{ System.out.println("entered"); } }
I have defined the class in the faces-config.xml also..
can you people help me out..
Jessica James
Ranch Hand
Joined: Jan 23, 2007
Posts: 69
posted
0
Hi friends ,
I have rectified this error...
I used abstract class.. So only I got this error..