can I dynamically generate the archive line of jsp:plugin?

I need some advice.

I have the following :

<jsp:plugin type="applet"

code="com.mycompany.hm.callq.client.common.frontend.class"

codebase="/MyCodeBase"

name="Diagnostics" align="middle"

jreversion="1.5"

><snip>

archive="monitorClient.jar,HXMSCommon.jar,Filters.jar,Actions.jar,jide-dock.jar,jide-common.jar,jide-components.jar">

<snip>

</jsp:plugin>

I want to be able to replace the contents of the archive line with something dynamically generated at the servlet level. When i try repacing the contents of the archive line with something like <jsp:getProperty name=.... property=... />, it generates a JasperException saying that the archive attribute of the jsp plugin standard action does not accpet any expressions.

Is there any other way to do this?

Or am I out of luck?

-Dennis

[1085 byte] By [AlfredTheGreya] at [2007-10-2 8:20:48]
# 1

Well I've found out that jsp:plugin is not dynamic. the parameters are but not the archive line.

My original goal was to have a core webapp that has a menu navigation type applet that would dynamically load classes on the client from other webapp contexts. These other webapps would be "plug-ins" that have their own servlets and applet class files that the main navigation applet would "magically" have access to.

But since my main applet jsp cannot have a dynamically created archive line, I think I'm going to have to look into other ways. Perhaps custom class loaders and reflection. Starting to sound like WebStart?

How I will let my main applet know about these other classes (which reside in other webapps) is going to be interesting. Perhaps something within the server.xml or web.xml at the conf level.

Any ideas are welcome. :)

-Dennis

AlfredTheGreya at 2007-7-16 22:19:55 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...