Jump to content

change php to jsp


Recommended Posts

hi

i have this code in php now i need it in jsp but no idea to change it :(

can somebody help me. I think it will be a little bit work but every idea will help me

<?php
           if (!isset($site)) { $site="main"; }
 if (file_exists($site.".php")) {
 include($site.".php");
 } else {
               echo " <br><b><center>Diese Seite konnte nicht gefunden werden.<br>Bitte versuchen Sie es erneut.<br><br></center></b><br> ";
 }
 ?>

and the link is like this but how must they look like in jsp

<a href="index.php?site=link">link</a>

thx for the help

darph

Link to comment
Share on other sites

  • 4 weeks later...

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...