I'm trying to get the following line of code to work:
<LOOP property="<% out.print( "sol_bean:" + sProperty ); %>"
propertyelement="x">
I want to use a different property of the bean depending on a parameter
passed to the .jsp file
My guess is that it is trying to evaluate <LOOP before evaluating the <%
script. It seems to me though that it should evaluate the in-line scripts
prior to evaluating the html tags.
See complete code below (the rest of the statements work fine).
I'm using NT 4(SP4)/NES 3.6/JRun 2.3
Thanks for any help,
Darren
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
<USEBEAN name="sol_bean" type="jsp.speakoutloud.SpeakOutLoudBean"
lifespan="page">
</USEBEAN>
<%
String sType = request.getParameter("type");
String sDisplay = "";
String sProperty = "";
if (sType.equals("ind")) {
sDisplay = "Industry";
sProperty = "markets";
} else if (sType.equals("comp")) {
sDisplay = "Company";
sProperty = "companies";
}
%>
<font face="tahoma" size="-1"><b>Select <% out.print( sDisplay ); %> to
Delete</b></font>
<p>
<form method="post" action="<% out.print( "/servlet/sol_servlet?type=" +
sType ); %>" name="form">
<select multiple name="lstIndustries" size="20">
<LOOP property="<% out.print( "sol_bean:" + sProperty ); %>"
propertyelement="x">
<option><DISPLAY property="x">
</LOOP>
</select>
===========================================================================
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".