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

Reply via email to