I think if you tried to include a Java expression, it should work, like this:
<OPTION VALUE=myIndex><%= testBean.getScreensList(myIndex) %>

Note the <%= Java expression starting tag. The <% tag means general scriptlet
code, and it won't work in such situations.
In that case, it should be done like this:
<OPTION VALUE=myIndex><% out.println(testBean.getScreensList(myIndex)); %>

or you could assign a variable:

<OPTION VALUE=myIndex>
<%
  String test = testBean.getScreensList(myIndex);
  out.println(test);
%>

Good luck!

Primoz


Nanavate Mahesh wrote:
>
> Hi,
>
> Consider the following piece of JSP page :
>
> <FORM ACTION="" METHOD="POST">
> <SELECT>
> <REPEAT index=myIndex start=0 end=3>
> <INSERT>
>
> <! - - This works as expected - - >
>  <OPTION VALUE=myIndex>$(bean=testBean property=screensList(myIndex))
>
> <!- -  This simply shows testBean.getScreensList(myIndex) - - >
> <OPTION VALUE=myIndex><% testBean.getScreensList(myIndex); %>
>
> </INSERT>
> </REPEAT>
> </SELECT>
> </FORM>
>
> Is this a bug or am I missing some point ?
>
> Thanks in advance,
> Mahesh.
>
> ===========================================================================
> To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
> of the message "signoff JSP-INTEREST".  For general help, send email to
> [EMAIL PROTECTED] and include in the body of the message "help".

===========================================================================
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff JSP-INTEREST".  For general help, send email to
[EMAIL PROTECTED] and include in the body of the message "help".

Reply via email to