You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by Antony Paul <an...@hotmail.com> on 2003/11/24 13:51:15 UTC

Some doubts.

Hi all,
    I am starting to learn Struts. On going throgh the documentation I have
some doubts.
1. Is a form bean is an ActionForm.?
2. It says that data is stored in JavaBeans. In the presentation layer I
have to display several select boxes whose value is fetched from database
eg. states,postal codes etc.. How to do it in Struts. There are other values
which is to be dispalyed in text boxes which can be get from a JvaBean. I
dont see any other way than putting scriptlet in View. Custom tags or
creating a JavaBean and executing it is another option.(Currently I am using
JavaBean).
3. Where the Business Logic is implemented. That is accessing database and
updating data. Is it ok to do it in ActionForm.

Thanks in advance

Rgds
Antony Paul.

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


Re: Some doubts.

Posted by Shakti <sh...@hotmail.com>.
hi,
   You can read
1 )  http://javaboutique.internet.com/tutorials/Struts/ article to get some
idea about struts + MVC ( just for a startup .. )
2 ) http://jakarta.apache.org/struts/resources/1st.html article to get a
better perspective .
chao ..
Shakti


----- Original Message -----
From: "Antony Paul" <an...@hotmail.com>
To: "struts" <st...@jakarta.apache.org>
Sent: Monday, November 24, 2003 6:21 PM
Subject: Some doubts.


> Hi all,
>     I am starting to learn Struts. On going throgh the documentation I
have
> some doubts.
> 1. Is a form bean is an ActionForm.?
> 2. It says that data is stored in JavaBeans. In the presentation layer I
> have to display several select boxes whose value is fetched from database
> eg. states,postal codes etc.. How to do it in Struts. There are other
values
> which is to be dispalyed in text boxes which can be get from a JvaBean. I
> dont see any other way than putting scriptlet in View. Custom tags or
> creating a JavaBean and executing it is another option.(Currently I am
using
> JavaBean).
> 3. Where the Business Logic is implemented. That is accessing database and
> updating data. Is it ok to do it in ActionForm.
>
> Thanks in advance
>
> Rgds
> Antony Paul.
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: struts-user-help@jakarta.apache.org
>
>

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