Hello,

i tried too long so i describe my problem here. im really desprate.

I want to link from JSP1.jsp to JSP2.jsp with a simple <a href=...> statement This link should also have an identification number.

this is my JSP1.jsp:

<%@ page language="java" contentType="text/html; charset=ISO-8859-1"
	pageEncoding="ISO-8859-1"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<title>Roar Application</title>
</head>
<body>

<A HREF="JSP2.jsp&id=1"> &lt;&lt;new&gt;&gt;</A> 

</body>
</html>

It should look something like this.

My severe problem is that after clicking this link i get a 404-Page not found. If i modify the link to:

<A HREF="JSP2.jsp&id=1"> &lt;&lt;new&gt;&gt;</A>

.
The link works fine. What could be the problem here? I saw at least 1 million examples on the web, were this is working?!?! I dont understand this. Help would be greatly appreciated.

So long

P.S. i use GlassFish-Tools-Bundle-For-Eclipse-1.2 & Glassfish App server

The first argument is with '?'

<a href="JSP2.jsp?id=1&name=2&aaaa=b">Link</a>

And the others with '&'

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.