Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations wOOdy-Soft on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Variables passed from form 1 don't get printed to form 2

Status
Not open for further replies.

crowsario

Programmer
Jul 23, 2001
24
US
"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(&quot;uname&quot;);
String pword = request.getParameter(&quot;pword&quot;);

%>
<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
 
Hey Again,

I just found out it was a configuration issue with Apache. Now I just need to find out what I need to do to get the jsp's to work.

Anyone know off hand?.....

thanks
-Crow
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top