struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Ricardo de Souza Moura" <ricsouzamo...@hotmail.com>
Subject RE: Variable
Date Fri, 21 Jun 2002 15:10:32 GMT
Ok, this is the alternative that I used. I am thinking that there was a 
better alternative...

Thanks to all...


>From: "Galbreath, Mark" <Galbreath@tessco.com>
>Reply-To: "Struts Users Mailing List" <struts-user@jakarta.apache.org>
>To: 'Struts Users Mailing List' <struts-user@jakarta.apache.org>
>Subject: RE: Variable
>Date: Fri, 21 Jun 2002 11:04:46 -0400
>
>very true.
>
>-----Original Message-----
>From: Bartley, Chris P [mailto:cbartl03@sprintspectrum.com]
>Sent: Friday, June 21, 2002 11:03 AM
>To: 'Struts Users Mailing List'
>Subject: RE: Variable
>
>
>It's probably better to not do this in a declaration, like this:
>
>    <%! int var = 0; %>
>
>But instead, use a scriptlet, like this:
>
>    <% int var = 0; %>
>
>A declaration (as the O'Reilly JSP book describes) ends up being "an
>instance variable in the JSP page implementation class.  It us therefore
>visible to parallel threads (requests) processing the page, and needs to be
>handled in a thread-safe manner.  A thread-safe alternative is to declare
>variables within a scriplet element instead.  It then becomes a local
>variable of the method in the page implementation class used to process 
>each
>request, and is not shared by parallel threads."
>
>chris
>
> > -----Original Message-----
> > From: Galbreath, Mark [mailto:Galbreath@tessco.com]
> > Sent: Friday, June 21, 2002 9:38 AM
> > To: 'Struts Users Mailing List'
> > Subject: RE: Variable
> >
> >
> > Well, you would have to use Java to convert the variable to
> > an int anyway if
> > you used a tag, so just byte the bullet and use the JSP
> > syntax <%! int var =
> > 0 %>.
> >
> > Mark
> >
> > -----Original Message-----
> > From: Ricardo de Souza Moura [mailto:ricsouzamoura@hotmail.com]
> > Sent: Friday, June 21, 2002 10:16 AM
> > To: struts-user@jakarta.apache.org
> > Subject: Re: Variable
> >
> >
> > I was wanting to avoid use scriptlet in my jsp page, but I
> > think that I
> > don't have option...
> > Is the common pratice use scriptlet to create variables
> > inside de jsp page
> > ?
> >
> >
> > >From: "Barbara Post" <babs33@ifrance.com>
> > >Reply-To: "Struts Users Mailing List"
> > <struts-user@jakarta.apache.org>
> > >To: "Struts Users Mailing List" <struts-user@jakarta.apache.org>
> > >Subject: Re: Variable
> > >Date: Fri, 21 Jun 2002 16:00:56 +0200
> > >
> > >why using a taglib ? what is your need ?
> > >----- Original Message -----
> > >From: Ricardo de Souza Moura <ricsouzamoura@hotmail.com>
> > >To: <struts-user@jakarta.apache.org>
> > >Sent: Friday, June 21, 2002 3:53 PM
> > >Subject: Variable
> > >
> > >
> > > > How can I create a int variable inside the jsp page using taglib ?
> > > >
> > > > Thank you
> > > >
> > > >
> > > > _________________________________________________________________
> > > > Chegou o novo MSN Explorer. Instale já. É gratuito:
> > > > http://explorer.msn.com.br
> > > >
> > > >
> > > > --
> > > > To unsubscribe, e-mail:
> > ><mailto:struts-user-unsubscribe@jakarta.apache.org>
> > > > For additional commands, e-mail:
> > ><mailto:struts-user-help@jakarta.apache.org>
> > > >
> > >
> > >
> > >--
> > >To unsubscribe, e-mail:
> > ><mailto:struts-user-unsubscribe@jakarta.apache.org>
> > >For additional commands, e-mail:
> > ><mailto:struts-user-help@jakarta.apache.org>
> >
> >
> >
> >
> > _________________________________________________________________
> > Una-se ao maior serviço de email do mundo: o MSN Hotmail.
> > http://www.hotmail.com
> >
> >
> > --
> > To unsubscribe, e-mail:
> > <mailto:struts-user-unsubscribe@jakarta.apache.org>
> > For additional commands, e-mail:
> > <mailto:struts-user-help@jakarta.apache.org>
> >
> >
> > --
> > To unsubscribe, e-mail:
><mailto:struts-user-unsubscribe@jakarta.apache.org>
>For additional commands, e-mail:
><mailto:struts-user-help@jakarta.apache.org>
>
>--
>To unsubscribe, e-mail:
><mailto:struts-user-unsubscribe@jakarta.apache.org>
>For additional commands, e-mail:
><mailto:struts-user-help@jakarta.apache.org>
>
>--
>To unsubscribe, e-mail:   
><mailto:struts-user-unsubscribe@jakarta.apache.org>
>For additional commands, e-mail: 
><mailto:struts-user-help@jakarta.apache.org>
>




_________________________________________________________________
Envie e receba emails com o Hotmail no seu dispositivo móvel: 
http://mobile.msn.com


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


Mime
View raw message