dynamic attribute

hi all,

how to pass file name dynamically to the file attribute of include directive. i.e

<%@ include file="temp.jsp"%> will work.

if i pass temp.jsp through a variable it is not working.i.e

<%! String filename="temp.jsp";%>

<%@ include file='<%=filename%>' %>

passing the filename dynamically is my requirement. Even i tried by using <jsp:include>,still it's not working.

can anybody help me.

thanks in advance

raghu

[532 byte] By [rag_pan] at [2007-9-26 2:59:25]
# 1
I have done this using the similar codes. and It works ok. Please show more information, eg, some exceptions, or something else.
SuperMMX at 2007-6-29 10:55:25 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...