You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by objectworlds <ob...@netscape.net> on 2003/07/01 22:51:01 UTC

Re: Struts - j2ee compliant

To use struts framework does the server have to be J2EE compliant ?

if so  is that the case  for model 1 & model 2 ?

Is tomcat always J2EE compliant ?


grahamdavid1980@yahoo.com wrote:

>--- objectworlds <ob...@netscape.net> wrote:
>  
>
>>I have been informed that Jakarta Struts framework is a subproject of 
>>jakarta.
>>Jakarta tomcat must also be a subproject of Jakarta.
>>Does this mean that Tomcat is always current with Struts framework ?
>>    
>>
>
>The similarities between Tomcat and Struts end at both living under the
>Jakarta umbrella.  One is a server and the other is a web application
>framework.  There is no relationship between their version numbers.
>
>  
>
>>There are  also a number of commercial application servers which also
>>implement struts framework.
>>    
>>
>
>Servers do not "implement" Struts.  You can use Struts in your apps on any
>J2EE compliant server.
>
>  
>
>>Do these application servers follow tomcat ?
>>    
>>
>
>No.
>
>David
>
>  
>
>>mail@phase.ws wrote:
>>
>>    
>>
>>>1) separate (more distinctly) view from logic/maintainability
>>>2) performance
>>>3) scalability/reuse of code
>>>
>>>
>>>Brandon Goodin 
>>>
>>>-----Original Message-----
>>>From: objectworlds [mailto:objectworld6@netscape.net]
>>>Sent: Monday, June 30, 2003 8:24 PM
>>>To: Struts Users Mailing List
>>>Subject: Re: Struts - concepts - is it true ? - model 1 & model 2
>>>
>>>
>>>
>>>According to text main difference between model 1 and model 2 is that
>>>model 2 uses a servlet  as the controller with model 1 using JSP.
>>>
>>>If that information is correct  why did the change take place ?
>>>
>>>
>>>grahamdavid1980@yahoo.com wrote:
>>>
>>> 
>>>
>>>      
>>>
>>>>--- objectworlds <ob...@netscape.net> wrote:
>>>>
>>>>
>>>>   
>>>>
>>>>        
>>>>
>>>>>Hi,
>>>>>
>>>>>I have some material on the struts framework and I want to check if
>>>>>          
>>>>>
>>what
>>    
>>
>>>>>I have read is true.
>>>>>That way I will continue to follow the material I have on Struts
>>>>>framework.
>>>>>
>>>>>- The struts framework Model 2 is a variant of  MVC software design 
>>>>>pattern when used with web applications.
>>>>>- The struts framework keeps multiple views with multiple users  up
>>>>>          
>>>>>
>>to 
>>    
>>
>>>>>date  so that when
>>>>>the data changes so does the view. This is also known as the
>>>>>          
>>>>>
>>publisher -
>>    
>>
>>>>>subscriber pattern because it
>>>>>helps keep the subscribers synchronized with the publisher.
>>>>>  
>>>>>
>>>>>     
>>>>>
>>>>>          
>>>>>
>>>>This implies a push model but HTTP is a pull model with clients
>>>>        
>>>>
>>requesting
>>    
>>
>>>>fresh data from the server.  The other statements are correct.
>>>>
>>>>David
>>>>
>>>>
>>>>
>>>>   
>>>>
>>>>        
>>>>
>>>>>- The struts framework allows the decoupling of business logic ,
>>>>>          
>>>>>
>>control
>>    
>>
>>>>>and presentation.
>>>>>- Struts also allows one to change Internationalise the application 
>>>>>based on the locale of the user.
>>>>>
>>>>>
>>>>>
>>>>>---------------------------------------------------------------------
>>>>>To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
>>>>>For additional commands, e-mail: struts-user-help@jakarta.apache.org
>>>>>
>>>>>  
>>>>>
>>>>>     
>>>>>
>>>>>          
>>>>>
>>>>__________________________________
>>>>Do you Yahoo!?
>>>>SBC Yahoo! DSL - Now only $29.95 per month!
>>>>http://sbc.yahoo.com
>>>>
>>>>---------------------------------------------------------------------
>>>>To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
>>>>For additional commands, e-mail: struts-user-help@jakarta.apache.org
>>>>
>>>>
>>>>
>>>>   
>>>>
>>>>        
>>>>
>>> 
>>>
>>>      
>>>
>>-- 
>>Your favorite stores, helpful shopping tools and great gift ideas. 
>>Experience the convenience of buying online with Shop@Netscape! 
>>http://shopnow.netscape.com/
>>
>>
>>
>>---------------------------------------------------------------------
>>To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
>>For additional commands, e-mail: struts-user-help@jakarta.apache.org
>>
>>    
>>
>
>
>__________________________________
>Do you Yahoo!?
>SBC Yahoo! DSL - Now only $29.95 per month!
>http://sbc.yahoo.com
>
>---------------------------------------------------------------------
>To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
>For additional commands, e-mail: struts-user-help@jakarta.apache.org
>
>  
>

-- 
Your favorite stores, helpful shopping tools and great gift ideas. 
Experience the convenience of buying online with Shop@Netscape! 
http://shopnow.netscape.com/



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


Re: Struts - extention with EJB

Posted by objectworlds <ob...@netscape.net>.
I assume you mean tomcat as the container and not an EJB container.

I would like a clarification on this point if you don't mind.
I have a book where the author suggests reasons for using EJBs in this case
a Stateless Session Bean for Java Mail.
reasons are
- Security (moving the JAVA MAIL to another machine away from the web 
server). 
- Maintainability  ( i.e hot deploy  EJBs)
-  Performance & Scalability ( application ( web ) servers can be 
clustered and load balanced )

Are you saying that one can simply ignore these points, when using the 
struts framework,
because in  reality the above are simply more hype than fact.
Another words there is no real benefit to be gained by adding an extra 
step of the EJB container with the
Struts Framework.

martinc@apache.org wrote:

>"objectworlds" <ob...@netscape.net> wrote in message
>news:3F02B594.9050508@netscape.net...
>  
>
>>So if I have a requirement  to use the Mail API with a web app then I
>>should perhaps consider
>>downloading  EJBOSS and stateless session beans to compliment tomcat &
>>the struts framework , etc.
>>    
>>
>
>If, by "the Mail API", you mean JavaMail, then you just need to download
>JavaMail if your container doesn't already include it.
>
>--
>Martin Cooper
>
>
>  
>
>>craigmcc@apache.org wrote:
>>
>>    
>>
>>>On Wed, 2 Jul 2003, objectworlds wrote:
>>>
>>>
>>>
>>>      
>>>
>>>>What is incomplete in tomcat  ?
>>>>
>>>>
>>>>        
>>>>
>>>There is no support for EJB, JMS, Connector Architecture, and a whole ton
>>>of other APIs above and beyond Servlet and JSP.  See the J2EE
>>>Specification for a complete list of everything that a J2EE server has to
>>>provide:
>>>
>>> http://java.sun.com/j2ee/download.html#platformspec
>>>
>>>Craig
>>>
>>>---------------------------------------------------------------------
>>>To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
>>>For additional commands, e-mail: struts-user-help@jakarta.apache.org
>>>
>>>
>>>
>>>      
>>>
>>-- 
>>Your favorite stores, helpful shopping tools and great gift ideas.
>>Experience the convenience of buying online with Shop@Netscape!
>>http://shopnow.netscape.com/
>>    
>>
>
>
>
>
>---------------------------------------------------------------------
>To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
>For additional commands, e-mail: struts-user-help@jakarta.apache.org
>
>  
>

-- 
Your favorite stores, helpful shopping tools and great gift ideas. 
Experience the convenience of buying online with Shop@Netscape! 
http://shopnow.netscape.com/



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


Re: Struts - j2ee compliant

Posted by Martin Cooper <ma...@apache.org>.
"objectworlds" <ob...@netscape.net> wrote in message
news:3F02B594.9050508@netscape.net...
>
> So if I have a requirement  to use the Mail API with a web app then I
> should perhaps consider
> downloading  EJBOSS and stateless session beans to compliment tomcat &
> the struts framework , etc.

If, by "the Mail API", you mean JavaMail, then you just need to download
JavaMail if your container doesn't already include it.

--
Martin Cooper


>
> craigmcc@apache.org wrote:
>
> >On Wed, 2 Jul 2003, objectworlds wrote:
> >
> >
> >
> >>What is incomplete in tomcat  ?
> >>
> >>
> >
> >There is no support for EJB, JMS, Connector Architecture, and a whole ton
> >of other APIs above and beyond Servlet and JSP.  See the J2EE
> >Specification for a complete list of everything that a J2EE server has to
> >provide:
> >
> >  http://java.sun.com/j2ee/download.html#platformspec
> >
> >Craig
> >
> >---------------------------------------------------------------------
> >To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
> >For additional commands, e-mail: struts-user-help@jakarta.apache.org
> >
> >
> >
>
> -- 
> Your favorite stores, helpful shopping tools and great gift ideas.
> Experience the convenience of buying online with Shop@Netscape!
> http://shopnow.netscape.com/




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


Best Way putting ArrayList of ValueObjects in Struts.

Posted by AshokD <as...@visualsoft-tech.com>.
Hi,

I have doubt regarding some implementation in Form.

I have a list of ValueObjects, some are editable and some are not editable.

We can implement this, putting this list to a Form or putting this list into
a Session.

Which implementation is best in above two options ?

Thanks & Regards,
Ashok.D


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


Re: Struts - j2ee compliant

Posted by objectworlds <ob...@netscape.net>.
So if I have a requirement  to use the Mail API with a web app then I 
should perhaps consider
downloading  EJBOSS and stateless session beans to compliment tomcat &
the struts framework , etc.

craigmcc@apache.org wrote:

>On Wed, 2 Jul 2003, objectworlds wrote:
>
>  
>
>>What is incomplete in tomcat  ?
>>    
>>
>
>There is no support for EJB, JMS, Connector Architecture, and a whole ton
>of other APIs above and beyond Servlet and JSP.  See the J2EE
>Specification for a complete list of everything that a J2EE server has to
>provide:
>
>  http://java.sun.com/j2ee/download.html#platformspec
>
>Craig
>
>---------------------------------------------------------------------
>To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
>For additional commands, e-mail: struts-user-help@jakarta.apache.org
>
>  
>

-- 
Your favorite stores, helpful shopping tools and great gift ideas. 
Experience the convenience of buying online with Shop@Netscape! 
http://shopnow.netscape.com/



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


Re: Struts - j2ee compliant

Posted by "Craig R. McClanahan" <cr...@apache.org>.

On Wed, 2 Jul 2003, objectworlds wrote:

> What is incomplete in tomcat  ?

There is no support for EJB, JMS, Connector Architecture, and a whole ton
of other APIs above and beyond Servlet and JSP.  See the J2EE
Specification for a complete list of everything that a J2EE server has to
provide:

  http://java.sun.com/j2ee/download.html#platformspec

Craig

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


Re: Struts - j2ee compliant

Posted by objectworlds <ob...@netscape.net>.
What is incomplete in tomcat  ?

craigmcc@apache.org wrote:

>On Tue, 1 Jul 2003, objectworlds wrote:
>
>  
>
>>Date: Tue, 01 Jul 2003 21:51:01 +0100
>>From: objectworlds <ob...@netscape.net>
>>Reply-To: Struts Users Mailing List <st...@jakarta.apache.org>
>>To: Struts Users Mailing List <st...@jakarta.apache.org>
>>Subject: Re: Struts - j2ee compliant
>>
>>To use struts framework does the server have to be J2EE compliant ?
>>
>>    
>>
>
>To use Struts your container has to implement the Servlet 2.2
>Specification (which is part of J2EE 1.2) or later.  If you're using JSP
>pages, your container must also support JSP 1.1 (also part of J2EE 1.2) or
>later.
>
>Any J2EE 1.2 or later container will therefore support Struts.  However,
>Struts itself does not require any J2EE capabilities other than Servlet or
>JSP.
>
>  
>
>>if so  is that the case  for model 1 & model 2 ?
>>
>>    
>>
>
>Model 1 and Model 2 have nothing to do with J2EE compliant or not.  They
>describe architectural approaches to building web applications, and appy
>no matter what technology you are using.
>
>  
>
>>Is tomcat always J2EE compliant ?
>>    
>>
>
>Tomcat implements the Servlet and JSP specs, but is not a complete J2EE
>container.  The first digit of the Tomcat version number tells you which
>versions:
>
>* Tomcat 3.x -- Servlet 2.2 and JSP 1.1
>* Tomcat 4.x -- Servlet 2.3 and JSP 1.2
>* Tomcat 5.x -- Servlet 2.4 and JSP 2.0
>
>As you can see from the above description, though, Tomcat can be used to
>execute Struts based appications.
>
>Craig
>
>
>---------------------------------------------------------------------
>To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
>For additional commands, e-mail: struts-user-help@jakarta.apache.org
>
>  
>

-- 
Your favorite stores, helpful shopping tools and great gift ideas. 
Experience the convenience of buying online with Shop@Netscape! 
http://shopnow.netscape.com/



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


Re: Struts - j2ee compliant

Posted by objectworlds <ob...@netscape.net>.
I have plenty of material on filters & how tag libraries are written.
i.e.
-  extending  the superclass/base class  TagSupport class.
- creating files with .tld suffix
- making tags visible to servers via web.xml
- translation of tags in  JSP  etc.

sandeep_takhar@yahoo.com wrote:

>Two other things that come up on the list a lot are
>filters and struts-el.
>
>These require servlet 2.3 and jsp 1.2.
>
>sandeep
>--- "Craig R. McClanahan" <cr...@apache.org> wrote:
>  
>
>>On Tue, 1 Jul 2003, objectworlds wrote:
>>
>>    
>>
>>>Date: Tue, 01 Jul 2003 21:51:01 +0100
>>>From: objectworlds <ob...@netscape.net>
>>>Reply-To: Struts Users Mailing List
>>>      
>>>
>><st...@jakarta.apache.org>
>>    
>>
>>>To: Struts Users Mailing List
>>>      
>>>
>><st...@jakarta.apache.org>
>>    
>>
>>>Subject: Re: Struts - j2ee compliant
>>>
>>>To use struts framework does the server have to be
>>>      
>>>
>>J2EE compliant ?
>>    
>>
>>To use Struts your container has to implement the
>>Servlet 2.2
>>Specification (which is part of J2EE 1.2) or later. 
>>If you're using JSP
>>pages, your container must also support JSP 1.1
>>(also part of J2EE 1.2) or
>>later.
>>
>>Any J2EE 1.2 or later container will therefore
>>support Struts.  However,
>>Struts itself does not require any J2EE capabilities
>>other than Servlet or
>>JSP.
>>
>>    
>>
>>>if so  is that the case  for model 1 & model 2 ?
>>>
>>>      
>>>
>>Model 1 and Model 2 have nothing to do with J2EE
>>compliant or not.  They
>>describe architectural approaches to building web
>>applications, and appy
>>no matter what technology you are using.
>>
>>    
>>
>>>Is tomcat always J2EE compliant ?
>>>      
>>>
>>Tomcat implements the Servlet and JSP specs, but is
>>not a complete J2EE
>>container.  The first digit of the Tomcat version
>>number tells you which
>>versions:
>>
>>* Tomcat 3.x -- Servlet 2.2 and JSP 1.1
>>* Tomcat 4.x -- Servlet 2.3 and JSP 1.2
>>* Tomcat 5.x -- Servlet 2.4 and JSP 2.0
>>
>>As you can see from the above description, though,
>>Tomcat can be used to
>>execute Struts based appications.
>>
>>Craig
>>
>>
>>
>>    
>>
>---------------------------------------------------------------------
>  
>
>>To unsubscribe, e-mail:
>>struts-user-unsubscribe@jakarta.apache.org
>>For additional commands, e-mail:
>>struts-user-help@jakarta.apache.org
>>
>>    
>>
>
>
>__________________________________
>Do you Yahoo!?
>SBC Yahoo! DSL - Now only $29.95 per month!
>http://sbc.yahoo.com
>
>---------------------------------------------------------------------
>To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
>For additional commands, e-mail: struts-user-help@jakarta.apache.org
>
>  
>

-- 
Your favorite stores, helpful shopping tools and great gift ideas. 
Experience the convenience of buying online with Shop@Netscape! 
http://shopnow.netscape.com/



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


Re: Struts - j2ee compliant

Posted by Sandeep Takhar <sa...@yahoo.com>.
Two other things that come up on the list a lot are
filters and struts-el.

These require servlet 2.3 and jsp 1.2.

sandeep
--- "Craig R. McClanahan" <cr...@apache.org> wrote:
> 
> 
> On Tue, 1 Jul 2003, objectworlds wrote:
> 
> > Date: Tue, 01 Jul 2003 21:51:01 +0100
> > From: objectworlds <ob...@netscape.net>
> > Reply-To: Struts Users Mailing List
> <st...@jakarta.apache.org>
> > To: Struts Users Mailing List
> <st...@jakarta.apache.org>
> > Subject: Re: Struts - j2ee compliant
> >
> > To use struts framework does the server have to be
> J2EE compliant ?
> >
> 
> To use Struts your container has to implement the
> Servlet 2.2
> Specification (which is part of J2EE 1.2) or later. 
> If you're using JSP
> pages, your container must also support JSP 1.1
> (also part of J2EE 1.2) or
> later.
> 
> Any J2EE 1.2 or later container will therefore
> support Struts.  However,
> Struts itself does not require any J2EE capabilities
> other than Servlet or
> JSP.
> 
> > if so  is that the case  for model 1 & model 2 ?
> >
> 
> Model 1 and Model 2 have nothing to do with J2EE
> compliant or not.  They
> describe architectural approaches to building web
> applications, and appy
> no matter what technology you are using.
> 
> > Is tomcat always J2EE compliant ?
> 
> Tomcat implements the Servlet and JSP specs, but is
> not a complete J2EE
> container.  The first digit of the Tomcat version
> number tells you which
> versions:
> 
> * Tomcat 3.x -- Servlet 2.2 and JSP 1.1
> * Tomcat 4.x -- Servlet 2.3 and JSP 1.2
> * Tomcat 5.x -- Servlet 2.4 and JSP 2.0
> 
> As you can see from the above description, though,
> Tomcat can be used to
> execute Struts based appications.
> 
> Craig
> 
> 
>
---------------------------------------------------------------------
> To unsubscribe, e-mail:
> struts-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail:
> struts-user-help@jakarta.apache.org
> 


__________________________________
Do you Yahoo!?
SBC Yahoo! DSL - Now only $29.95 per month!
http://sbc.yahoo.com

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


Re: Struts - j2ee compliant

Posted by "Craig R. McClanahan" <cr...@apache.org>.

On Tue, 1 Jul 2003, objectworlds wrote:

> Date: Tue, 01 Jul 2003 21:51:01 +0100
> From: objectworlds <ob...@netscape.net>
> Reply-To: Struts Users Mailing List <st...@jakarta.apache.org>
> To: Struts Users Mailing List <st...@jakarta.apache.org>
> Subject: Re: Struts - j2ee compliant
>
> To use struts framework does the server have to be J2EE compliant ?
>

To use Struts your container has to implement the Servlet 2.2
Specification (which is part of J2EE 1.2) or later.  If you're using JSP
pages, your container must also support JSP 1.1 (also part of J2EE 1.2) or
later.

Any J2EE 1.2 or later container will therefore support Struts.  However,
Struts itself does not require any J2EE capabilities other than Servlet or
JSP.

> if so  is that the case  for model 1 & model 2 ?
>

Model 1 and Model 2 have nothing to do with J2EE compliant or not.  They
describe architectural approaches to building web applications, and appy
no matter what technology you are using.

> Is tomcat always J2EE compliant ?

Tomcat implements the Servlet and JSP specs, but is not a complete J2EE
container.  The first digit of the Tomcat version number tells you which
versions:

* Tomcat 3.x -- Servlet 2.2 and JSP 1.1
* Tomcat 4.x -- Servlet 2.3 and JSP 1.2
* Tomcat 5.x -- Servlet 2.4 and JSP 2.0

As you can see from the above description, though, Tomcat can be used to
execute Struts based appications.

Craig


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