jsp:plugin and loop for dynamic parameters ?

P

phil89

Hi

I search to replace static HTML code calling "OBJET" with jsp:plugin ?
Could i insert an scriptlet for an loop into jsp plugin ?
I need my applet running with firefox2, firefox3 and IE

rEGARDS
Philippe


I have tried this
<jsp:plugin type="applet" jreversion="1.4"
code="dclock.LedClock.class" archive="dclock.jar" height="36"
width="166" >
<jsp:params>
<jsp:param name="name" value="<%=postehash.getCodePoste()
+"_appletc"%>" />
<%
java.util.Vector v=context.getCouleurBeans();
String contacts=postehash.getContacts();
for(int i=0;i<contacts.length();i++)
{
try
{
servlet24.CouleurBean b=(servlet24.CouleurBean)v.elementAt(i);
out.println("<param name=\"BCOLOR"+(i+1)+"\" value= \""+b.getCode()
+"\" >");

} //fin boucle for
%>
</jsp:params>
<jsp:fallback>
<p>Unable to load applet</p>
</jsp:fallback>
</jsp:plugin>
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,769
Messages
2,569,579
Members
45,053
Latest member
BrodieSola

Latest Threads

Top