Try doing this.

<%String itemS = request.getParameter("item"); %>



<%if (itemS.equalsIgnoreCase("pintoBean")){%>
<%@include file= itemS+"jsp"%>
<% }else if (itemS.equalsIgnoreCase("blackBean")){%>
<%@include file= itemS+"jsp"%>
                <%}else{ %>
<%@include file=null%>
<%} %>



--- sumit shah <[EMAIL PROTECTED]> wrote:
> Hi,
>   I want some help regarding the <%@include
> file="blah.jsp"%> directive.
> instead of writting the filename statically i have
> to write it dynamically.
>     say : the filename will be stored in some jsp
> variable 'x' then i would
> like to do something like <%@include file='jsp
> variable x'%>
>     can anyone help me out doing this.is it
> possible.
>
> please help.
> thanks.
>
>
_________________________________________________________________________
> Get Your Private, Free E-mail from MSN Hotmail at
> http://www.hotmail.com.
>
> Share information about yourself, create your own
> public profile at
> http://profiles.msn.com.
>
>
===========================================================================
> To unsubscribe: mailto [EMAIL PROTECTED] with
> body: "signoff JSP-INTEREST".
> Some relevant FAQs on JSP/Servlets can be found at:
>
>  http://java.sun.com/products/jsp/faq.html
>  http://www.esperanto.org.nz/jsp/jspfaq.html
>  http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
>
http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets


__________________________________________________
Do You Yahoo!?
Yahoo! Mail - Free email you can access from anywhere!
http://mail.yahoo.com/

===========================================================================
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
Some relevant FAQs on JSP/Servlets can be found at:

 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.html
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets

Reply via email to