Hi Javier,
WebSphere Studio supports both JSP 0.91 and 1.0. To use <%! %>, you need to set
JSP to 1.0.
Right mouse click on your proejct name, select properties, click on the advance
tab, and set JSP version to 1.0. This will solve your problem.
Kevin
"Matthews,Paul" wrote:
> 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