AFAIK, no way with struts, I think.

From: Mariano García <[EMAIL PROTECTED]>
Reply-To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
To: "'Struts Users Mailing List'" <[EMAIL PROTECTED]>
Subject: RE: Write a bean property from a jsp page
Date: Fri, 12 Sep 2003 10:41:28 +0200

I don't want to access a setter or getter method of a bean. I want to write
on my jsp page the result of a method. So, this method is not a typical
getter method. This method has a parameter, and depending of this parameter,
it returns an int value.


My question is, how can I execute this method using a tag. I know that I can
use this:
<%= beanInstace.getID(str) %>


but I would like to use a strut tag.

Maybe It is not possible, or maybe I don´t understand struts very well... I
don't know :)

>
> private int id = 0 ;
>
> with the getter method here :
>
> public int getId() {
> return id ;
> }
>
> and the associated setter method:
>
> public void setId(int input) {
> id = input ;
> }
> .
> Is yours something like that by any chance ?
>
>




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


_________________________________________________________________
Add photos to your messages with MSN 8. Get 2 months FREE*. http://join.msn.com/?page=features/featuredemail



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



Reply via email to