tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Russell Hammer <r...@perneus.com>
Subject Re: Passing parameters to a bean from a JSP
Date Tue, 04 Apr 2000 13:56:52 GMT
> This HTML:
> 
> <HTML>
> <HEAD><TITLE>Example</TITLE></HEAD>
> <BODY>
> <H1>Your Name:</H1>
> <FORM TYPE=POST ACTION=hello.jsp>
> <INPUT TYPE=TEXT NAME=YOURNAME>
> </FORM>
> </BODY>
> </HTML>
> 
> With this hello.jsp:
> 
> <HTML>
> <HEAD><TITLE>Example</TITLE></HEAD>
> <BODY>
> <H1>Hello <% =request.getParameter("YOURNAME") %></H1>

Shouldn't this be

  <H1>Hello <%= request.getParameter("YOURNAME") %></H1>

> </BODY>
> </HTML>
> 
> Should work. You can also check some of the examples at
> /path/to/tomcat/webapps/examples/jsp.
> 
> Can you post come of your HTTML/Javascript and your JSP?. 

Russ


Mime
View raw message