You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@commons.apache.org by Oscar Guadilla <og...@mail.com> on 2005/03/21 08:44:47 UTC
[JELLY]: ¿Is it possible to pass arguments while creating an object?
Hello,
¿Is it possible to create an object which needs arguments in the constructor?
For example, ¿how could I create a java.io.File instance?
¿<j:useBean var="instanceName" class="java.io.File" ... />?
Best Regards,
Oscar Guadilla
--
___________________________________________________________
Sign-up for Ads Free at Mail.com
http://promo.mail.com/adsfreejump.htm
---------------------------------------------------------------------
To unsubscribe, e-mail: commons-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: commons-user-help@jakarta.apache.org
Re: [JELLY]: ¿Is it possible to pass arguments wh =?iso-8859-1?q?ile_creating_an_object??=
Posted by Paul Libbrecht <pa...@activemath.org>.
<j:new className="java.io.File" var="myfile">
<j:arg value="path/to/here"/>
</j:new>
Note sure if it works for useBean.
hope that helps.
paul
Le 21 mars 05, à 08:44, Oscar Guadilla a écrit :
> Hello,
>
> ¿Is it possible to create an object which needs arguments in the
> constructor?
>
> For example, ¿how could I create a java.io.File instance?
> ¿<j:useBean var="instanceName" class="java.io.File" ... />?
>
> Best Regards,
> Oscar Guadilla
> --
> ___________________________________________________________
> Sign-up for Ads Free at Mail.com
> http://promo.mail.com/adsfreejump.htm
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: commons-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: commons-user-help@jakarta.apache.org
>
---------------------------------------------------------------------
To unsubscribe, e-mail: commons-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: commons-user-help@jakarta.apache.org