There's a lot of tutorials for building web applications with Eclipse
if you do a google search.

http://www.google.com/search?q=web+development+with+eclipse

Nils-H

On Tue, Aug 26, 2008 at 8:40 AM, Narasimha Raju Naidu
<[EMAIL PROTECTED]> wrote:
> thanks for your reply,
>
>                    i downloaded one file yesterday and edited according to
> my requirement. right now itz bulding my application. but there is no
> WEB-INF folder in that. is it must to run my application. still i am not
> able to run my application becoz i dont know where i should writh my
> index.html file, bcoz i never worked on eclipse. please help me regarding
> this.
>
>
>
> On Mon, Aug 25, 2008 at 8:18 PM, dynamicd <[EMAIL PROTECTED]> wrote:
>
>>
>> Heres my sample ..
>>
>> <project name="SOMETHING" basedir="./" default="build">
>>
>>        <property name="projname" value="SOMETHING"/>
>>        <property name="webrootsuffix" value="WebContent/${projname}"/>
>>        <property name="webinfsuffix"
>> value="WebContent/${projname}/WEB-INF"/>
>>        <property name="srcdir" value="${basedir}/src"/>
>>
>>
>>        <property name="libdir" value="${basedir}/${webinfsuffix}/lib"/>
>>        <property name="builddir" value="${basedir}/build/SOMETHING"/>
>>        <property name="classdir"
>> value="${builddir}/${webinfsuffix}/classes"/>
>>    <property name="distdir" value="${basedir}/dist"/>
>>        <property name="binding-file" value="${srcdir}/binding.xml"/>
>>         <property name="nsisdir" value="${basedir}/package/tools/nsis" />
>>        <property name="winjre-file"
>> value="${basedir}/thirdparty/jre/jre-1_5_0_05-windows-i586.zip"/>
>>
>>
>>        <condition property="isWindows">
>>                <os family="windows"/>
>>        </condition>
>>
>>        <condition property="isSolaris">
>>                <os name="SunOS"/>
>>        </condition>
>>
>>        <condition property="isLinux">
>>                <os name="Linux"/>
>>        </condition>
>>
>>        <condition property="isUnix">
>>                <or>
>>                        <os name="SunOS"/>
>>                        <os name="Linux"/>
>>                </or>
>>        </condition>
>>
>>
>>        <!-- Check timestamp on files -->
>>        <target name="prepare">
>>                <tstamp/>
>>        </target>
>>
>> <target name="clean" description="Prepare for clean build">
>>                <delete dir="${basedir}/build"/>
>>                <delete dir="${distdir}"/>
>>                <mkdir  dir="${basedir}/build"/>
>>                <mkdir  dir="${distdir}"/>
>>        </target>
>>
>> <target name="resources">
>>        <copy todir="${classdir}" >
>>            <fileset dir="${srcdir}">
>>                                <patternset>
>>                                        <include name="**/*.xml"/>
>>                                        <include name="**/*.conf"/>
>>                                        <include name="**/*.properties"/>
>>                                </patternset>
>>            </fileset>
>>        </copy>
>>    </target>
>>
>> <target name="compile">
>>                <mkdir dir="${classdir}"/>
>>        <javac srcdir="${srcdir}" destdir="${classdir}" debug="true"
>> deprecation="on">
>>    <classpath>
>>   <pathelement location="${classdir}"/>
>>      <fileset dir="${basedir}/lib">
>>        <include name="**/*.jar"/>
>>      </fileset>
>>           <fileset dir="${libdir}">
>>        <include name="**/*.jar"/>
>>      </fileset>
>>   </classpath>
>>
>>        </javac>
>>
>>    </target>
>>
>>  <target name="dist" description="Create binary distribution"
>> depends="bind,resources">
>>                <mkdir dir="${distdir}"/>
>>        <jar
>>                jarfile="${builddir}/${webinfsuffix}/lib/${projname}.jar"
>>                basedir="${classdir}"
>>                includes="**/*.class,**/*.hbm.xml"
>>                excludes="*.properties,*.xml"
>>                manifest="${srcdir}/META-INF/MANIFEST.MF"/>
>>          <!--  <delete dir="${classdir}/com"/> -->
>>                <war
>>                        warfile="${distdir}/${projname}.war"
>>                        webxml="${builddir}/${webinfsuffix}/web.xml"
>>                        manifest="${srcdir}/META-INF/MANIFEST.MF">
>>                                <fileset dir="${builddir}/${webrootsuffix}"
>> includes="index.jsp" />
>>                                <!-- <zipfileset
>> dir="${builddir}/${webrootsuffix}/images"
>> prefix="images"/>
>>                                <zipfileset
>> dir="${builddir}/${webrootsuffix}/js" prefix="js"/>
>>                                <zipfileset
>> dir="${builddir}/${webrootsuffix}/stylesheets"
>> prefix="stylestyles"/> -->
>>                                 <zipfileset
>> dir="${builddir}/WebContent/SOMETHING" prefix="SOMETHING"
>> />
>>                                <zipfileset
>> dir="${builddir}/${webinfsuffix}" prefix="WEB-INF"
>>                                        includes="*.tld,*.xml"
>>                                        excludes="*.java"/>
>>                                <classes dir="${classdir}"/>
>>                                <lib dir="${builddir}/${webinfsuffix}/lib"/>
>>                </war>
>>    </target>
>>
>> <target name="build" depends="build.windows, build.unix">
>>                <mkdir  dir="${builddir}/log"/>
>>                <copy todir="${builddir}/WebContent">
>>                        <fileset dir="${basedir}/WebContent"/>
>>                </copy>
>>                <antcall target="dist"/>
>>        </target>
>> </project>
>> You will have to write the build.windows and unix. I am still working on
>> this.
>>
>>
>>
>> safewraju wrote:
>> >
>> > hi to all,
>> >
>> >          i am developing a struts web application on eclipse. in order to
>> > run struts application build.xml is required. can any one help me how to
>> > develop build.xml on eclipse and how to run a struts application on
>> > eclipse.
>> > waiting for your reply.
>> >
>> >
>> >
>> >
>> >
>> > --
>> > Regards,
>> > Narasimha Raju.Naidu
>> >
>> > Hyderabad.
>> >
>> >
>> > uni...
>> >
>> >
>>
>> --
>> View this message in context:
>> http://www.nabble.com/help-in-build.xml-tp19142242p19145277.html
>> Sent from the Struts - User mailing list archive at Nabble.com.
>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: [EMAIL PROTECTED]
>> For additional commands, e-mail: [EMAIL PROTECTED]
>>
>>
>
>
> --
> Regards,
> Narasimha Raju.Naidu
>
>
>
> uni...
>

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to