Read Excel using Apache POI - Challenges ------------------------------------------------ 1) E xception in thread "main" org.apache.poi.poifs.filesystem.OfficeXmlFileException: The supplied data appears to be in the Office 2007+ XML. You are calling the part of POI that deals with OLE2 Office Documents. You need to call a different part of POI to process this data (eg XSSF instead of HSSF) Add following maven dependency -- Use poi-ooxml from xlsx files while poi for xls <!-- POI : Excel library --> <dependency> <groupId>org.apache.poi</groupId> <artifactId>poi</artifactId> <version>${poi.version}</version> </dependency> <dependency> < groupId>org.apache.poi</groupId> <artifactId>poi-ooxml</artifactId> <version>${poi.version}</version> </dependency 2)Caused by: java.la
No configuration found for the specified action: 'Login.action' in namespace: '/'''. Form action defaulting to 'action' attribute's literal value. Solution: To remove this warning you need to change following... See your struts.xml file what name you have specified... If you are using namespace / and your action name is 'Login' then replace Login.action to Login as given below... <s:form action=" Login.action " method="post" > Use below with namespace 1) <s:form action=" Login " method="post" namespace="/"> Or 2) <s:form action=" /Login " method="post" > Now you will not get this warning.
Comments
Post a Comment