Hi all, I need your help :( Like my subject, I use Struts + iBatis + DAO.
I get error message "document.all.cateInfoFrame is null of not an object" but ... my action is done ??? my code line is: Main.jsp: contains 2 IFrames: 1 called iframe1 (IFrame1.jsp) and 2 called cateInfoFrame (IFrame2.jsp) IFrame1.jsp: name="iframe1" contains code line below: <a target="cateInfoFrame" class="NodeName" style="text-decoration:none" href="category/viewinfo.do?cateID=1">show category information</a> IFrame2.jsp: name="cateInfoFrame" is used to show result of action which has path = "category/viewinfo" When I open main.jsp, I will see two iframes, when I click on the link "show category information" in iframe name "iframe1", struts-config will catch the action which has the path attribute "category/viewinfo", and this will call method name (which I specify via parameter attribute) of bean (which i specify via name attribute), after that, the info of category will show in "cateInfoFrame". <form-beans> <form-bean name="categoryBean" type="com.presentation.CategoryBean"/> </form-beans> <action path="/category/viewinfo" name="categoryBean" parameter="categoryInfoByID" validate="false" type="com.ibatis.struts.BeanAction"> <forward name="error" path="/login/login.jsp" /> <forward name="success" path="/category/categoryinfo.jsp" /> </action> everything occurs like I want, but IE give me one error message after I had clicked the link "show category information", that is "document.all.cateInfoFrame is null of not an object", I don't know what happens, because, as you see, if there's an error, my action will not completed, it means category information will not showed in "cateInfoFrame". When I change other actions (which don't contains name attribute and parameter attribute), like above: <action path="/admin/viewaccountinfo" name="" scope="request" type="com.ibatis.struts.BeanAction"> <forward name="error" path="/login/login.jsp" /> <forward name="success" path="/admin/adminaccountinfo.jsp" /> </action> there's no error message ??? So, I think that there's something wrong with my CategoryBean, but in it, my public method categoryInfoByID just do one thing is return "success", IE continues to give me the same error like above "document.all.cateInfoFrame is null or not an object" plz help me solve my problem :(