No.  This won't work.  The <@ include directive happens AT COMPILE TIME!
You're trying to change it at runtime.

You must use <jsp:include
or
<% request.getRequestDispatcher("/urg_pack/results_yuca.jsp" +
query_string).forward(request,response); %>

-----Original Message-----
From: Orozco, Juan Carlos [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, August 14, 2001 8:23 AM
To: [EMAIL PROTECTED]
Subject: Include directive


Hello friends..!!

I want to know if i can do something like that in a JSP..

 <% String query_string = "" + request.getQueryString(); %>
<%@ include file = "/urg_pack/results_yuca.jsp" + query_string%>

I can't put a variable inside the quote???

===========================================================================
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff
JSP-INTEREST".
For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST
DIGEST".
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

===========================================================================
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST DIGEST".
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