Hi all,
I have followed a tutorial(struts2,spring and hibernate integration)(set of code snippets) on a website and tried to develop below example according to my needs but I am not able to see appropriated details in view(
JSP).
Even after referring to original resource and many other resources I am not able to figure out the issue.
I have copied/attached code snippets and screen-shot of view(JSP) below :
Commentor.java(Hibernate Entity Class)
CommentorAction.java(Struts Action Class)
CommentorBoImpl(Service class implementing interface CommentorBo)
CommentorDAOImpl(DAO class implementing CommentorDAO interface)
Commentor.hbm.xml(Hibernate mapping file)
commentor.jsp(Struts view page(same page is being returned on either adding or listing the commentors))
attached below(first screen-shot) is screen-shot when I am trying to access the application first time(without adding a commentor).
second screen-shot is of page which used to appear after you have entered details and hit submit button.It can be seen that action url has been changed(from
listCommentor.action to
addCommentor.action).
But I am not able to see the list of commentors which are already been added.
I can see that arraylist is not empty from logs and can confirm that details are being inserted in database properly but not able to display over JSP(commentor.jsp)
Could you please give me an idea..
Also please let me know in case I would have to add other config files(struts,spring) to problem posted.