tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Dmitri Colebatch <...@bigpond.net.au>
Subject Re: getparameter
Date Thu, 04 Oct 2001 08:51:43 GMT
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" <michele@ptnet.it>
> > > To: <tomcat-user@jakarta.apache.org>
> > > 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
> 

Mime
View raw message