Mark,
You just need to create the jsp with the form and also create a form bean
that has member variables that match the names of the fields in the form.
You will also create an Action class (a class that extends Action). Then
you need to put two entries in the struts.config file like this:
<!-- ========== Form Bean Definitions
=================================== -->
<form-beans>
<form-bean name="yourFormBean"
type="yourPackage.YourFormBean"/>
</form-beans>
<!-- ========== Action Mapping Definitions
============================== -->
<action-mappings>
<action path="/yourFormName"
type="yourPackage.YourFormAction"
name="yourFormBean"
scope="session"
input="myForm.jsp">
<forward name="yourForwardPage" path="/jsp/your_forward_page.jsp"/>
</action>
You will need to replace 'yourFormName', 'yourPackage', 'YourFormAction',
'yourFormBean', 'yourForm.jsp', and your_forward_page.jsp' with your own
class and page names. The controller servlet will actually fill in your
form bean with the corresponding fields of the input form and then pass it
to the Action class that you specify in the Action mapping. The input form
jsp doesn't actually do it as you described in your email.
Regards,
Richard
At 11:27 PM 5/9/2002 -0500, you wrote:
>Well, I have spent the last 15 years designing and developing complex
>transaction switching architectures for the healthcare industry,
>unfortunately very little of this work was with the presentation layer. I
>am somewhat familiar with html and jsp, however I have never worked with
>taglibs. I understand what they are and how they work, however I need to
>know the syntax and usage of these tags. Once I have that information, it
>should be easier to determine if Struts is the tool to use for my
>application.
>
>What I am trying to do is quite basic. I would like to serve up a jsp that
>contains a form. The form populates a javabean that is passed into a
>servlet, the action controller does some work based on the contents of the
>javabean, and the result is displayed in a jsp. Pretty straightforward.
>However, it is very difficult to populate the bean without documentation for
>the struts-form taglib. If this is a bad approach, maybe you can point me
>in the correct direction.
>
>Thanks.
>
>----- Original Message -----
>From: "James Mitchell" <[EMAIL PROTECTED]>
>To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
>Sent: Thursday, May 09, 2002 11:15 PM
>Subject: RE: Struts Beginner - Looking for *decent* documentation
>
>
> > What kinds of questions do you have?
> >
> > JM
> >
> > > -----Original Message-----
> > > From: Mark Udstrand [mailto:[EMAIL PROTECTED]]
> > > Sent: Friday, May 10, 2002 12:12 AM
> > > To: Struts Users Mailing List
> > > Subject: Re: Struts Beginner - Looking for *decent* documentation
> > >
> > >
> > >
> > > The primary issue I am having surrounds the usage of a form within
>Struts.
> > > I have been searching the web for documentation surrounding the
> > > struts-form
> > > taglib and cannot find anything. Any ideas where I may locate such a
> > > document?
> > >
> > > M.
> > >
> > > ----- Original Message -----
> > > From: "James Mitchell" <[EMAIL PROTECTED]>
> > > To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
> > > Sent: Thursday, May 09, 2002 11:05 PM
> > > Subject: RE: Struts Beginner - Looking for *decent* documentation
> > >
> > >
> > > > I agree. The documentation is a little hard to follow.
> > > >
> > > > There are many other places that have docs and samples....check out
>some
> > > of
> > > > these links.
> > > >
> > > > http://jakarta.apache.org/struts/resources.html
> > > >
> > > >
> > > > JM
> > > >
> > > > > -----Original Message-----
> > > > > From: Mark Udstrand [mailto:[EMAIL PROTECTED]]
> > > > > Sent: Thursday, May 09, 2002 11:50 PM
> > > > > To: Struts Users Mailing List
> > > > > Subject: Struts Beginner - Looking for *decent* documentation
> > > > >
> > > > >
> > > > >
> > > > > I have been working at implementing Struts into an existing web
> > > > > framework for the past several days and I feel that the only
> > > > > progress that I have made is that the documentation for Struts is
> > > > > generally poor and very disorganized. I hope that I am incorrect
> > > > > and that someone can point me to a *good* reference with a few
> > > > > straightforward examples. Much of my frustration surrounds the
> > > > > documentation for the taglibs. I am interested in documentation
> > > > > that explains the purpose and usage of each tag, not some generic
> > > > > definition of the tag.
> > > > >
> > > > > What I am trying to accomplish is pretty straight forward,
> > > > > however I have spinning my wheels for the last several days as I
> > > > > attempt to work my way through 4 different Struts examples,
> > > > > trying to correlate the contents back to the Struts
> > > > > documentation. I believe that Struts is a good tool, however if
> > > > > my experience is indicative of a first time user, the lack of
> > > > > documentation only serves to lessen the usefulness of this tool.
> > > > >
> > > > > Thanks.
> > > > >
> > > > > M.
> > > > >
> > > >
> > > >
> > > > --
> > > > 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]>
> >
> >
> >
> > --
> > 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]>
--
To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>