| | |
Need Help for Foxpro Migration and Java Struts
Please support our Java advertiser: Programming Forums - DaniWeb Sister Site
![]() |
•
•
Join Date: Apr 2007
Posts: 24
Reputation:
Solved Threads: 0
Hai,
I need to read the Foxpro(dbf) file, and execute that file in MSSQL through Java code. That means Migrate the Foxpro dump file into MSSQL.
Also i am using the Struts Tags for create new application. But the Tag was not working. I am using the following code for Struts Tag.
and the WEB.XML file is...
If anybody know, how to solve the above problems, kindly post me.
Thanks
Tamilvanan
I need to read the Foxpro(dbf) file, and execute that file in MSSQL through Java code. That means Migrate the Foxpro dump file into MSSQL.
Also i am using the Struts Tags for create new application. But the Tag was not working. I am using the following code for Struts Tag.
•
•
•
•
<%@ taglib uri="/tags/struts-bean" prefix="bean" %>
<%@ taglib uri="/tags/struts-html" prefix="html" %>
<html:html locale="true">
<head>
<title><bean:message key="welcome.title"/></title>
<html:base/>
</head>
<body bgcolor="white">
<html:form action="/Address">
<html:errors/>
<table>
<tr>
<td align="center" colspan="2">
<font size="4">Please Enter the Following Details</font>
</tr>
<tr>
<td align="right">
Name
</td>
<td align="left">
<html:text property="name" size="30" maxlength="30"/>
</td>
</tr>
<tr>
<td align="right">
Address
</td>
td align="left">
<html:text property="address" size="30" maxlength="30"/>
</td>
</tr>
<tr>
<td align="right">
E-mail address
</td>
<td align="left">
<html:text property="emailAddress" size="30" maxlength="30"/>
</td>
</tr>
<tr>
<td align="right">
<html:submit>Save</html:submit>
</td>
<td align="left">
<html:cancel>Cancel</html:cancel>
</td>
</tr>
</table>
</html:form>
</body>
</html:html>
and the WEB.XML file is...
•
•
•
•
<?xml version="1.0" encoding="ISO-8859-1"?>
•
•
•
•
<!DOCTYPE web-app PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 2.2//EN"
"http://java.sun.com/j2ee/dtds/web-app_2_2.dtd">
<web-app>
<!-- Standard Action Servlet Configuration (with debugging) -->
<session-config>
<session-timeout>180</session-timeout>
</session-config>
<servlet>
<servlet-name>action</servlet-name>
<servlet-class>org.apache.struts.action.ActionServlet</servlet-class>
<init-param>
<param-name>config</param-name>
<param-value>/WEB-INF/struts-config.xml</param-value>
</init-param>
<init-param>
<param-name>application</param-name>
<param-value>ApplicationResources</param-value>
</init-param>
<load-on-startup>1</load-on-startup>
<init-param>
<param-name>debug</param-name>
<param-value>2</param-value>
</init-param>
<init-param>
<param-name>detail</param-name>
<param-value>2</param-value>
</init-param>
<load-on-startup>2</load-on-startup>
</servlet>
<!-- Standard Action Servlet Mapping -->
<servlet-mapping>
<servlet-name>action</servlet-name>
<url-pattern>*.do</url-pattern>
</servlet-mapping>
<!-- The Usual Welcome File List -->
<welcome-file-list>
<welcome-file>index.jsp</welcome-file>
</welcome-file-list>
<!-- Struts Tag Library Descriptors -->
<taglib>
<taglib-uri>/tags/struts-bean</taglib-uri>
<taglib-location>/WEB-INF/struts-bean.tld</taglib-location>
</taglib>
<taglib>
<taglib-uri>/tags/struts-html</taglib-uri>
<taglib-location>/WEB-INF/struts-html.tld</taglib-location>
</taglib>
<taglib>
<taglib-uri>/tags/struts-logic</taglib-uri>
<taglib-location>/WEB-INF/struts-logic.tld</taglib-location>
</taglib>
<taglib>
<taglib-uri>/tags/struts-nested</taglib-uri>
<taglib-location>/WEB-INF/struts-nested.tld</taglib-location>
</taglib>
<taglib>
<taglib-uri>/tags/struts-tiles</taglib-uri>
<taglib-location>/WEB-INF/struts-tiles.tld</taglib-location>
</taglib>
</web-app>
Thanks
Tamilvanan
Last edited by ttamilvanan81; May 14th, 2007 at 9:00 am.
![]() |
Similar Threads
- struts tutorials (Java)
- Generate Report as PDF and Excel file (Java)
- About <error-page> tag in struts (JSP)
- Java Developer Wanted (Software Development Job Offers)
- PHP Programmer Wanted (Web Development Job Offers)
- required technical guidence for Struts and XML (Java)
Other Threads in the Java Forum
- Previous Thread: get enter character in j2me
- Next Thread: Tracing through a recursion program.
| Thread Tools | Search this Thread |
Tag cloud for Java
affinetransform android api apple applet application arc arguments array arrays automation binary bluetooth businessintelligence chat class classes client code component database desktop draw ebook eclipse equation error event exception fractal game givemetehcodez graphics gui html ide image input integer intellij intersect j2me java javaexcel javaprojects jmf jni jpanel julia linked linux list loop loops mac main map method methods mobile netbeans newbie number online open-source oracle parameter print problem program programming project properties recursion reference replaysolutions rotatetext scanner screen scrollbar server set size sms socket sort sql string superclass swing template test threads time title tree tutorial-sample windows working xstream





