I normally work in PHP, but want to import a php page to jsp. I have the following code and the idea is to read a variable from the browser URL, then pass that variable through to the import so it can be used by php.
<%@ page language="java" contentType="text/html" %>
<%@ taglib prefix="c" uri="
http://java.sun.com/jstl/core" %>
<% String room_id = request.getParameter("room
_id"); %>
<c:import url="
http://mydomain.com/test.php?room_id=<%=r
oom_id%>" />
Obviously this is wrong. Can anyone tell me how to add the String value to the import url?
Thanks!!
Start Free Trial