Hi
I'm trying to call a method in a BEAN that returns an array of objects
that I need to enumerate on my page. But I don't want to access a
property with EL, like this e.g. ${mybean.names} ) as I need to provide
an argument to the method. I need to say how many names I would like, so
the only thing I could come up with was this;
<c:set var="names" value="<%= mybean.getNames( Integer.parseInt(
request.getParameter("total") ) ) %>" />
Now this looks a bit cumbersome and I was thinking if anyone knew of a
better way of doing this. For example
${ mybean.getNames(request.getParameter("total") ) }
would have been nicer and tidier.
Regards
Tobias
-----Original Message-----
From: Andy Eastham [mailto:[EMAIL PROTECTED]
Sent: Tuesday, August 17, 2004 10:11
To: 'Tomcat Users List'; [EMAIL PROTECTED]
Subject: RE: understanding web.xml
Also look at the sample chapter at http://www.moreservlets.com/
Andy
> -----Original Message-----
> From: Thilo Krawietz [mailto:[EMAIL PROTECTED]
> Sent: 17 August 2004 08:07
> To: Tomcat Users List
> Subject: Re: understanding web.xml
>
> Hi Tobias,
>
> in Suns official Servlet specification all elements of web.xml are
> explained widely, so i would suggest, that you study this one. You can
> get it here:
>
> http://java.sun.com/products/servlet/download.html
>
> Hope this helps & regards,
>
> Thilo
>
>
> Tobias Eriksson wrote:
>
> >Hi
> > I have been searching the web some for information about how to
> >configure / setup; web.xml, but haven't really found anything. I
thought
> >there would be something in the TOMCAT documentation, perhaps I
wasn't
> >to thorough when I browsed through it. Does anyone have a link to
some
> >tutorial or article that explains the web.xml?
> >
> >Regards
> > Tobias
> >
> >
> >
> >---------------------------------------------------------------------
> >To unsubscribe, e-mail: [EMAIL PROTECTED]
> >For additional commands, e-mail: [EMAIL PROTECTED]
> >
> >
> >
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]