I have a very simple
JSP that I am trying to get to work. But first a little history:
I have an HTML page that POSTs to my server. A
servlet takes the data and performs several functions on the values and does a response.setAttribute(myAttribute,value); then does a reponse.getRequestDispatcher("webfiles/my.jsp")
my.jsp is very generic
<html>
<head>
</head>
<body>
<FORM ACTION="/examples/servlet/AnotherServlet" ENCTYPE=
"multipart/form-data" >
<%
String myAttrib = request.getParameter(myAttribute) %>
<input type="text" name="TextInput" size=6 maxlength=6>
<input type="submit" value="submit" >
</body>
</html>
The problems I am having are:
1. How do I know that the attribute is being set?
2. Am I using the getRequestDispatcher correctly?
3. How do I pass back both the TextInput parameter and the myAttrib parameter?
It has been three years since I have done this, I do not seem to remember everything I need to get it correctly functioning.
Randall