how are you calling it?  I literally cut and pasted it into a file
(attached) in and saved it in the examples context of a normal install -
worked fine.

cheers
dim



On Thu, 4 Oct 2001, Michele Cerioni wrote:

> Dmitri Colebatch wrote:
> > 
> > works fine for me on java 1.3 from sun.
> > 
> > On Wed, 3 Oct 2001, Roberto B. wrote:
> > 
> > > I use linux (debian), T3.2.3 and jsdk 1.4 ...and your code works!
> > > Try to upgrade to jsdk 1.4
> > >
> > > R.
> > >
> > > ----- Original Message -----
> > > From: "Michele Cerioni" <[EMAIL PROTECTED]>
> > > To: <[EMAIL PROTECTED]>
> > > Sent: Wednesday, October 03, 2001 6:38 PM
> > > Subject: getparameter
> > >
> > >
> > > > Hi,
> > > > I use jakarta-tomcat-3.2.3 and jdk1.3.1_01 apache1.3.19 on Linux 2.2.19.
> > > >
> > > > I created a file  prova.jsp
> > > >
> > > > <html>
> > > >    <head>
> > > >       <title> Prova </title>
> > > >    </head>
> > > >   <body>
> > > >      <%
> > > >           out.println("<b>Ciao: " + request.getParameter("user") +
> > > > "</b>");
> > > >           out.println("<b><br>Ciao: " + request.getMethod() + "</b>");
> > > >      %>
> > > >   </body>
> > > > </html>
> > > >
> > > > when I call the URL  prova.jsp?user=pippo I get this page:
> > > >
> > > > Ciao: null
> > > > Ciao: GET
> > > >
> > > > if I call prova.jsp using POST method I get the value "pippo" for the
> > > > parameter user.
> > > >
> > > > Why GET method dosn't work?
> > > >
> > > > Michele
> > >
> > >
> 
> I tried j2re1.4 but it dosn't work.
> 
> Anyone have any ideas as to why this happens?
> 
> Michele
> 
<html>
    <head>
       <title> Prova </title>
    </head>
   <body>
      <%
           out.println("<b>Ciao: " + request.getParameter("user") + "</b>");
           out.println("<b><br>Ciao: " + request.getMethod() + "</b>");
      %>
   </body>
 </html>

Reply via email to