I'm trying to include fragments from other pages much like i'd do this on PHP:
Now, i got on java as far as getting to the $pid var comparison, but i just can't seem to find a way to include the page dynamically:Code:// index.php?pid=1
$pid = $_GET['pid'];
switch($pid){
case '1':
include('register.php');
break;
}
Anyway on doing this?Code:if (request.getParameter("pid") != null){
int id = Integer.parseInt(request.getParameter("pid"));
if( id == 1 ){
// INCLUDE FILE SYNTAX
}
}
Thank in advance!
