- Oct 11, 1999
- 3,064
- 0
- 0
<%@ page language="java" %>
<html>
<head>
<title>Please Work</title>
</head>
<body>
<table border="1" widht="700">
<tr>
<td width="250">
<a href="index.jsp?func=add">Add an Employee</a>
<a href="index.jsp?func=remove">Remove an Employee</a>
<a href="index.jsp?func=mod">Modify and Employee's info</a>
<a href="index.jsp?func=view">View and Query the Database</a></br>
</td>
<td width="450">
<% String func = request.getParameter("func"); %>
<%= func %>
<jsp:include page="<%= func %>.jsp" />
</td>
</tr>
</table>
</body>
</html>
I have add.jsp, remove.jsp, mod.jsp, and view.jsp sitting in the directory. But it gives me this error:
<< java.lang.IllegalArgumentException: Cannot URL decode request path / >>
what am i messing up, it seems so simple
bart
<html>
<head>
<title>Please Work</title>
</head>
<body>
<table border="1" widht="700">
<tr>
<td width="250">
<a href="index.jsp?func=add">Add an Employee</a>
<a href="index.jsp?func=remove">Remove an Employee</a>
<a href="index.jsp?func=mod">Modify and Employee's info</a>
<a href="index.jsp?func=view">View and Query the Database</a></br>
</td>
<td width="450">
<% String func = request.getParameter("func"); %>
<%= func %>
<jsp:include page="<%= func %>.jsp" />
</td>
</tr>
</table>
</body>
</html>
I have add.jsp, remove.jsp, mod.jsp, and view.jsp sitting in the directory. But it gives me this error:
<< java.lang.IllegalArgumentException: Cannot URL decode request path / >>
what am i messing up, it seems so simple
bart