"Hey Everybody",
I'm a JSP newbie and am trying to do a small example i found in a JSP book. I have an HTML page that uses the Method ="get" to pass two string variables to a .jsp page. I can see the variables being passed in the url of the .jsp page however i can't get these variables to print to the HTML page...
Here's my code for the JSP page- taken straight from the example:
<HTML>
<BODY>
<%
//get the user name and pword from the other form
String uname = request.getParameter("uname"
;
String pword = request.getParameter("pword"
;
%>
<h1>Hello <%=uname%> <%=pword%> !</h1>
</BODY>
</HTML>
The jsp page does get loaded and the url looks like this:
file:///C:/MyApps/ttweb/YeeHa.jsp?uname=rrosario&pword=delta
so it looks to me like these are getting passed correctly. i am running apache server 1.3 if that makes a difference. Is there a step i am missing somewhere configuration wise (assuming the code in the book is correct)? I've set JAVA_HOME, CLASSPATH, and PATH. i can compile java code using javac and run a .class.
please, anyone...WHAT AM I MISSING!! (i'm going crazy over here)
thanks in advance
-crow
I'm a JSP newbie and am trying to do a small example i found in a JSP book. I have an HTML page that uses the Method ="get" to pass two string variables to a .jsp page. I can see the variables being passed in the url of the .jsp page however i can't get these variables to print to the HTML page...
Here's my code for the JSP page- taken straight from the example:
<HTML>
<BODY>
<%
//get the user name and pword from the other form
String uname = request.getParameter("uname"
String pword = request.getParameter("pword"
%>
<h1>Hello <%=uname%> <%=pword%> !</h1>
</BODY>
</HTML>
The jsp page does get loaded and the url looks like this:
file:///C:/MyApps/ttweb/YeeHa.jsp?uname=rrosario&pword=delta
so it looks to me like these are getting passed correctly. i am running apache server 1.3 if that makes a difference. Is there a step i am missing somewhere configuration wise (assuming the code in the book is correct)? I've set JAVA_HOME, CLASSPATH, and PATH. i can compile java code using javac and run a .class.
please, anyone...WHAT AM I MISSING!! (i'm going crazy over here)
thanks in advance
-crow