If you are using Websphere 2.0x then it is JSP 0.91. To get equivalent
functionality from Websphere 2.x to the JSP 1.x <%! declaration do the
following:
JSP 1.x is
<%! private static final int myInt = 0; %>
JSP 0.91 is
<SCRIPT runat="server">
private static final int myInt = 0;
</SCRIPT>
-----Original Message-----
From: Godino Javier [mailto:[EMAIL PROTECTED]]
Sent: Friday, June 16, 2000 8:15 AM
To: [EMAIL PROTECTED]
Subject: Re: JSP AND WEBSPHERE
Thanks. I found the what is the problem. WebSphere 2.1 use JSP.92 and
WebSphere 3.0 use JSP 1.0
> -----Mensaje original-----
> De: Matthews,Paul [SMTP:[EMAIL PROTECTED]]
> Enviado el: martes 13 de junio de 2000 12:19
> Para: [EMAIL PROTECTED]
> Asunto: Re: JSP AND WEBSPHERE
>
> At a guess, WebSphere is rejecting the declaration <%! tag - try just
> using
> <%. Apparently there are differences, but I certainly don't know what they
> are...
> <%
> String usuarioIngresado ="";
> String passwordIngresada ="";
> %>
>
> Semicolons missing in the first two here ---
> > <% usuarioIngresado = request.getParameter("usuario")*** %>
> > <% passwordIngresada = request.getParameter("password")*** %>
> > <% session.putValue("usuario",usuarioIngresado); %>
> > <% session.putValue("password", passwordIngresada); %>
>
>
> Regards, Paul
>
> > -----Original Message-----
> > From: Godino Javier [mailto:[EMAIL PROTECTED]]
> > Sent: 13 June 2000 15:40
> > To: [EMAIL PROTECTED]
> > Subject: JSP AND WEBSPHERE
> >
> >
> > Hello:
> > I'm trying to use this JSP witn WEBSPHERE of IBM. But I'm
> > receiving the
> > following message when I try to show it on a browser. Please
> > a I need help.
> > thank.
> >
> > Javier
> >
> >
> > HTTP Error 405
> > 405 Method Not Allowed
> > The method specified in the Request Line is not allowed for
> > the resource
> > identified by the request. Please ensure that you have the
> > proper MIME type
> > set up for the resource you are requesting.
> > Please contact the server's administrator if this problem persists.
> >
> >
> > THE JSP IS:
> >
> > <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN">
> > <!-- Sample JSP page using a JavaBean -->
> > <HTML><HEAD>
> > <META name="GENERATOR" content="IBM WebSphere Page Designer V3.0.2 for
> > Windows">
> > <META http-equiv="Content-Style-Type" content="text/css">
> > <TITLE>This is the page title</TITLE>
> > <%@ language="Java" %>
> > <%! String usuarioIngresado =""; %>
> > <%! String passwordIngresada =""; %>
> > </HEAD>
> > <BODY
> > background="file:///C:/WebSphere/Studio/Projects/FormBC/FormBC
> > jsp/image/back
> > ground.gif">
> > <% usuarioIngresado = request.getParameter("usuario") %>
> > <% passwordIngresada = request.getParameter("password") %>
> > <% session.putValue("usuario",usuarioIngresado); %>
> > <% session.putValue("password", passwordIngresada); %>
> > <P align="center"><B><FONT SIZE="6">OPCIONES</FONT></B></P>
> > <P></P>
> > <P align="right"> Usuario: <%= usuarioIngresado %> </P>
> > <UL>
> > <LI><A
> > href="file:///C:/WebSphere/Studio/Projects/FormBC/FormBCjsp/Fo
> > rmularioDeCons
> > ulta.jsp">Consulta de Ordenes</A>
> > </UL>
> > </BODY></HTML>
> >
> > COMPILED WITH WEBSPHERE STUDIO
> >
> > *-------------------Inicio del proceso de JSP-------------------*
> >
> > Origen del
> > JSP:C:\WebSphere\Studio\check_out\FormBC\FormBCjsp\MenuDeOpciones.jsp
> >
> > La generaci�n ha terminado satisfactoriamente... Compilando.
> >
> > C:\WebSphere\Studio\check_out\FormBC\FormBCjsp\_MenuDeOpciones
> > _xjsp.java:58:
> > Expresi�n de tipo no v�lida.
> > ! String usuarioIngresado ="";
> > ^
> > C:\WebSphere\Studio\check_out\FormBC\FormBCjsp\_MenuDeOpciones
> > _xjsp.java:62:
> > Expresi�n de tipo no v�lida.
> > ! String passwordIngresada ="";
> > ^
> > C:\WebSphere\Studio\check_out\FormBC\FormBCjsp\_MenuDeOpciones
> > _xjsp.java:66:
> > Expresi�n de tipo no v�lida.
> > usuarioIngresado = request.getParameter("usuario")
> > ^
> > C:\WebSphere\Studio\check_out\FormBC\FormBCjsp\_MenuDeOpciones
> > _xjsp.java:68:
> > Declaraci�n no v�lida.
> > _static_data_0.writeChars(548, 2, out);
> > ^
> > C:\WebSphere\Studio\check_out\FormBC\FormBCjsp\_MenuDeOpciones
> > _xjsp.java:70:
> > Expresi�n de tipo no v�lida.
> > passwordIngresada = request.getParameter("password")
> > ^
> > C:\WebSphere\Studio\check_out\FormBC\FormBCjsp\_MenuDeOpciones
> > _xjsp.java:72:
> > Declaraci�n no v�lida.
> > _static_data_0.writeChars(608, 2, out);
> > ^
> > C:\WebSphere\Studio\check_out\FormBC\FormBCjsp\_MenuDeOpciones
> > _xjsp.java:74:
> > Variable o nombre de clase no definidos: session
> > session.putValue("usuario",usuarioIngresado);
> > ^
> > C:\WebSphere\Studio\check_out\FormBC\FormBCjsp\_MenuDeOpciones
> > _xjsp.java:78:
> > Variable o nombre de clase no definidos: session
> > session.putValue("password", passwordIngresada);
> > ^
> > 8 errores
> >
> > *-------------------Fin del proceso de JSP-------------------*
> >
> > ==============================================================
> > =============
> > To unsubscribe: mailto [EMAIL PROTECTED] with body:
> > "signoff JSP-INTEREST".
> > Some relevant FAQs on JSP/Servlets can be found at:
> >
> http://java.sun.com/products/jsp/faq.html
> http://www.esperanto.org.nz/jsp/jspfaq.html
> http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
> http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets
>
> ==========================================================================
> =
> To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff
> JSP-INTEREST".
> Some relevant FAQs on JSP/Servlets can be found at:
>
> http://java.sun.com/products/jsp/faq.html
> http://www.esperanto.org.nz/jsp/jspfaq.html
> http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
> http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets
>
> ==========================================================================
> =
> To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff
> JSP-INTEREST".
> Some relevant FAQs on JSP/Servlets can be found at:
>
> http://java.sun.com/products/jsp/faq.html
> http://www.esperanto.org.nz/jsp/jspfaq.html
> http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
> http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets
===========================================================================
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff
JSP-INTEREST".
Some relevant FAQs on JSP/Servlets can be found at:
http://java.sun.com/products/jsp/faq.html
http://www.esperanto.org.nz/jsp/jspfaq.html
http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets
===========================================================================
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
Some relevant FAQs on JSP/Servlets can be found at:
http://java.sun.com/products/jsp/faq.html
http://www.esperanto.org.nz/jsp/jspfaq.html
http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets