struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Nils-Helge Garli Hegvik" <nil...@gmail.com>
Subject Re: Building First strut
Date Fri, 25 Apr 2008 18:20:18 GMT
Well, if you're going to use Maven, you need a pom.xml file in your
project. The pom file is project specific, so if you don't have it,
you need to create it. If you use the maven archetype, as described in
the tutorial at http://struts.apache.org/2.x/docs/ready-set-go.html it
will be created for you, and the project structure will be set up. You
might want to take a look at the getting started guide for maven as
well (http://maven.apache.org/guides/getting-started/index.html).

Nils-H

On Fri, Apr 25, 2008 at 8:08 PM, Vinay Nagrik <vnagrik@gmail.com> wrote:
> I can not get Maven to install.  It is looking for pom.xml and I don't have
>  it
>  in my download of Maven.  I supplied it Super POM from internet and even
>  then it did not compile.
>
>  I tried
>
>  mvn clean install
>  mvn install
>
>  Both failed.
>
>  Thanks.
>
>  nagrik
>
>
>
>
>  On 4/25/08, Allen, Daniel <Daniel.Allen@kbcfp.com> wrote:
>  >
>  > Actually, I found Maven very helpful when I was starting Struts2.
>  >
>  > http://struts.apache.org/2.x/docs/struts-maven-archetypes.html has some
>  > information on the archetype plugin, which Maven can use to generate the
>  > empty shell of an application. That's great for beginners because all
>  > the configuration files are where they need to be and creates the proper
>  > directory structure, and to have a functioning program all you need to
>  > do is write an action or two and JSPs for results. Then you can start
>  > tweaking things to see how they change, tracing through executions, etc.
>  >
>  > Dave's right, though. Maven is arguably as complex as Struts, and
>  > although it's a great tool, any more than a link or two is outside the
>  > scope of this list (though there's a Maven list too!)
>  >
>  > ~Dan Allen
>  >
>  > -----Original Message-----
>  > From: Vinay Nagrik [mailto:vnagrik@gmail.com]
>  > Sent: Friday, April 25, 2008 1:41 PM
>  > To: Struts Users Mailing List
>  > Subject: Re: Building First strut
>  >
>  > Hello Dave,
>  >
>  > On 4/25/08, Dave Newton <newton.dave@yahoo.com> wrote:
>  > >
>  > > --- Vinay Nagrik <vnagrik@gmail.com> wrote:
>  > > > I started my download from the link you provided.  And that link
>  > does
>  > > not
>  > > > give any info.  Your email did not help me.
>  > >
>  > > You are asking very vague questions.
>  > >
>  > > How familiar are you with Java web development? Are you planning on
>  > using
>  > > Ant
>  > > or Maven?
>  >
>  >
>  >
>  > I am very comfortable with Java prog. lang and I have worked with jsps
>  > and
>  > servlets extensively.  However, this is my first struts project.
>  >
>  > If you are not using Maven creating an S2 web application is like
>  > creating
>  > > any other. Maven is a topic unto itself and the basics of it are
>  > beyond
>  > > the
>  > > scope of the newsgroup, but looking at the sample applications may
>  > point
>  > > you
>  > > in the right direction.
>  >
>  >
>  > I have nothing agains using Maven, but it does not compile.  I
>  > downloaded
>  > Maven, tomcat, and struts.
>  >
>  > My tomcat is up and running.
>  > My Maven does not compile for lack of pom.xml and I do not know where to
>  > get
>  > it from.
>  > I have followed the instructions on the strut page to create helloworld
>  > struts
>  > Created four files verbatim web.xml, struts.xml, helloworld.java,
>  > helloworld.jsp.  Put all
>  > .jar files form struts download in WEB-INF/lib, \
>  > web.xml in WEB-INF
>  > struts.xml in WEB-INF/classes and my helloworld.class in the
>  > WEB-INF/classes.
>  >
>  > Points to be noted.
>  >
>  > my directory structure is
>  >
>  > ~/tomcat/webapps/examples (instead of tutorials)/WEB-INF/ and then other
>  > classes
>  > and other directories.
>  > helloworld.java's  top line reads "package examples"  (I can take this
>  > line
>  > out if it creates
>  > any confusion) and make it flat.
>  >
>  > I am typing http://localhost:8080/examples/helloworld.action.  (Please
>  > don't
>  > mind the spelling
>  > and upper/lower case of letters, they have been thoroughly checked.)
>  >
>  > It gives the error message
>  >
>  > "The requested resource (examples/Helloworld.action ) is not available.
>  >
>  > If you're using Eclipse (or, I presume, most other IDEs) it's best to
>  > let
>  > > the
>  > > IDE move config files from the source directory into WEB-INF/classes
>  > > rather
>  > > than creating the file there, just to avoid confusion.
>  > >
>  > > What issues, precisely, do you think you're having?
>  > >
>  > > Dave
>  > >
>  > >
>  > > ---------------------------------------------------------------------
>  > > To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
>  > > For additional commands, e-mail: user-help@struts.apache.org
>  > >
>  > >
>  >
>  >
>  > --
>  > Thanks
>  >
>  > Nagrik
>  >
>  > --
>  > This message may contain confidential, proprietary, or legally privileged
>  > information. No confidentiality or privilege is waived by any transmission
>  > to an unintended recipient. If you are not an intended recipient, please
>  > notify the sender and delete this message immediately. Any views expressed
>  > in this message are those of the sender, not those of any entity within the
>  > KBC Financial Products group of companies (together referred to as "KBC
>  > FP").
>  >
>  > This message does not create any obligation, contractual or otherwise, on
>  > the part of KBC FP. It is not an offer (or solicitation of an offer) of, or
>  > a recommendation to buy or sell, any financial product. Any prices or other
>  > values included in this message are indicative only, and do not necessarily
>  > represent current market prices, prices at which KBC FP would enter into a
>  > transaction, or prices at which similar transactions may be carried on KBC
>  > FP's own books. The information contained in this message is provided "as
>  > is", without representations or warranties, express or implied, of any kind.
>  > Past performance is not indicative of future returns.
>  >
>  >
>  > ---------------------------------------------------------------------
>  > To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
>  > For additional commands, e-mail: user-help@struts.apache.org
>  >
>  >
>
>
>  --
>  Thanks
>
>  Nagrik
>

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org


Mime
View raw message