On Fri, 5 Dec 2003, Oron Gill Haus wrote:

> James,
>
> Isn't there a drive to move to JSTL vs. the Struts tag library?  I'm
> curious as we've been pushing JSTL for this reason (though it rather
> flexible).

Yes, you are absolutely correct.  Use c:set if you can (given the min spec
requ).

Have a good one!

>
> Thank you.
>
> --- James Mitchell <[EMAIL PROTECTED]> wrote:
> > On Fri, 5 Dec 2003, struts wrote:
> >
> > > In the Jsp i have:
> > >
> > > <sess:attribute name="userName"/>
> > >
> > > witch prints the username. Now i want something like:
> > >
> > > <%
> > >
> > > String username= <sess:attribute name="userName"/>;
> > >
> > > %>
> > >
> > > but that doesn't work. How can i assign the session variable to the
> > String username ?
> >
> > A scriptlet-free way to do this:
> >
> > <bean:define id="username">
> >  <sess:attribute name="userName"/>
> > </bean:define>
> >
> > >
> > > Thanks !
> > >
> > >
> > >
> >
> > --
> > James Mitchell
> > Software Developer / Struts Evangelist
> > http://www.struts-atlanta.org
> >
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> >
>
>
> =====
> Oron Gill Haus
> IBM CSE Content Manager 8 - Sun Certified Programmer Java 2 1.4
> office: (410) 539-3733 x1348
> fax:    (410) 837-9535 c/o Oron
> e-mail: [EMAIL PROTECTED]
> web: http://www.electronicscene.com/oron_haus
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>

-- 
James Mitchell
Software Developer / Struts Evangelist
http://www.struts-atlanta.org


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

Reply via email to