Out of curiosity, how well does Eclipse run on old hardware. I have a
Pentium laptop w/96M RAM - NB is my usual IDE but that's right out, even
JEdit is a bit painful to work it.

thx

-----Original Message-----
From: James Mitchell [mailto:[EMAIL PROTECTED]]
Sent: Thursday, November 21, 2002 13:31
To: [EMAIL PROTECTED]
Cc: Struts Users Mailing List
Subject: RE: Can anybody tell how to setup struts in Netbeans IDE



For working on the distribution itself:
1. Create a new project (from the Project Manager window)
2. Download the struts source distribution (or use built-in cvs to get
   the module)
3. Extract to a local drive (if on windoze, try not to have spaces in
   the directory (such as C:\My Documents)
4. Mount the directory you unzipped to
5. Copy build.properties.sample to build.properties and customize to point
   to where you keep those jars
6. Mount each of the source directories that you wish to work in
   For me, I use:
      jakarta-struts/src/share
      jakarta-struts/src/example
7. Mount each jar referenced in the build.properties file
   * Note - NetBeans has built in support for auto-mounting these if your
            build.xml specifies the jars in the project.classpath, but
            that's not the case for the default struts distribution.


For doing your own thing:
1. Create a new project (from the Project Manager window)
2. Download (or build for yourself) the required jars
   *See the jakarta-struts-1.1-b2/webapps/struts-example.war
3. Create a directory (I use a structure similar to how the webapp will
exist)
   +-/my-project
     |
     +-/WEB-INF
       |
       +-/classes
       |
       +-/lib
       |
       +-/src

4. Create a build.xml for your project (so ant can build and war it for
you).
   I recommend you use an existing file to get a jump start on development.
   Actually, I recommend you re-use someone's entire existing project.  That
   will surely get you ahead of the game.
5. Mount that directory
   * If you specified the build classpath and the jars are there, NetBeans
     will mount the jars for you automatically.
6. Mount each of the source directories that you wish to work in
      /myproject/WEB-INF/src

7. Always work in the node in #6 when modifying your java files.



I'll also take this opportunity to tell you that I recommend using Eclipse.
I
was a NetBeans advocate for the longest time, but a few weeks ago several
discussion had prompted me to try out Eclipse, and I can say without a
doubt,
that it is much more mature an IDE than NetBeans.  And since they are both
Open
Source.....hey....why not?

One definite advantage Eclipse has over NetBeans is that Eclipse is built
using
SWT (Standard Widget Toolkit).  That means that the IDE is written in Java,
but
the underlying framework uses native JNDI calls the OS API.....or, in other
words......"its fast as Hell on windows".

Anyone who has left NetBeans running in the background overnight on a laptop
knows the pain of doing an Alt+Tab back to the IDE and seeing how Swing
pulls
its rather large A## up from the swap file....heh heh :)

Hope that will help you get started.  I was planning to post a how-to for
doing
this and a few other tasks with NetBeans, Eclipse, and JBuilder.  I even
have
quite a few screenshots taken, but I just haven't finished it.

Good Luck with it!!!

--
James Mitchell
Software Engineer/Struts Evangelist
http://www.open-tools.org

"If you were plowing a field, which would you rather use? Two strong oxen or
1024 chickens?"
- Seymour Cray (1925-1996), father of supercomputing


> -----Original Message-----
> From: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED]]On Behalf Of
> [EMAIL PROTECTED]
> Sent: Thursday, November 21, 2002 12:01 PM
> To: [EMAIL PROTECTED]
> Subject: [MVC-Programmers] RE: MVC-Programmers digest, Vol 1 #94 - 7
> msgs
>
>
> Hi,
>   I am new to struts framework. Can anybody tell how to setup struts
> in Netbean IDE..
> Thanks
> Kaja.
>
> -----Original Message-----
> From: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED]]
> Sent: Wednesday, November 20, 2002 3:00 PM
> To: [EMAIL PROTECTED]
> Subject: MVC-Programmers digest, Vol 1 #94 - 7 msgs
>
>
> Send MVC-Programmers mailing list submissions to
>       [EMAIL PROTECTED]
>
> To subscribe or unsubscribe via the World Wide Web, visit
>       http://www.netbean.net/mailman/listinfo/mvc-programmers
> or, via email, send a message with subject or body 'help' to
>       [EMAIL PROTECTED]
>
> You can reach the person managing the list at
>       [EMAIL PROTECTED]
>
> When replying, please edit your Subject line so it is more specific
> than "Re: Contents of MVC-Programmers digest..."
>
>
> Today's Topics:
>
>    1. How to access the Struts Connection Pool  from an ActionForm
> (Steven Citron-Pousty)
>    2. Re: How to access the Struts Connection Pool  from an
> ActionForm (V. Cekvenich)
>    3. Re: How to access the Struts Connection Pool  from an
> ActionForm ("V. Cekvenich")
>    4. [Fwd: ANNOUNCE: FormsPlayer beta for IE 6 is now based on Candidate
>        Recommendation] (V. Cekvenich)
>    5. [Fwd: ANNOUNCE: FormsPlayer beta for IE 6 is now based on Candidate
>        Recommendation] ("V. Cekvenich")
>
> --__--__--
>
> Message: 1
> From: Steven Citron-Pousty <[EMAIL PROTECTED]>
> Date: Tue, 19 Nov 2002 17:01:41 -0500
> Organization: Basebeans.com
> To: [EMAIL PROTECTED]
> Subject: [MVC-Programmers] How to access the Struts Connection Pool
> from an ActionForm
>
> Greetings all:I am trying to populate the options for a select list
> from a DB call. And I am getting a null pointer exception from this
> line in the ActionForm:To: [EMAIL PROTECTED]
>
> DataSource dataSource = (DataSource)
> servlet.getServletContext().getAttribute(Action.DATA_SOURCE_KEY);To:
> [EMAIL PROTECTED]
>
> What I am trying to do is use the ConnectionPool provided by Struts.
> This call works great in my Action but doesn't work in my
> ActionForm.On the IRC channel (irc.freenode.net #struts) we have been
> discussing the merits of putting a DB call in an ActionForm.To:
> [EMAIL PROTECTED]
>
> SOoo, my main question is,How do I ask the context for the connection
> pool in an ActionForm?To: [EMAIL PROTECTED]
>
> But I would also love to see discussion about the merits of putting a
> DB call in an ActionForm at all. If I didn't put the call in the
> ActionForm how would I get the data from the DB call into the
> actionForm?To: [EMAIL PROTECTED]
>
> Thanks in advance for all your help,SteveTo: [EMAIL PROTECTED]
>
>
> --__--__--
>
> Message: 2
> To: [EMAIL PROTECTED]
> From: "V. Cekvenich" <[EMAIL PROTECTED]>
> Date: Tue, 19 Nov 2002 17:12:01 -0500
> Subject: [MVC-Programmers] Re: How to access the Struts Connection
> Pool  from an ActionForm
>
> A good practice is to unit test the beans before using them, since that
> is one of the benefits of MVC.
> So before the action, test the bean, including the option bean,
> basically an iteration of names and properties.
> Then add a toCollection method that returns .... the collection so you
> can use Options Collection.
>
> hth,
> .V
>
> Steven Citron-Pousty wrote:
> > Greetings all:I am trying to populate the options for a select list
> from > a DB call. And I am getting a null pointer exception from this
> line in > the ActionForm:To: [EMAIL PROTECTED]
> >
> > DataSource dataSource = (DataSource)
> > servlet.getServletContext().getAttribute(Action.DATA_SOURCE_KEY);To:
> > [EMAIL PROTECTED]
> >
> > What I am trying to do is use the ConnectionPool provided by Struts.
> > This call works great in my Action but doesn't work in my
> ActionForm.On > the IRC channel (irc.freenode.net #struts) we have
> been discussing the > merits of putting a DB call in an ActionForm.To:
> > [EMAIL PROTECTED]
> >
> > SOoo, my main question is,How do I ask the context for the connection
> > pool in an ActionForm?To: [EMAIL PROTECTED]
> >
> > But I would also love to see discussion about the merits of putting
> a DB > call in an ActionForm at all. If I didn't put the call in the
> ActionForm > how would I get the data from the DB call into the
> actionForm?To:
> > [EMAIL PROTECTED]
> >
> > Thanks in advance for all your help,SteveTo:
[EMAIL PROTECTED]
>
>
>
>
> --__--__--
>
> Message: 3
> From: [EMAIL PROTECTED] ("V. Cekvenich")
> Date: Tue, 19 Nov 2002 22:19:32 +0000 (UTC)
> Organization: Basebeans.com
> To: [EMAIL PROTECTED]
> Subject: [MVC-Programmers] Re: How to access the Struts Connection
> Pool  from an ActionForm
>
> A good practice is to unit test the beans before using them, since
> that is one of the benefits of MVC.So before the action, test the
> bean, including the option bean, basically an iteration of names and
> properties.Then add a toCollection method that returns .... the
> collection so you can use Options Collection.To:
[EMAIL PROTECTED]
>
> hth,.VTo: [EMAIL PROTECTED]
>
> Steven Citron-Pousty wrote:> Greetings all:I am trying to populate
> the options for a select list from > a DB call. And I am getting a
> null pointer exception from this line in > the ActionForm:To:
> [EMAIL PROTECTED]> > DataSource dataSource = (DataSource)
> >
> servlet.getServletContext().getAttribute(Action.DATA_SOURCE_KEY);To:
> > [EMAIL PROTECTED]> > What I am trying to do is use the
> ConnectionPool provided by Struts. > This call works great in my
> Action but doesn't work in my ActionForm.On > the IRC channel
> (irc.freenode.net #struts) we have been discussing the > merits of
> putting a DB call in an ActionForm.To: >
> [EMAIL PROTECTED]> > SOoo, my main question is,How do I
> ask the context for the connection > pool in an ActionForm?To:
> [EMAIL PROTECTED]> > But I would also love to see
> discussion about the merits of putting a DB > call in an ActionForm
> at all. If I didn't put the call in the ActionForm > how would I get
> the data from the D
>  B call into the actionForm?To: > [EMAIL PROTECTED]> >
> Thanks in advance for all your help,SteveTo:
> [EMAIL PROTECTED]: [EMAIL PROTECTED]
>
>
> --__--__--
>
> Message: 4
> Date: Wed, 20 Nov 2002 08:06:40 -0500
> From: "V. Cekvenich" <[EMAIL PROTECTED]>
> To: [EMAIL PROTECTED]
> Subject: [MVC-Programmers] [Fwd: ANNOUNCE: FormsPlayer beta for IE 6
> is now based on Candidate
>  Recommendation]
>
>   FYI
>
> -------- Original Message --------
> Subject: ANNOUNCE: FormsPlayer beta for IE 6 is now based on Candidate
> Recommendation
> Date: Wed, 20 Nov 2002 12:40:51 -0000
> From: "'FormsPlayer beta'" <[EMAIL PROTECTED]>
> To:
>
>
> x-port's FormsPlayer beta for IE 6 is now based on the XForms
> 1.0 Candidate Recommendation. The new version can be downloaded
> from the FormsPlayer site:
>
>       http://www.FormsPlayer.com/
>
> As well as using tags from the XForms 1.0 CR, there are quite
> a few new features, many of which are illustrated with updated
> samples. Some of these will make building internet applications
> much easier:
>
> - Saving and loading to local files is fully working. This
> allows forms to be completed offline, and then submitted at
> a later date. There is a sample that shows this, as well as
> demonstrating one technique for producing a wizard.
>
> - Using @appearance="compact" with xf:select1 and
> xf:select causes the processor to use a tree view
> control to render the items. This is very useful when
> choices are nested, since it helps guide the user in
> their selection.
>
> - The data type now influences rendering of the user
> interface. At the moment this is confined to dates, but
> more will be added.
>
> - A submission method of 'text-xml-post' has been added so
> that we can submit "text/xml" documents, which is needed for
> SOAP 1.1 applications. (SOAP 1.2 uses "application/xml+soap".)
>
> - COM interfaces have been added to the model element as
> per section 7.2, so allowing script access to the instance data
> from IE. A sample illustrates this.
>
> Regards,
>
> Mark
>
>
>
> Mark Birbeck
> Managing Director
> x-port.net Ltd.
> 4 Pear Tree Court
> London
> EC1R 0DS
>
> T: +44 20 7689 9232
> W: http://www.x-port.net/
>
>
>
>
>
>
> --__--__--
>
> Message: 5
> From: [EMAIL PROTECTED] ("V. Cekvenich")
> Date: Wed, 20 Nov 2002 13:03:46 +0000 (UTC)
> Organization: Basebeans.com
> To: [EMAIL PROTECTED]
> Subject: [MVC-Programmers] [Fwd: ANNOUNCE: FormsPlayer beta for IE 6
> is now based on Candidate
>  Recommendation]
>
>   FYITo: [EMAIL PROTECTED]
>
> -------- Original Message --------Subject: ANNOUNCE: FormsPlayer beta
> for IE 6 is now based on Candidate RecommendationDate: Wed, 20 Nov
> 2002 12:40:51 -0000From: "'FormsPlayer beta'" <[EMAIL PROTECTED]>To:To:
> [EMAIL PROTECTED]
>
> To: [EMAIL PROTECTED]
>
> x-port's FormsPlayer beta for IE 6 is now based on the XForms1.0
> Candidate Recommendation. The new version can be downloadedfrom the
> FormsPlayer site:To: [EMAIL PROTECTED]
>
>       http://www.FormsPlayer.com/To: [EMAIL PROTECTED]
>
> As well as using tags from the XForms 1.0 CR, there are quitea few
> new features, many of which are illustrated with updatedsamples. Some
> of these will make building internet applicationsmuch easier:To:
> [EMAIL PROTECTED]
>
> - Saving and loading to local files is fully working. Thisallows
> forms to be completed offline, and then submitted ata later date.
> There is a sample that shows this, as well asdemonstrating one
> technique for producing a wizard.To: [EMAIL PROTECTED]
>
> - Using @appearance="compact" with xf:select1 andxf:select causes the
> processor to use a tree viewcontrol to render the items. This is very
> useful whenchoices are nested, since it helps guide the user intheir
> selection.To: [EMAIL PROTECTED]
>
> - The data type now influences rendering of the userinterface. At the
> moment this is confined to dates, butmore will be added.To:
> [EMAIL PROTECTED]
>
> - A submission method of 'text-xml-post' has been added sothat we can
> submit "text/xml" documents, which is needed forSOAP 1.1
> applications. (SOAP 1.2 uses "application/xml+soap".)To:
> [EMAIL PROTECTED]
>
> - COM interfaces have been added to the model element asper section
> 7.2, so allowing script access to the instance datafrom IE. A sample
> illustrates this.To: [EMAIL PROTECTED]
>
> Regards,To: [EMAIL PROTECTED]
>
> MarkTo: [EMAIL PROTECTED]
>
> To: [EMAIL PROTECTED]
>
> To: [EMAIL PROTECTED]
>
> Mark BirbeckManaging Directorx-port.net Ltd.4 Pear Tree
> CourtLondonEC1R 0DSTo: [EMAIL PROTECTED]
>
> T: +44 20 7689 9232W: http://www.x-port.net/          To:
> [EMAIL PROTECTED]
>
>
>
> --__--__--
>
> _______________________________________________
> MVC-Programmers mailing list
> [EMAIL PROTECTED]
> http://www.netbean.net/mailman/listinfo/mvc-programmers
>
>
> End of MVC-Programmers Digest
>
>
> **********************************************************************
> This email and any files transmitted with it are confidential and
> intended solely for the use of the individual or entity to whom they
> are addressed. If you have received this email in error please notify
> the sender immediately.
>
> This footnote also confirms that this email message has been swept by
> MIMEsweeper and Symantec Norton AntiVirus for the presence
> of computer viruses.
> **********************************************************************
>
> _______________________________________________
> MVC-Programmers mailing list
> [EMAIL PROTECTED]
> http://www.netbean.net/mailman/listinfo/mvc-programmers
>


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



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

Reply via email to