hi

the sun guys have categorically stated that the getparameter/now setproperty
works only on strings, it is accurate as it is dealing with HTML Forms.

so the reverse of the setproperty, getproperty does the same.

If you want to use vectors and loop it, this is more on the terms of server
related codes.

A use of scriplet would be a more valid useage.

Amit
if there is a workaround, Craig could correct me

> -----Original Message-----
> From: AndySoft [SMTP:[EMAIL PROTECTED]]
> Sent: Friday, December 10, 1999 2:43 AM
> To:   [EMAIL PROTECTED]
> Subject:      Re: Trying again !
>
> > request object available in the JSP pages. However, this method always
> > returns me an empty enumeration. But I have access to my
> > attributes through
> > the getAttribute() method. Am I missing something here ?
>
> weird, can you tell us more about it? maybe it's just a bug in javax
>
> > #3
> >
> > While on the subject :(of the usefulness of beans)
> >
> > If the property I am trying to extract from my bean is an array
> > or a vector,
> > on which I will eventually want to loop, then the <jsp:getProperty> tag
> is
> > useless, since it returns one big string containing all elements of the
> > array/vector. Unless I missed something. Any comments ? What about
> > setProperty ?
>
> well you could try coding another getter method which returns only the
> current element, in the jsp you can call the getter method with an int
> telling the method which element you want from the vector
> this is how the <loop> worked in previous jsp versions, you had to make a
> getSomething and a getSomethingSize method and the <loop> automatically
> got
> the size and asked from the getter method for each element, i use it quite
> often in search-engines, however i don't know if this will work with
> getProperty, probably not since they removed the <loop> tag
> about setProperty, i don't know how would you set multiple input tags to a
> single property, unless sun puts in something like x1, x2, x3 goes into
> the
> same property when you hit submit
>
> AndySoft
> ps: about the stuff i'm wrong Craig will correct me out :)
>
> ==========================================================================
> =
> To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff
> JSP-INTEREST".
> FAQs on JSP can be found at:
>  http://java.sun.com/products/jsp/faq.html
>  http://www.esperanto.org.nz/jsp/jspfaq.html

===========================================================================
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
FAQs on JSP can be found at:
 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.html

Reply via email to