Re: Design Advice - Relational Databases & Java Objects.

2002-04-17 Thread Francisco Hernandez

excellent explanation, this should be of help to many people and exactly as
I have implemented it in my own apps.


- Original Message -
From: "Robert Taylor" <[EMAIL PROTECTED]>
To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
Sent: Wednesday, April 17, 2002 4:41 AM
Subject: RE: Design Advice - Relational Databases & Java Objects.


> Rob,
>
> Sun's blue prints are an excellent resource to get an idea of how to
handle
> data access via the web tier.
> In general, I use the Struts action classes as proxies to my business
> objects and my business objects serve
> as proxies to my data access objects and I pass data across tiers using
DTO
> (DataTransportObject [use to be ValueObject]).
> In this fashion, I can keep my business logic reusable in say a Java
> Swing client as well as an HTML client.
>
> IMO, I would not access DAO (data access objects) directly in the Struts
> action classes. This means you
> would have to manage transaction boundries (getting JDBC connection or JDO
> PersistanceManager)
> in your web tier where as it would probably be better to isolate
> these details to your business tier.
>
> We don't use EJB, so the general data flow is as follows:
>
> Client ===> Action ===> BusinessObject ===> DataAccessObject(s) ===>
> Database
>
>
> This keeps BusinessObjects resuseable among Action classes and DAO
> objects reusable in BusinessObjects.
> The BusinessObject manages the transaction boundries and the DAO just uses
> the JDBC connection.
> We maintain all SQL as static final Strings in the DAO's. (reduces object
> creation)
> The BusinessObjects and DAO don't maintain any state, so they are
> singletons. (reduces object creation)
>
> So for example if I wanted to retrieve and display a customer list.
>
> 1. Client sends HTTP request
> 2. Struts delegates request to ShowCustomersAction
> 3. ShowCustomersAction delegates to CustomerBO
> 4. CustomerBO starts a transaction
> 5. CustomerBO delegates  to CustomerDAO
> 6. CustomerDAO executes the query and gets results
> 7. CustomerDAO maps results into a collection of CustomerDTO
> (DataTransportObject)
> 8. CustomerDAO returns collection to CustomerBO
> 9. CustomerBO ends transaction
> 10. CustomerBO returns collection to ShowCustomerAction
> 11. ShowCustomersAction places the connection in the HttpServletRequest as
> an attribute
> 12. ShowCustomersAction forwards to showCustomersView (some jsp)
> 13. ShowCustomersView accesses customer collection using a custom tag
> 14. ShowCustomersView renders customer list
>
>
> I'm sure everyone has there own way of accomplishing the use case above,
but
> this is how I have approached it.
>
> HTH,
>
> robert
>
> PS. If we did switch to using EJB, then the BusinessObjects become
> BusinessDelegates to actual EJBs and
> nothing in the web tier has to change and both DAOs and DTOs can be
reused.
>
>
> > -Original Message-
> > From: rob [mailto:[EMAIL PROTECTED]]
> > Sent: Wednesday, April 17, 2002 6:31 AM
> > To: [EMAIL PROTECTED]
> > Subject: Design Advice - Relational Databases & Java Objects.
> >
> >
> > I'm hoping that as many people as possible will contribute their
> > own personal
> > experience and methods to this post.
> >
> > I have a relational database that contains information used to
> > build java objects
> > during runtime,  I'm curious about:
> >
> > - In what classes in struts do people typically connect to
> > the database
> > and build java objects from the database.
> > - Do the objects have interfaces which receive database connections
> > and build themselves from the inside out? or do
> > people make the
> > necessary querys for the information and then pass
> > the data to the
> > constructor?
> > - Any other methods or ideas that might aide my goal of elegance
> > (and simplicity).
> >
> > Please be verbose I'm trying to find an elegant way to do it and
> > though I've tried
> > both perhaps someone here can offer some insight.
> >
> > Examples, Explanations all appreciated.
> >
> > Thanks
> >
> >
> > --
> > To unsubscribe, e-mail:
> > 
> > For additional commands, e-mail:
> > 
> >
>
>
> --
> To unsubscribe, e-mail:

> For additional commands, e-mail:

>
>



--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




Re: Struts vs EJB, thoughts?

2002-04-14 Thread Francisco Hernandez

I dont think you can directly compare Struts to EJB since both solve
different problems.. but you can use EJB with Struts..

- Original Message -
From: "Kousek, Theron" <[EMAIL PROTECTED]>
To: "'Struts Users Mailing List'" <[EMAIL PROTECTED]>
Sent: Friday, April 12, 2002 5:03 PM
Subject: Struts vs EJB, thoughts?


> Not that I am looking for a job (I am not), I have been working with
struts
> for the last 4 months and don't mind it.  I see it as a "poor mans" EJB.
I
> have no EJB experience but I don't think transitioning over to EJB after
> working with struts as a big deal.  After all, they both act on
server-side
> beans.  Yeah, EJB has entity beans and session beans but you can easily
> simulate both of those types of beans using JSP/Struts/tomcat.  Since
> there's a gazillion people on the planet now that know how to program in
> Java, getting an EJB position will be next to impossible (I guess) if you
> don't have EJB experience.  Companies now have so many available Java
> programmers to pick and choose from and are in a position to require
salary
> cuts for existing Java programmers on staff due to the plethoria of Java
> developers available to work who would be willing to work for less$
Being
> a Java programmer is no longer an elite skill.   Now it's as common as
> coding in Cobol once was  :-(   I have already read about the salaries of
> Java programmers declining and I expect the trend to continue due to the
bad
> economy and the oversupply of qualified Java programmers in the market
> place.  This is why so many companies can now demand specific product
> experience with Java (ie, "if you don't have 1 year of Bea Weblogic
> experience, see you later!!  Next person please...")...
>
> SO back to the Struts vs EJB issue:
> If one is comfortable with struts, how much more difficult would EJB be to
> get comfortable with?
>
> Also, seems like Struts is more useful for "smaller companies" and EJB is
> more suitable for large corporations.  Is this pretty much a valid
> statement?
>
> thanks...
>
> --
> To unsubscribe, e-mail:

> For additional commands, e-mail:

>


--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




Re: problem trying to use my own actions

2002-04-10 Thread Francisco Hernandez

after much heart ache i finalley found the damm problem.. in my class
should have been:
> public ActionForward perform(ActionMapping mapping,
>  ActionForm form,
>  HttpServletRequest request,
>  HttpServletResponse response)
> throws IOException, ServletException {

NOT:

> public ActionForward perform(ActionMapping mapping,
>  ActionForm form,
>  ServletRequest request,
>  ServletResponse response)
> throws IOException, ServletException {

thanks all for the help :)


- Original Message -----
From: "Francisco Hernandez" <[EMAIL PROTECTED]>
To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
Sent: Tuesday, April 09, 2002 1:24 PM
Subject: problem trying to use my own actions


> i just cant get struts to use my own actions..
>
> struts-config.xml snipplets:
>   
> 
> 
>
> 
> type="venue.action.CreateVenueAction"
> name="venueForm">
>
> 
>
> this is my class:
>
> public class CreateVenueAction extends Action {
> public ActionForward perform(ActionMapping mapping,
>  ActionForm form,
>  ServletRequest request,
>  ServletResponse response)
> throws IOException, ServletException {
>
> Util.println("IN CREATE VENUE ACTION");
> return mapping.findForward("editVenue");
> }
> }
>
> what am i missing? i just cant seem to get struts to execute my action..
and
> goto the specified forward
>
> is there a way to put struts into a 'verbose' mode so i can see just
exactly
> what action was executed, the url, etc?
>
>
>
> --
> 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]>




Re: problem trying to use my own actions

2002-04-09 Thread Francisco Hernandez

i tried renaming it from createVenue to editVenue and tried different
setups, and it still does not work.


- Original Message -
From: "Francisco Hernandez" <[EMAIL PROTECTED]>
To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
Sent: Tuesday, April 09, 2002 3:24 PM
Subject: Re: problem trying to use my own actions


> my action class is in the class path, in its the webapp/WEB-INF/classes
> directory
>
> if i remove the class from the class path i get an error that said it was
> not able to instanciate the class
>
> No action instance for path /editVenue could be created
>
> then once i move the file back into the correct place the link will work,
> but its blank (0 byte)
>
> - Original Message -
> From: "Xianzhong chen" <[EMAIL PROTECTED]>
> To: "'Struts Users Mailing List'" <[EMAIL PROTECTED]>
> Sent: Tuesday, April 09, 2002 2:43 PM
> Subject: RE: problem trying to use my own actions
>
>
> > Sure your action class is on the classpath of orion or reson?
> >
> > -Original Message-
> > From: Francisco Hernandez [mailto:[EMAIL PROTECTED]]
> > Sent: Tuesday, April 09, 2002 2:40 PM
> > To: Struts Users Mailing List
> > Subject: Re: problem trying to use my own actions
> >
> >
> >
> > - Original Message -
> > From: "Jay sissom" <[EMAIL PROTECTED]>
> > To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
> > Sent: Tuesday, April 09, 2002 2:25 PM
> > Subject: Re: problem trying to use my own actions
> >
> >
> > > Lots of questions:
> > >
> > > 1.  Is your action servlet loading?  Your log files should tell you
> that.
> >
> > my action servlet is loading correctly, i have an index.jsp page that
can
> > use the struts tags logic:notPresent for testing if
> > org.apache.struts.action.MESSAGE is under the application scope and a
few
> > html:link tags that work fine, the app server apps display some of
> struts's
> > message when loading
> >
> > > 2.  Do you have a mapping for *.do to your action servlet in your
> web.xml
> > > file?
> >
> > yes I do.
> >
> > > 3.  Did you try to access /webapp/createVenue.do (where webapp is the
> > > context name of your web app)?
> >
> > when i access /webapp/createVenue.do i just get a blank 0 byte page
> returned
> >
> >
> > in my struts config i have these simple mappings that do infact work
> > correctly,
> >
> > 
> >  > type="org.apache.struts.actions.ReloadAction" />
> >
> > its just my own CreateVenueAction action that does not want to work
> >
> >
> >
> > >
> > > Jay
> > >
> > > On Tue, 9 Apr 2002, Francisco Hernandez wrote:
> > >
> >
> >
> >
> >
> > --
> > 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]>




Re: problem trying to use my own actions

2002-04-09 Thread Francisco Hernandez

my action class is in the class path, in its the webapp/WEB-INF/classes
directory

if i remove the class from the class path i get an error that said it was
not able to instanciate the class

No action instance for path /editVenue could be created

then once i move the file back into the correct place the link will work,
but its blank (0 byte)

- Original Message -
From: "Xianzhong chen" <[EMAIL PROTECTED]>
To: "'Struts Users Mailing List'" <[EMAIL PROTECTED]>
Sent: Tuesday, April 09, 2002 2:43 PM
Subject: RE: problem trying to use my own actions


> Sure your action class is on the classpath of orion or reson?
>
> -----Original Message-
> From: Francisco Hernandez [mailto:[EMAIL PROTECTED]]
> Sent: Tuesday, April 09, 2002 2:40 PM
> To: Struts Users Mailing List
> Subject: Re: problem trying to use my own actions
>
>
>
> - Original Message -
> From: "Jay sissom" <[EMAIL PROTECTED]>
> To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
> Sent: Tuesday, April 09, 2002 2:25 PM
> Subject: Re: problem trying to use my own actions
>
>
> > Lots of questions:
> >
> > 1.  Is your action servlet loading?  Your log files should tell you
that.
>
> my action servlet is loading correctly, i have an index.jsp page that can
> use the struts tags logic:notPresent for testing if
> org.apache.struts.action.MESSAGE is under the application scope and a few
> html:link tags that work fine, the app server apps display some of
struts's
> message when loading
>
> > 2.  Do you have a mapping for *.do to your action servlet in your
web.xml
> > file?
>
> yes I do.
>
> > 3.  Did you try to access /webapp/createVenue.do (where webapp is the
> > context name of your web app)?
>
> when i access /webapp/createVenue.do i just get a blank 0 byte page
returned
>
>
> in my struts config i have these simple mappings that do infact work
> correctly,
>
> 
>  type="org.apache.struts.actions.ReloadAction" />
>
> its just my own CreateVenueAction action that does not want to work
>
>
>
> >
> > Jay
> >
> > On Tue, 9 Apr 2002, Francisco Hernandez wrote:
> >
>
>
>
>
> --
> 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]>




Re: problem trying to use my own actions

2002-04-09 Thread Francisco Hernandez


- Original Message -
From: "Jay sissom" <[EMAIL PROTECTED]>
To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
Sent: Tuesday, April 09, 2002 2:25 PM
Subject: Re: problem trying to use my own actions


> Lots of questions:
>
> 1.  Is your action servlet loading?  Your log files should tell you that.

my action servlet is loading correctly, i have an index.jsp page that can
use the struts tags logic:notPresent for testing if
org.apache.struts.action.MESSAGE is under the application scope and a few
html:link tags that work fine, the app server apps display some of struts's
message when loading

> 2.  Do you have a mapping for *.do to your action servlet in your web.xml
> file?

yes I do.

> 3.  Did you try to access /webapp/createVenue.do (where webapp is the
> context name of your web app)?

when i access /webapp/createVenue.do i just get a blank 0 byte page returned


in my struts config i have these simple mappings that do infact work
correctly,




its just my own CreateVenueAction action that does not want to work



>
> Jay
>
> On Tue, 9 Apr 2002, Francisco Hernandez wrote:
>




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




Re: problem trying to use my own actions

2002-04-09 Thread Francisco Hernandez

hmm..
I already had my action servlet loaded with those params

Ive been trying to get this working but I just get a black 0 byte page
returned.. tried the same code on 2 different app servers, orion and reson
under jdk1.4

dont know whats going on.. im really lost now

- Original Message -
From: "Enrique Rodriguez" <[EMAIL PROTECTED]>
To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
Sent: Tuesday, April 09, 2002 2:00 PM
Subject: RE: problem trying to use my own actions


>
> HI,
>
> -you can config the verbose option in web.xml, when you load the config
> servlet, here the example.
>
>   
> action
> org.apache.struts.action.ActionServlet
> 
>   application
>   com.yourcompany.ApplicationResources
> 
> 
>   config
>   /WEB-INF/struts-config.xml
> 
> 
> 
>   debug
>   2
> 
> 
>   detail
>   2
> 
> 
>   validate
>   true
>     
>     2
>   
> _
> Enrique Rodriguez Lasterra
>
>
>
> > -Mensaje original-
> > De: Francisco Hernandez [mailto:[EMAIL PROTECTED]]
> > Enviado el: martes, 09 de abril de 2002 22:25
> > Para: Struts Users Mailing List
> > Asunto: problem trying to use my own actions
> >
> >
> > i just cant get struts to use my own actions..
> >
> > struts-config.xml snipplets:
> >   
> > 
> > 
> >
> > 
> > > type="venue.action.CreateVenueAction"
> > name="venueForm">
> >
> > 
> >
> > this is my class:
> >
> > public class CreateVenueAction extends Action {
> > public ActionForward perform(ActionMapping mapping,
> >  ActionForm form,
> >  ServletRequest request,
> >  ServletResponse response)
> > throws IOException, ServletException {
> >
> > Util.println("IN CREATE VENUE ACTION");
> > return mapping.findForward("editVenue");
> > }
> > }
> >
> > what am i missing? i just cant seem to get struts to execute my
> > action.. and
> > goto the specified forward
> >
> > is there a way to put struts into a 'verbose' mode so i can see
> > just exactly
> > what action was executed, the url, etc?
> >
> >
> >
> > --
> > 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]>




problem trying to use my own actions

2002-04-09 Thread Francisco Hernandez

i just cant get struts to use my own actions..

struts-config.xml snipplets:
  




   
   


this is my class:

public class CreateVenueAction extends Action {
public ActionForward perform(ActionMapping mapping,
 ActionForm form,
 ServletRequest request,
 ServletResponse response)
throws IOException, ServletException {

Util.println("IN CREATE VENUE ACTION");
return mapping.findForward("editVenue");
}
}

what am i missing? i just cant seem to get struts to execute my action.. and
goto the specified forward

is there a way to put struts into a 'verbose' mode so i can see just exactly
what action was executed, the url, etc?



--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




Re: NeXt question

2002-03-06 Thread Francisco Hernandez

what exactly is NeXt?

It's been mentioned quite a bit recently..


- Original Message -
From: "John Menke" <[EMAIL PROTECTED]>
To: "struts-user" <[EMAIL PROTECTED]>
Sent: Wednesday, March 06, 2002 7:23 AM
Subject: NeXt question


> Is it a requirement of NeXt that the outermost bean in a nested structure
> extend ActionForm?  The tutorial is structured in this manner but it does
> not appear to say this in the docs explicitly.  I'm guessing that having
the
> outermost bean extend ActionForm is tied into having struts call the set
> methods of sub beans automatically.  Is this correct? Or can I use any
type
> of bean (SimperBean) as the outermost bean.
>
> -john
>
>
>
> --
> To unsubscribe, e-mail:

> For additional commands, e-mail:

>
>



--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




Re: Francisco Hernandez

2002-02-19 Thread Francisco Hernandez

sorry about all these emails, i opened an attachment from a co-worker and it
was infected, ive ran an antivirus program on my computer and everything
should be fine now..

sorry for the inconvinience

- Original Message -
From: "John M. Corro" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Tuesday, February 19, 2002 5:48 AM
Subject: Attn: Francisco Hernandez


Francisco,

You sent me 2 emails yesterday w/ a subject line "Re: Itext -> PDF from
Struts", both emails were infected and quarentined by our anti-virus
software.  If you had a specific question, please resend w/ an uninfected
email.

(Sorry to post on the Struts forum, but the email notification I got had
some bogus return email address either by virus or malicious design)




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




Re: Best Approach for Database Access?

2002-02-12 Thread Francisco Hernandez

once you get your DummyService, are you passing it the current ActionForm?

how are you getting results/errors from that DummyService?

- Original Message -
From: "Keith Chew" <[EMAIL PROTECTED]>
To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
Sent: Tuesday, February 12, 2002 1:43 PM
Subject: RE: Best Approach for Database Access?


> Hi Darryl
>
> Yes, I use a ResourceLocator, which does that same thing. In addition, it
> does caching of home interfaces and  storing of application context
> constants, thus not called a ServiceLocator (locating a service is only
one
> of it's jobs).
>
> I have made the ServiceLocator a Singleton, thus avoided having a
> ServiceHelper. So, to get an EJB, I just go:
>
> DummyService dummyService = (DummyService)
> ResourceLocator.getInstance().getEjb (DummyServiceBeanHome.class);
>
> One line, simple and tidy. Also, the JNDI name is in the home interface,
> thus the ResourceLocator uses reflection to get that. Optionally, you can
> choose to supply a JNDI name.
>
> Hope this helps.
>
> Keith
>
> -Original Message-
> From: Thompson, Darryl [mailto:[EMAIL PROTECTED]]
> Sent: Wednesday, 13 February 2002 10:18 a.m.
> To: Struts Users Mailing List
> Subject: RE: Best Approach for Database Access?
>
>
> Hello Keith,
>
>  In my environment we employ options 2 and 3 but with this little twist:
>
>   3) EJB environment (CMP)
>  JSP -> ActionBean -> ( ServiceHelper -->ServiceLocator ) - >
> ServiceBean -> DB
>
> The ServiceLocator is a regular Java class that encapsulates all jndi Home
> lookup logic, and the ther ServiceHelper is also a regular Java class that
> contains methods to
> support the business model. All ServiceHelper methods are static and the
> Action Class calls these from the appropriate exec(..) method.
>
> We are still trying to get a handle on this framework so if this is in
left
> field let me know.
>
> Regards,
> Darryl
>
> > -Original Message-
> > From: Keith Chew [SMTP:[EMAIL PROTECTED]]
> > Sent: Tuesday, February 12, 2002 2:47 PM
> > To: Struts Users Mailing List
> > Subject: RE: Best Approach for Database Access?
> >
> > Hi Paul
> >
> > I follow this design practice for both EJB and non-EJB applications. The
> > ones marked with * live at the application server JVM.
> >
> > (1) Non-EJB environment
> > ===
> > JSP -> ActionBean -> ServiceBean -> DaoBean -> DB
> >
> > (2) EJB environment (BMP or Session)
> > 
> > JSP -> ActionBean -> * ServiceBean -> * DaoBean -> DB
> >
> > (3) EJB environment (CMP)
> > =
> > JSP -> ActionBean -> * ServiceBean -> DB
> >
> > Notes:
> > ==
> > ActionBeans are the action classes of Struts
> > DaoBeans are normal JavaBean classes which knows how to communicate with
> > the
> > DB, ie all SQL code goes here.
> > In (1), you need to take care of transactions on your own.
> > The ServiceBean in (1) is a normal JavaBean, but an EJB in (2) and (3)
> > In (3), we do not need a Dao, since the CMP does all that work for us.
> >
> > Hope this helps
> > Keith
> >
> > -Original Message-
> > From: Paul Idusogie [mailto:[EMAIL PROTECTED]]
> > Sent: Wednesday, 13 February 2002 9:38 a.m.
> > To: [EMAIL PROTECTED]
> > Subject: Best Approach for Database Access?
> > Importance: High
> >
> >
> > Could you kindly provide guidance on the best approach to implement
> > database
> > access.?
> > I have encountered various schools of thought in my reading, that
suggest
> > extracting the business logic and database code from the jsp into a jsp
> > bean
> > or ejb or servlet.
> >
> > Thanks,
> >
> > Paul Idusogie
> > Technical Architect
> > Consulting Services
> > Stellent Inc.
> >  Golden Triangle Drive
> > Eden Prairie, MN 55104
> > Desk: 952.656.2755
> > Fax: 952.903.2115
> > Email: [EMAIL PROTECTED]
> > website: http://www.stellent.com
> >
> > --
> > To unsubscribe, e-mail:
> > 
> > For additional commands, e-mail:
> > 
> >
> >
> > --
> > To unsubscribe, e-mail:
> > 
> > For additional commands, e-mail:
> > 
>
> --
> To unsubscribe, e-mail:
> 
> For additional commands, e-mail:
> 
>
>
> --
> To unsubscribe, e-mail:

> For additional commands, e-mail:

>


--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




Re: Best Approach for Database Access?

2002-02-12 Thread Francisco Hernandez

could you guys post some sample psuedo code on how you guys implement this?

im very intrested in using EJBs in my web apps.. im just not too sure on
what the best way to do this is.

- Original Message -
From: "Thompson, Darryl" <[EMAIL PROTECTED]>
To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
Sent: Tuesday, February 12, 2002 1:17 PM
Subject: RE: Best Approach for Database Access?


> Hello Keith,
>
>  In my environment we employ options 2 and 3 but with this little twist:
>
>   3) EJB environment (CMP)
>  JSP -> ActionBean -> ( ServiceHelper -->ServiceLocator ) - >
> ServiceBean -> DB
>
> The ServiceLocator is a regular Java class that encapsulates all jndi Home
> lookup logic, and the ther ServiceHelper is also a regular Java class that
> contains methods to
> support the business model. All ServiceHelper methods are static and the
> Action Class calls these from the appropriate exec(..) method.
>
> We are still trying to get a handle on this framework so if this is in
left
> field let me know.
>
> Regards,
> Darryl
>
> > -Original Message-
> > From: Keith Chew [SMTP:[EMAIL PROTECTED]]
> > Sent: Tuesday, February 12, 2002 2:47 PM
> > To: Struts Users Mailing List
> > Subject: RE: Best Approach for Database Access?
> >
> > Hi Paul
> >
> > I follow this design practice for both EJB and non-EJB applications. The
> > ones marked with * live at the application server JVM.
> >
> > (1) Non-EJB environment
> > ===
> > JSP -> ActionBean -> ServiceBean -> DaoBean -> DB
> >
> > (2) EJB environment (BMP or Session)
> > 
> > JSP -> ActionBean -> * ServiceBean -> * DaoBean -> DB
> >
> > (3) EJB environment (CMP)
> > =
> > JSP -> ActionBean -> * ServiceBean -> DB
> >
> > Notes:
> > ==
> > ActionBeans are the action classes of Struts
> > DaoBeans are normal JavaBean classes which knows how to communicate with
> > the
> > DB, ie all SQL code goes here.
> > In (1), you need to take care of transactions on your own.
> > The ServiceBean in (1) is a normal JavaBean, but an EJB in (2) and (3)
> > In (3), we do not need a Dao, since the CMP does all that work for us.
> >
> > Hope this helps
> > Keith
> >
> > -Original Message-
> > From: Paul Idusogie [mailto:[EMAIL PROTECTED]]
> > Sent: Wednesday, 13 February 2002 9:38 a.m.
> > To: [EMAIL PROTECTED]
> > Subject: Best Approach for Database Access?
> > Importance: High
> >
> >
> > Could you kindly provide guidance on the best approach to implement
> > database
> > access.?
> > I have encountered various schools of thought in my reading, that
suggest
> > extracting the business logic and database code from the jsp into a jsp
> > bean
> > or ejb or servlet.
> >
> > Thanks,
> >
> > Paul Idusogie
> > Technical Architect
> > Consulting Services
> > Stellent Inc.
> >  Golden Triangle Drive
> > Eden Prairie, MN 55104
> > Desk: 952.656.2755
> > Fax: 952.903.2115
> > Email: [EMAIL PROTECTED]
> > website: http://www.stellent.com
> >
> > --
> > To unsubscribe, e-mail:
> > 
> > For additional commands, e-mail:
> > 
> >
> >
> > --
> > To unsubscribe, e-mail:
> > 
> > For additional commands, e-mail:
> > 
>
> --
> To unsubscribe, e-mail:

> For additional commands, e-mail:

>


--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




Re: Anyway to pass a parameter with the struts-config.xml file to an action?

2002-01-30 Thread Francisco Hernandez

taken from: http://husted.com/about/scaffolding/catalog.htm





and just use mapping.getParameter()


- Original Message -
From: "Antony Stace" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Wednesday, January 30, 2002 5:04 PM
Subject: Anyway to pass a parameter with the struts-config.xml file to an
action?


> Hi
>
> Is there anyway in the struts-config.xml file to specify a parameter and
> its value to be passed to an action, ie I am looking for something like
> 
>
>   type="com.bogusdomain.bogusproject.ListDepartments"
>   name="departmentsForm" >
>   
>   
>
>
> Is there some mechanism to do this using the struts-config.xml file?
>
>
> --
>
>
> Cheers
>
> Tony
> -
>
>
> _
> Do You Yahoo!?
> Get your free @yahoo.com address at http://mail.yahoo.com
>
>
> --
> To unsubscribe, e-mail:

> For additional commands, e-mail:

>


--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




Re: Model Persistence Survey

2002-01-24 Thread Francisco Hernandez

thanks for the clearification of that, I thought had used a DAO to implement
the persistence so that itself was the persistence mechanism
- Original Message -
From: "Keith Chew" <[EMAIL PROTECTED]>
To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
Sent: Wednesday, January 23, 2002 11:55 AM
Subject: RE: Model Persistence Survey


> Hi
>
> FYI, Data Access Objects (DAOs) is not a persistence mechansim, it's a
> design pattern used to encapsulate the mechanism.  The mechanism itself
can
> be JDBC (in the example you have given), Castor JDO, Sun JDO, or any other
> O/R mapping tools' API.
>
> Keith
>
> -Original Message-
> From: Francisco Hernandez [mailto:[EMAIL PROTECTED]]
> Sent: Thursday, 24 January 2002 8:23 a.m.
> To: Struts Users Mailing List
> Subject: Re: Model Persistence Survey
>
>
> DAOs are another way to do it, but using a framework is much better imo
>
>
http://java.sun.com/blueprints/code/jps13/src/com/sun/j2ee/blueprints/catalo
> g/dao/CatalogDAOImpl.java.html
>
>
> - Original Message -
> From: "Christopher Barham" <[EMAIL PROTECTED]>
> To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
> Sent: Wednesday, January 23, 2002 1:51 AM
> Subject: Re: Model Persistence Survey
>
>
> >
> > Hi,
> > I really think that Java Data Objects has a big future... see JSR012:
> > http://www.jcp.org/aboutJava/communityprocess/first/jsr012/index.html
> > Currently we are evaluating Forte Transparent Persistence, which is a
> > physical incarnation of Java Data Objects - see
> > http://java.sun.com/products/jdbc/related.html and
> > http://access1.sun.com/jdo/
> > The Forte stuff (Transparent Persistence) is detailed here:
> > http://www.sun.com/forte/ffj/resources/articles/jdo.html
> >
> > So far it is working very well - Although I have some qualms about byte
> > code enhancement as the mechanism to get the TP activity into your
> classes.
> > If nothing else, it gives you an 'unknown area' to worry about in your
> code
> > - For every simple code bug so far we have immediately assumed it is to
do
> > with the 'magic' of TP messing something up - however, in every case,
(so
> > far), it has been a simple non-TP coding error that was the root cause -
> it
> > just took longer to track down :-)
> >
> > For quick and easy database adhoc code, I have also taken to using
> TableGen
> > now and then to ease generation of the JDBC aware base classes  - it
gives
> > connection pooling and so on  It's fairly old, but works nicely with
a
> > minimum of fuss.  The only slight problem was that with Oracle you need
to
> > explicitly close the Statement in the disconnect method of the generated
> > class DatabaseAccess - it took a bit of head scratching to work out
where
> > the dreaded "too many open cursors" error was coming from :-(
> > http://freespace.virgin.net/joe.carter/TableGen/
> >
> > Regards
> >
> > Chris
> >
> >
> >
> >
> >
> >
> >
> > Struts
> > NewsgroupTo:
> [EMAIL PROTECTED]
> > (@Basebeans.ccc:
> > om)  Persistence Survey
> >
> > 22/01/02
> > 23:55
> > Please
> > respond to
> > "Struts Users
> > Mailing List"
> >
> >
> >
> >
> >
> >
> > Subject: Re: Model Persistence Survey
> > From: Vic Cekvenich <[EMAIL PROTECTED]>
> >  ===
> > Oh, yeah, Castor gets votes.
> >
> > Vic Cekvenich wrote:
> >
> > > I do not like surveys. But I would like to get a feel for "How are
> > > people implementing the model persistence". Sort of a popularity
> > > contest. Also if you did not like it, how would you do it next time.
> > > So if you would please respond.
> > >
> > > How do you implement model persistence to a SQL DB.
> > >
> > > EJB (even for non-midleware needed webapps)
> > >
> > > Expreso features
> > >
> > > JDBC ResultSet w/ own base class
> > >
> > > i Village /Tourge
> > >
> > > JDBC RowSet
> > > (
> >
>
http://download-west.oracle.com/otndoc/oracle9i/901_doc/java.901/a90211/rows
> et.htm
> > )
> > >
> > >
> > > Other?
> > > Is there another way?
> > >
>

Re: Model Persistence Survey

2002-01-23 Thread Francisco Hernandez

DAOs are another way to do it, but using a framework is much better imo

http://java.sun.com/blueprints/code/jps13/src/com/sun/j2ee/blueprints/catalo
g/dao/CatalogDAOImpl.java.html


- Original Message -
From: "Christopher Barham" <[EMAIL PROTECTED]>
To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
Sent: Wednesday, January 23, 2002 1:51 AM
Subject: Re: Model Persistence Survey


>
> Hi,
> I really think that Java Data Objects has a big future... see JSR012:
> http://www.jcp.org/aboutJava/communityprocess/first/jsr012/index.html
> Currently we are evaluating Forte Transparent Persistence, which is a
> physical incarnation of Java Data Objects - see
> http://java.sun.com/products/jdbc/related.html and
> http://access1.sun.com/jdo/
> The Forte stuff (Transparent Persistence) is detailed here:
> http://www.sun.com/forte/ffj/resources/articles/jdo.html
>
> So far it is working very well - Although I have some qualms about byte
> code enhancement as the mechanism to get the TP activity into your
classes.
> If nothing else, it gives you an 'unknown area' to worry about in your
code
> - For every simple code bug so far we have immediately assumed it is to do
> with the 'magic' of TP messing something up - however, in every case, (so
> far), it has been a simple non-TP coding error that was the root cause -
it
> just took longer to track down :-)
>
> For quick and easy database adhoc code, I have also taken to using
TableGen
> now and then to ease generation of the JDBC aware base classes  - it gives
> connection pooling and so on  It's fairly old, but works nicely with a
> minimum of fuss.  The only slight problem was that with Oracle you need to
> explicitly close the Statement in the disconnect method of the generated
> class DatabaseAccess - it took a bit of head scratching to work out where
> the dreaded "too many open cursors" error was coming from :-(
> http://freespace.virgin.net/joe.carter/TableGen/
>
> Regards
>
> Chris
>
>
>
>
>
>
>
> Struts
> NewsgroupTo:
[EMAIL PROTECTED]
> (@Basebeans.ccc:
> om) 
> 22/01/02
> 23:55
> Please
> respond to
> "Struts Users
> Mailing List"
>
>
>
>
>
>
> Subject: Re: Model Persistence Survey
> From: Vic Cekvenich <[EMAIL PROTECTED]>
>  ===
> Oh, yeah, Castor gets votes.
>
> Vic Cekvenich wrote:
>
> > I do not like surveys. But I would like to get a feel for "How are
> > people implementing the model persistence". Sort of a popularity
> > contest. Also if you did not like it, how would you do it next time.
> > So if you would please respond.
> >
> > How do you implement model persistence to a SQL DB.
> >
> > EJB (even for non-midleware needed webapps)
> >
> > Expreso features
> >
> > JDBC ResultSet w/ own base class
> >
> > i Village /Tourge
> >
> > JDBC RowSet
> > (
>
http://download-west.oracle.com/otndoc/oracle9i/901_doc/java.901/a90211/rows
et.htm
> )
> >
> >
> > Other?
> > Is there another way?
> >
> >
> > Right now I like RowSet, but what is popular out there?
> >
> >
> >
> > Currious, TIA
> > Vic
> >
> > ps: maybe one day those "hooks" grow on Sturts, so Struts takes a stance
> > on a good aproach for model persistance
> >
>
>
> --
> To unsubscribe, e-mail:   <
> mailto:[EMAIL PROTECTED]>
> For additional commands, e-mail: <
> mailto:[EMAIL PROTECTED]>
>
>
>
>
>
> --
> To unsubscribe, e-mail:

> For additional commands, e-mail:

>


--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




Re: Help in determining the language/protocol used to build the controls.

2002-01-18 Thread Francisco Hernandez

I coud have sworn that iframes worked with Mozilla/Netscape6
- Original Message -
From: "Jorge Ruiz (SX)" <[EMAIL PROTECTED]>
To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
Sent: Friday, January 18, 2002 7:16 PM
Subject: Re: Help in determining the language/protocol used to build the
controls.


> This is a fine example of javascript, dhtml and iframes (an IE exclusive
> html tag). That is why it only runs in IE. I guess it uses the complete
> arsenal of IE only dhtml features. I would say this is OK if you are
> developing an Intranet application, but I find it amazing that a company
> like SAP restricts users of others browsers in the web.
>
> You can find more information of IE specific features in MSDN.
>
> Cheers,
>
> Jorge
> - Original Message -
> From: "Ramanswamy, Muthu" <[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]>
> Sent: Friday, January 18, 2002 9:46 PM
> Subject: Help in determining the language/protocol used to build the
> controls.
>
>
> > Hi All-
> >
> > Can someone tell me how to build the page similar to the one shown on
the
> > SAP Internet Demo Site? I am more interested to know what tools or
> language
> > is used to build those type of controls in the page.
> >
> > Any "input" on those type of controls will help.
> >
> > I noticed the page works only in IE5.5+
> >
> > The link I am talking about is :
> >
> >
>
http://ideswps02.sap-ag.de/login.html?~login=idesdemo&~password=welcome&~lan
> > guage=en
> >
> > It should bring you to the Orders Page. Clink on any of the order link
in
> > the Orders Page. You will see another page with controls for tables,
> > buttons, too bar, hints etc.,
> >
> > Any input would be appreciated.
> >
> > ___
> > Muthu Ramaswamy
> >
> >
> > --
> > To unsubscribe, e-mail:
> 
> > For additional commands, e-mail:
> 
>
>
> --
> To unsubscribe, e-mail:

> For additional commands, e-mail:

>


--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




Re: Session size management with Struts

2002-01-14 Thread Francisco Hernandez

under what conditions would you store formBeans under session or request
scopes?
same for actions.. when would you put the action in request or session
scopes?
- Original Message -
From: "Ted Husted" <[EMAIL PROTECTED]>
To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
Sent: Monday, January 14, 2002 10:16 AM
Subject: Re: Session size management with Struts


> You can make request the default scope for form beans in the web.xml
>
> 
>   mapping
>
> org.apache.struts.action.RequestActionMapping
> 
>
>
http://jakarta.apache.org/struts/api-1.0/org/apache/struts/action/ActionServ
let.html
>
> If you do need to use session beans for something, they are stored under
> the name specified in the struts-config.xml, and can be removed like any
> other attribute.
>
> -- Ted Husted, Husted dot Com, Fairport NY USA.
> -- Building Java web applications with Struts.
> -- Tel +1 585 737-3463.
> -- Web http://www.husted.com/struts/
>
>
> Olivier Dinocourt wrote:
> >
> > Hello list
> >
> > Since I've been developing webapps, I've always been told that the HTTP
> > session should be kept as small as possible. IBM suggests a size of 4kb.
> > Struts seems to put form beans into the HTTP session, and one often
needs
> > more than one form bean for a webapp. After browsing the Struts docs, it
> > seems that there is no mechanism to automatically or manually clean the
> > session once a form bean isn't needed anymore.
> >
> > Does someone have any feedback on the subject ? Is session size so
> > important, or may I simply ignore it (although it doesn't like a good
idea)
> > ? Does Struts include (or is it planned to include) some feature to
clean
> > the session's content easily ?
> >
> > olivier
> >
> > --
> > To unsubscribe, e-mail:

> > For additional commands, e-mail:

>
> --
> To unsubscribe, e-mail:

> For additional commands, e-mail:

>


--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




Re: Advice needed on Stuts versus Struts/Expresso

2002-01-10 Thread Francisco Hernandez

i suggest you guys should put that document on the Docs section of the
Expresso-complete jar.. its pretty helpful in grasping a larger view of the
pieces of this Expresso puzzle ;-)
- Original Message -
From: "Sandra Cann" <[EMAIL PROTECTED]>
To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
Sent: Thursday, January 10, 2002 5:00 PM
Subject: RE: Advice needed on Stuts versus Struts/Expresso


> Good point. I was reading today about companies on tighter budgets with
the
> economic situation looking to open source software more to fulfill their
> needs.
>
> I wonder if anyone on this list has made a management presentation for
> struts or struts/expresson and would be willing to contribute material to
a
> generic version that other people can use? If so please email me offlist
> with any attachments you have for such presentations and I'll remove any
> company specific stuff to make it generic - with credits to all people
> contributing indicated in the document. I'll ask on the opensource list at
> jcorporate and see who has document to contribute as well. (Ted maybe we
can
> collaborate on this as well so the resulting document is published on both
> sites?)
>
> Perhaps a similiar format as the technical presentation which one of our
> community members contributed:
> http://www.jcorporate.com/econtent/Content.do?state=resource&resource=742.
>
> What do you think?
>
> Sandra
>
> > -Original Message-
> > From: Arun Bommannavar [mailto:[EMAIL PROTECTED]]
> > Sent: Thursday, January 10, 2002 6:36 PM
> > To: Struts Users Mailing List
> > Subject: Re: Advice needed on Stuts versus Struts/Expresso
> >
> >
> > Sandra,
> >
> > You made quite vaild points (1,2,3). Its just reality. Having agreed to
> > that, let me throw in my $0.02.
> >
> > Todays economic situation has hurt most companies so badly that most of
> > them have frozen all kinds of expenditure (travel, new purchases etc).
> > These are the same companies are trying to find a way out of the rut by
> > looking into the promises of new technologies also. Its a catch22 issue.
> > They can't really make a big time transition without seeing some
> > immediate returns.
> >
> > In most cases, nowadays the push for newer technologies is *not* coming
> > from management, but is from little guys who are essentially at the
> > bottom of the ladder. If they need to show 'new technology promises'
> > then they need to get some sort of support. As someone pointed out
> > recently (I guess he is a consultant), consultants do not have time to
> > evaluate newer technologies for an extended time. I say, its just not
> > consultants, but anybody who likes to convince their managemnt of the
> > values of newer technologies.
> >
> > Regards
> > Arun
> >
> >
> >
> >
> >
> >
> > Sandra Cann wrote:
> > >
> > > Larry,
> > >
> > > Like the Struts developer community, the Expresso community is
> > comprised of
> > > contributors from all over the globe who have nothing to do
> > with our support
> > > services. These individuals have worked together on
> > contributions and have
> > > definitely made a huge impact on what Expresso is today - some
> > having been
> > > involved from very early on. I am convinced that the real
> > "value" of an open
> > > source project comes from the strength of its community and the
> > community
> > > process that results.
> > >
> > > Premium support is a loss leader and is not where we try to
> > make money. It
> > > is offered as a courtesy because of our experience with larger
> > corporation
> > > needs:
> > > 1. some have company policies prohibiting using products
> > without support;
> > > 2. some have production environments requiring guaranteed
> > support response
> > > times;
> > > 3. some want more handholding to get up to speed quicker
> > >
> > > This is a small percentage of companies, as most do not need
> > premium support
> > > (PS) with the effectiveness of community support on our open source
> > > projects.  For those in Dilbert worlds PS keeps the managers
> > assured. :).
> > >
> > > Sandra
> > > [EMAIL PROTECTED]
> > >
> > > > -Original Message-
> > > > From: Larry Maturo [mailto:[EMAIL PROTECTED]]
> > > > Sent: Wednesday, January 09, 2002 11:26 AM
> > > > To: 'Struts Users Mailing List'
> > > > Subject: RE: Advice needed on Stuts versus Struts/Expresso
> > > >
> > > >
> > > > Stephen Owens wrote about Expresso:
> > > > ...
> > > > The mailing list is not as
> > > > amazingly helpful as the Struts mailing list, but it is
> > pretty good and
> > > > will hopefully keep getting better.
> > > > ...
> > > >
> > > > My question is, is it really true that it will keep getting
> > better, given
> > > > that the company responsible for Expresso is trying to make money by
> > > > supporting it?  This implies that the people most knowledgeable
about
> > > > Expresso has an incentive not to support the mailing list.  Or am I
> > > > just being paranoid?  Note that I have not used Expresso, or
> > seen the

Re: Advice needed on Stuts versus Struts/Expresso

2002-01-10 Thread Francisco Hernandez

is it possible to use DBObjects and not use other parts of expresso such as
Jobs, Controllers, etc?



- Original Message -
From: "Peter Pilgrim" <[EMAIL PROTECTED]>
To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
Sent: Thursday, January 10, 2002 10:35 AM
Subject: Re: Advice needed on Stuts versus Struts/Expresso


>
> Yes you can because you access input, output, block in the JSP
> using the custom tags. Because an expresso controller writes a controller
> response object to the request scope. The input value can also read back a
> controller requests.
>
> But I do not why you cannot reuse old ActionForm that you have already
written,
> though. The expresso controller does not expose the action form bean
> as you and I know in the "actionPerformed" method. On the otherhand
> you gain automatically action command dispatch handling.
> It was / is issue for the lead developer. The bone of contention
> being transplanting an old Struts example into an Expresso one. It should
> be made easier or as easy as possible. I would Expresso 4.0 is still new,
> and these issues dont get played until someone try to build
> an application with the intention of going __live__.
>
> 0.02P
>
> --
> Peter Pilgrim ++44 (0)207-545-9923
>
>  Swamped under electionic
mails
>
>
> -------- Message
History 
>
>
> From: "Francisco Hernandez" <[EMAIL PROTECTED]> on 10/01/2002
10:05 PST
>
> Please respond to "Struts Users Mailing List"
<[EMAIL PROTECTED]>
>
> To:   "Struts Users Mailing List" <[EMAIL PROTECTED]>
> cc:
> Subject:  Re: Advice needed on Stuts versus Struts/Expresso
>
>
> what do you use instead of ActionForm when using expresso/struts?
>
> when doing expresso/struts do you still use Input/Output/Block/etc
objects?
>
> - Original Message -
> From: "Peter Pilgrim" <[EMAIL PROTECTED]>
> To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
> Sent: Thursday, January 10, 2002 9:43 AM
> Subject: Re: Advice needed on Stuts versus Struts/Expresso
>
>
> >
> > Expresso helpsa lot if you have been building action command mapping
> > in every single Action that you have written.
> >
> > String action = form.getAction()
> > if ( action.equalsIgnoreCase("prompt")) {
> > ...
> > return mapping.findFrward("prompt);
> > }
> > else if ( action.equalsIgnoreCase("add")) {
> > ...
> > return mapping.findFrward("add");
> > }
> > else if ( action.equalsIgnoreCase("remove")) {
> > ...
> > return mapping.findFrward("remove");
> > }
> >
> > The ActionForm bean is redundant because Expresso
> > has its own controller element architecture. The powerful
> > feature to use Expresso would be the ease-of-use of its
> > database objects, especially if you work database-driven
> > applications. It is missing communication with store procedures
> > though.
> >
> > HTH
> > --
> > Peter Pilgrim ++44 (0)207-545-9923
> >
> >  Swamped under electionic
> mails
> >
> >
> >  Message
> History 
> >
> >
> > From: [EMAIL PROTECTED] on 09/01/2002 10:58 EST
> >
> > Please respond to "Struts Users Mailing List"
> <[EMAIL PROTECTED]>
> >
> > To:   [EMAIL PROTECTED]
> > cc:
> > Subject:  Advice needed on Stuts versus Struts/Expresso
> >
> >
> >
> > Hi all,
> >
> > I've gotten a full app to work with Struts and have a good understanding
> > of how things are supposed to be done and work.
> >
> > Now I am looking at possibly using Expresso to speed development.
> >
> > In anyone's experience what would I lose by moving to Expresso.  I can
> > see how it would speed development, but do I lose anything that struts
> > gives me?  Is there anything that I would come across that I could not
> > do with Expresso that I could do with Struts?
> >
> > I've read all the JCorporate docs on the struts integration and such,
> > but would like to draw on the experience of those more, well
> > experienced.
> >
> > I guess I am at the point where I understand Struts so I am hesitant to
> > move on to something else if I will just be coming back to struts lat

Re: Please advice why to do mapping as /do/* rather than *.do

2002-01-10 Thread Francisco Hernandez

it just looks cooler :)

although doing foo.com/myApp/do/userReg instead of foo.com/myApp/userReg is
even cooler..

hehe

ill have to see if /* works..

- Original Message -
From: "Anil Mandava" <[EMAIL PROTECTED]>
To: "'Struts Users Mailing List'" <[EMAIL PROTECTED]>
Sent: Thursday, January 10, 2002 10:31 AM
Subject: Please advice why to do mapping as /do/* rather than *.do


> I have seen references to avoid *.do kind of mapping, and to instead map
> with something like /do/*.
> I could not find out the reasoning behind it.
> Could anyone please explain or point me to any article that covers it.
>
> Thanx in advance,
> anil
>
> --
> To unsubscribe, e-mail:

> For additional commands, e-mail:

>


--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




Re: Advice needed on Stuts versus Struts/Expresso

2002-01-10 Thread Francisco Hernandez

what do you use instead of ActionForm when using expresso/struts?

when doing expresso/struts do you still use Input/Output/Block/etc objects?

- Original Message -
From: "Peter Pilgrim" <[EMAIL PROTECTED]>
To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
Sent: Thursday, January 10, 2002 9:43 AM
Subject: Re: Advice needed on Stuts versus Struts/Expresso


>
> Expresso helpsa lot if you have been building action command mapping
> in every single Action that you have written.
>
> String action = form.getAction()
> if ( action.equalsIgnoreCase("prompt")) {
> ...
> return mapping.findFrward("prompt);
> }
> else if ( action.equalsIgnoreCase("add")) {
> ...
> return mapping.findFrward("add");
> }
> else if ( action.equalsIgnoreCase("remove")) {
> ...
> return mapping.findFrward("remove");
> }
>
> The ActionForm bean is redundant because Expresso
> has its own controller element architecture. The powerful
> feature to use Expresso would be the ease-of-use of its
> database objects, especially if you work database-driven
> applications. It is missing communication with store procedures
> though.
>
> HTH
> --
> Peter Pilgrim ++44 (0)207-545-9923
>
>  Swamped under electionic
mails
>
>
>  Message
History 
>
>
> From: [EMAIL PROTECTED] on 09/01/2002 10:58 EST
>
> Please respond to "Struts Users Mailing List"
<[EMAIL PROTECTED]>
>
> To:   [EMAIL PROTECTED]
> cc:
> Subject:  Advice needed on Stuts versus Struts/Expresso
>
>
>
> Hi all,
>
> I've gotten a full app to work with Struts and have a good understanding
> of how things are supposed to be done and work.
>
> Now I am looking at possibly using Expresso to speed development.
>
> In anyone's experience what would I lose by moving to Expresso.  I can
> see how it would speed development, but do I lose anything that struts
> gives me?  Is there anything that I would come across that I could not
> do with Expresso that I could do with Struts?
>
> I've read all the JCorporate docs on the struts integration and such,
> but would like to draw on the experience of those more, well
> experienced.
>
> I guess I am at the point where I understand Struts so I am hesitant to
> move on to something else if I will just be coming back to struts later.
>
> My needs rotate mostly around rapid development of applications.
>
> Thanks much for this information and all the previous help in getting me
> going with struts.
>
> PS. For anyone starting with struts, get Ted Husted's struts-catalog and
> read it once a day while you are learning struts.  In the beginning you
> may not understand it, but as the days go on, more and more will help
> you out.  (Thanks Ted)
>
>
> Bill Chmura
> Ensign-Bickford Industries, Inc.
> Information Technologies Department
>
>
>
> --
> To unsubscribe, e-mail:

> For additional commands, e-mail:

>
>
>
>
>
>
> --
>
> This e-mail may contain confidential and/or privileged information. If you
are not the intended recipient (or have received this e-mail in error)
please notify the sender immediately and destroy this e-mail. Any
unauthorized copying, disclosure or distribution of the material in this
e-mail is strictly forbidden.
>
>
>
> --
> To unsubscribe, e-mail:

> For additional commands, e-mail:

>


--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




Re: Advice needed on Stuts versus Struts/Expresso

2002-01-09 Thread Francisco Hernandez

I've been looking at Expresso today, I was wondering for UI creation do you
guys use struts tags or expresso tags?


- Original Message -
From: "Michael Nash" <[EMAIL PROTECTED]>
To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
Sent: Wednesday, January 09, 2002 3:55 PM
Subject: RE: Advice needed on Stuts versus Struts/Expresso


> Bill:
>
> You shouldn't lose a thing by using Struts/Expresso in combination, as
we've
> incorporated the entire Struts framework into Expresso. On the flip side,
> you would gain a powerful object/relational mapping layer, background job
> queuing/scheduling, auto-generated UI's for prototyping, XML UI generation
> (w/optional XSLT) and a bunch of other good stuff.
>
> We've extended the configuration to support a seperate struts-config.xml
for
> each application, and automatically merge them at startup, but basically
> everything you are doing now in Struts you can do in Expresso, plus what
> Expresso adds.
>
> Of course, I'm a bit biased, I'm lead developer on Expresso. :-) We're
> currently at release 1.0 of Struts, but upgrades are indeed in the works.
> Have a look at the doc on the site as well, and don't miss the Expresso
> Developer's Guide - a lot of good material is in there, but people don't
> seem to find it sometimes. 200+ pages of doc in total.
>
> Regards,
>
> Mike
>
> > -Original Message-
> > From: [EMAIL PROTECTED]
> > [mailto:[EMAIL PROTECTED]]
> > Sent: Wednesday, January 09, 2002 10:59 AM
> > To: [EMAIL PROTECTED]
> > Subject: Advice needed on Stuts versus Struts/Expresso
> >
> >
> >
> > Hi all,
> >
> > I've gotten a full app to work with Struts and have a good understanding
> > of how things are supposed to be done and work.
> >
> > Now I am looking at possibly using Expresso to speed development.
> >
> > In anyone's experience what would I lose by moving to Expresso.  I can
> > see how it would speed development, but do I lose anything that struts
> > gives me?  Is there anything that I would come across that I could not
> > do with Expresso that I could do with Struts?
> >
> > I've read all the JCorporate docs on the struts integration and such,
> > but would like to draw on the experience of those more, well
> > experienced.
> >
> > I guess I am at the point where I understand Struts so I am hesitant to
> > move on to something else if I will just be coming back to struts later.
> >
> > My needs rotate mostly around rapid development of applications.
> >
> > Thanks much for this information and all the previous help in getting me
> > going with struts.
> >
> > PS. For anyone starting with struts, get Ted Husted's struts-catalog and
> > read it once a day while you are learning struts.  In the beginning you
> > may not understand it, but as the days go on, more and more will help
> > you out.  (Thanks Ted)
> >
> >
> > Bill Chmura
> > Ensign-Bickford Industries, Inc.
> > Information Technologies Department
> >
> >
> >
> > --
> > To unsubscribe, e-mail:
> 
> For additional commands, e-mail:
> 
>
>
> --
> To unsubscribe, e-mail:

> For additional commands, e-mail:

>


--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




Re: Looking for a clean required-bean handler

2001-12-31 Thread Francisco Hernandez

this sounds something like the "Pull" model where the jsps "Pull" the data
they need rather then the "Push" model where the data is "Pushed" into the
jsp.. hrmm..
checkout http://sourceforge.net/projects/webwork
its "Pull HMVC" its worth a shot if i correctly understand what your trying
to accomplish
- Original Message -
From: "Reid Pinchback" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Monday, December 31, 2001 12:03 PM
Subject: Looking for a clean required-bean handler


>
> Hi all!
>
> The more I did into Struts the more I like it.  I have noticed
> something that has me scratching my head a bit, wondered
> if anybody else had come up with a clean solution.
>
> Struts has a nice clean approach to organizing code and
> behaviour after you click on something.  In other words, if
> I have a form then I have a nice way in Struts to associate
> the handler with the form.  If I have a URL then there are
> decent ways that I can maintain the destinations in the
> controller instead of in the html/jsp pages.  All nice.
>
> What I don't see is a straight-forward way of indicating
> what I want *before* going to a JSP page.
>
> Ok, I know... that probably sounds a little odd.  My point
> is simply this: my JSP pages are maintainable because
> they, as view artifacts, don't know much about each other.
> If I want may action classes to be just as maintainable
> then they can't know much about each other either.
>
> That is the thing I don't like about actions at the moment.
> The action figures out how to process the incoming data
> from the request *and* prepare the page/session/whatever
> context before going to the next page.  An action can only
> do that if it *knows* what the next page will require.  That
>  means there is less point in having that transition information
> explicitly captured in struts-config.xml because I might have
> to know the same information implicitly in the action code.
>
> So, here is what I want, and I'm hoping somebody has
> already found a clean approach for it.  Instead of only
> writing "process-X" actions, I also want to write some
> "prepare-for-Y" actions.  Then any JSP page has
> potentially two actions; one executed as I head
> into the page (e.g. to prep dynamic content), the other
> executed as I head out of the page (e.g. for user response).
> The clean way I can think of is to have some kind of
> action that iterates over the beans that will be needed
> by the next page, i.e.:
>
> - step 1, if I don't have a UserBean, get me a UserBean
> - step 2, if I don't have a UserPrefsBean, get me one
>   (etc)
>
> Then, you'd need some way of getting a controller-mediated
> way of recognizing that some particular action must be
> invoked to get a UserBean, etc., and then returning control
> back to the "prep" action.  Once the prep action has
> everything it needs, it forwards to the next step.
>
> Is this crazy?  Sane but not done before?  Sane and
> done already?
>
> Inquiring minds want to know!
>
> Thanks Reid
>
>
>
>
>
>
>
> -
> Do You Yahoo!?
> Send your FREE holiday greetings online at Yahoo! Greetings.


--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




Validator type example date not working? bug?

2001-12-30 Thread Francisco Hernandez

Hi, I've been trying out David Winterfeldt's Validator and am using the last
release that supports struts 1.0 validator20010702.zip (validator.war) with
the "type" example thats in there I noticed that the example doesnt seem to
correctly validate dates correctly ie: 03-17-1990 doesnt validate.. i was
wondering if this was a known bug.. or if im just doing something wrong




--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




What does CRUD mean?

2001-11-26 Thread Francisco Hernandez

Ive seen people use the word (or acronym) CRUD, what does this mean?



Anyone know of a good production-ready Struts-based Shopping Cart?

2001-11-19 Thread Francisco Hernandez

Anyone know of a good opensource production-ready Struts-based Shopping
Cart?


--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




Re: where should validation happen?

2001-10-18 Thread Francisco Hernandez

ActionErrors validate(ActionForm form,HttpServletRequest request)

in perform():
 ActionErrors errors = validate(addressForm,request);
if(!errors.empty()) {
saveErrors(request, errors);
forward = "editAddress";
} else {
// continue action..
}

following your method ive done something like the following..
I was thinking about the validation using Javascript but ive decided against
it, since one can turn off javascript on the browser..
- Original Message -
From: "Robert Parker" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Thursday, October 18, 2001 4:07 PM
Subject: Re: where should validation happen?


> Essentially correct. Thus javascript on the browser ensures that a date is
a
> date, a number a number etc. I like this approach as I can hook the
> validation code into the onchange event of the form fields and hence the
> user gets immediate error feedback.
>
> In my action classes, they assemble the request data back into generic
> non-web specific beans. These beans then get passed to methods of the
> business logic classes. Now my action classes are coded to trap two types
of
> errors - application errors and system errors. A system error would be
> things like the database going down. An application error would be
something
> like a dealer going over his dealing limit etc. These errors get added to
> the response with the saveerrors() method call...
>
> regards
>
> Rob
> - Original Message -
> From: "Francisco Hernandez" <[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]>
> Sent: Friday, October 19, 2001 7:55 AM
> Subject: Re: where should validation happen?
>
>
> > so basically i take it as if you dont do anything in your form beans
> > validate method?
> >
> > and you handle all errors in your actions perform method and
saveErrors()
> > and forward back to the input screen?
> >
> >
> >
> > - Original Message -
> > From: "Robert Parker" <[EMAIL PROTECTED]>
> > To: <[EMAIL PROTECTED]>
> > Sent: Wednesday, October 17, 2001 9:35 PM
> > Subject: Re: where should validation happen?
> >
> >
> > > From my experience there are some subtle details when using the
> validate()
> > > method of the form bean...
> > >
> > > The validate method is called unless you set the validate attribute in
> the
> > > struts config to false.
> > >
> > > If an error is found by your validate method, struts seems to delegate
> > back
> > > to the input (jsp) as specified in the config, hence your action
> handlers
> > > perform method is not called.
> > >
> > > My preference is to perform basic field/type validation in the browser
> > using
> > > javascript, and business type validation I handle via beans called
from
> my
> > > action handler class.
> > >
> > > Letting struts call the validate() method for me has given me
problems -
> > as
> > > I often have my action handlers populate say collections of lookup
> values
> > > for selection lists etc. Hence if struts does not call my perform
> method,
> > my
> > > selection lists will be empty. Note I discovered this after I had
> designed
> > > my action handlers this way...
> > >
> > > regards
> > >
> > > Rob
> > > - Original Message -
> > > From: "Francisco Hernandez" <[EMAIL PROTECTED]>
> > > To: <[EMAIL PROTECTED]>
> > > Sent: Thursday, October 18, 2001 10:06 AM
> > > Subject: Re: where should validation happen?
> > >
> > >
> > > > im sorry thats the SaveRegistrationAction not SaveSubscriptionAction
> > > > - Original Message -
> > > > From: "Francisco Hernandez" <[EMAIL PROTECTED]>
> > > > To: <[EMAIL PROTECTED]>
> > > > Sent: Wednesday, October 17, 2001 5:01 PM
> > > > Subject: where should validation happen?
> > > >
> > > >
> > > > > in the struts example that comes with the stable release of struts
> 1.0
> > > > there
> > > > > is a SaveSubscribtionAction and it does some validation of the
> > > > > SubscribtionForm but theres also validation in the validate()
method
> > of
> > > > the
> > > > > SubscribtionForm, so my question is, whats the difference between
> > using
> > > > the
> > > > > forms validation() method and validating data in the Action?
> > > > >
> > > > >
> > > >
> > > >
> > >
> >
> >
>




Re: where should validation happen?

2001-10-18 Thread Francisco Hernandez

so basically i take it as if you dont do anything in your form beans
validate method?

and you handle all errors in your actions perform method and saveErrors()
and forward back to the input screen?



- Original Message -
From: "Robert Parker" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Wednesday, October 17, 2001 9:35 PM
Subject: Re: where should validation happen?


> From my experience there are some subtle details when using the validate()
> method of the form bean...
>
> The validate method is called unless you set the validate attribute in the
> struts config to false.
>
> If an error is found by your validate method, struts seems to delegate
back
> to the input (jsp) as specified in the config, hence your action handlers
> perform method is not called.
>
> My preference is to perform basic field/type validation in the browser
using
> javascript, and business type validation I handle via beans called from my
> action handler class.
>
> Letting struts call the validate() method for me has given me problems -
as
> I often have my action handlers populate say collections of lookup values
> for selection lists etc. Hence if struts does not call my perform method,
my
> selection lists will be empty. Note I discovered this after I had designed
> my action handlers this way...
>
> regards
>
> Rob
> - Original Message -
> From: "Francisco Hernandez" <[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]>
> Sent: Thursday, October 18, 2001 10:06 AM
> Subject: Re: where should validation happen?
>
>
> > im sorry thats the SaveRegistrationAction not SaveSubscriptionAction
> > - Original Message -
> > From: "Francisco Hernandez" <[EMAIL PROTECTED]>
> > To: <[EMAIL PROTECTED]>
> > Sent: Wednesday, October 17, 2001 5:01 PM
> > Subject: where should validation happen?
> >
> >
> > > in the struts example that comes with the stable release of struts 1.0
> > there
> > > is a SaveSubscribtionAction and it does some validation of the
> > > SubscribtionForm but theres also validation in the validate() method
of
> > the
> > > SubscribtionForm, so my question is, whats the difference between
using
> > the
> > > forms validation() method and validating data in the Action?
> > >
> > >
> >
> >
>




Re: Struts DB example

2001-10-03 Thread Francisco Hernandez
Title: RE: Struts DB example



check out http://java.sun.com/j2ee/blueprints/design_patterns/data_access_object/index.html
lots of people like use a DAO as illustrated in 
that page.
for larger source check out this DAO 
too:
http://java.sun.com/j2ee/blueprints/jps11/src/com/sun/j2ee/blueprints/customer/order/dao/OrderDAOOracle.java.html

  - Original Message - 
  From: 
  Bill G 
  
  To: [EMAIL PROTECTED] 
  
  Sent: Wednesday, October 03, 2001 5:19 
  PM
  Subject: RE: Struts DB example
  
  
  Bret,
   
  Sorry, I should be more specific.
   
  The sample app that 
  you and Francisco refer to does not illustrate connecting to a real RDMS 
  nor does not illustrate connection 
  pooling, where the connection logic goes 
  etc...
   
  That's the kind of 
  stuff I'm interested in. A sample struts app that works with a real 
  RDMS and illustrates CRUD would be 
  great.
   
   
  
-Original Message-From: Brett Porter 
[mailto:[EMAIL PROTECTED]]Sent: Wednesday, October 03, 
2001 4:53 PMTo: 
'[EMAIL PROTECTED]'Subject: RE: Struts DB 
example
have a closer look. 
-Original Message- From: 
Bill G [mailto:[EMAIL PROTECTED]] 
Sent: Thursday, 4 October 2001 9:50 AM To: [EMAIL PROTECTED] Subject: 
RE: Struts DB example 
Francisco, 
That is not a database example. 
Thanks though. 
-Original Message- From: 
    Francisco Hernandez [mailto:[EMAIL PROTECTED]] 
Sent: Wednesday, October 03, 2001 4:43 PM To: [EMAIL PROTECTED]; [EMAIL PROTECTED] 
Subject: Re: Struts DB example 
check out the struts example, its very simple 
- Original Message - From: 
"Bill G" <[EMAIL PROTECTED]> To: 
<[EMAIL PROTECTED]> Sent: 
Wednesday, October 03, 2001 3:19 PM Subject: Struts 
DB example 
> I'm looking for a working Struts DB example that 
demonstrates the following; > > Four screens - insert a record, 
update a record, delete a record and select 
> records > From one table 
with 3 columns ID, FirstName, LastName. > 
> I've looked around various places and cannot find 
this. > > 
Thanks! > > 
> > 



Re: Struts DB example

2001-10-03 Thread Francisco Hernandez

check out the struts example, its very simple
- Original Message -
From: "Bill G" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Wednesday, October 03, 2001 3:19 PM
Subject: Struts DB example


> I'm looking for a working Struts DB example that demonstrates the
following;
>
> Four screens - insert a record, update a record, delete a record and
select
> records
> From one table with 3 columns ID, FirstName, LastName.
>
> I've looked around various places and cannot find this.
>
> Thanks!
>
>
>
>




Re: New professional STRUTS website

2001-09-30 Thread Francisco Hernandez



nice website!
 
I was wondering what strategies you used for 
maintaining the common look and feel of the whole application and also any other 
extra API/Framework packages you might have used, thanks for posting the site, i 
think this is the first large struts-based website ive seen that has a reputable 
large commercial company behind it..

  - Original Message - 
  From: 
  Adam Grohs 
  
  To: [EMAIL PROTECTED] 
  
  Sent: Saturday, September 29, 2001 8:48 
  AM
  Subject: New professional STRUTS 
  website
  
  www.hallmarkstories.com
   
  Please have a look at this new site developed to 
  produce offline physcial product through an online web based application for 
  Hallmark, Inc. by iXL, Inc.(NYC).  I would be happy to provide more 
  detail into any questions anyone may have in terms of the STRUTS 
  implimentation or other solutions for the build.  I have been 
  reading this list for a long time and working on this project for a very 
  long time hoping to expose STRUTS as a fantastic framework for implimenting 
  proffessional MVC based web applications.
   
  Thanks,
  Adam S. Grohs
  [EMAIL PROTECTED]


Hows Struts 1.1 looking?

2001-09-06 Thread Francisco Hernandez

Im wondering how Struts 1.1 is looking as far as any estimates on release
dates and such.