Here is the code Althougt I installed tomcat again and now it's funtioning I dont know why (I was in a hurry).  
 
-------Original Message-------
 
Date: 02/25/06 00:05:27
Subject: Re: JSP with use beans calls do not work
 
could you please post your jsp code?
 
umesh
 
On 2/24/06, Claudio Veas <[EMAIL PROTECTED]> wrote:
>
> Hello list, I m really new to tomcat ,I have the following problem
> recently
> I tried to resume my practices on JSP on my tomcat server but I seem to
> have
> a problem and I do not know what it is. Every time I try to run a JSP with
> a
> <usebean> it shows me this error
>
>
> org.apache.jasper.JasperException: /colors/controlguardo.jsp(1,1)
>         org.apache.jasper.compiler.DefaultErrorHandler.jspError
> (DefaultErrorHandler
> java:39)
>         org.apache.jasper.compiler.ErrorDispatcher.dispatch
> (ErrorDispatcher
> java:405)
>         org.apache.jasper.compiler.ErrorDispatcher.jspError
> (ErrorDispatcher
> java:146)
>         org.apache.jasper.compiler.Generator$GenerateVisitor.visit
> (Generator
> java:1223)
>         org.apache.jasper.compiler.Node$UseBean.accept(Node.java:1116)
>         org.apache.jasper.compiler.Node$Nodes.visit(Node.java:2163)
>         org.apache.jasper.compiler.Node$Visitor.visitBody(Node.java:2213)
>         org.apache.jasper.compiler.Node$Visitor.visit(Node.java:2219)
>         org.apache.jasper.compiler.Node$Root.accept(Node.java:456)
>         org.apache.jasper.compiler.Node$Nodes.visit(Node.java:2163)
>         org.apache.jasper.compiler.Generator.generate(Generator.java:3284)
>         org.apache.jasper.compiler.Compiler.generateJava(Compiler.java
> :189)
>         org.apache.jasper.compiler.Compiler.compile(Compiler.java:286)
>         org.apache.jasper.compiler.Compiler.compile(Compiler.java:267)
>         org.apache.jasper.compiler.Compiler.compile(Compiler.java:255)
>         org.apache.jasper.JspCompilationContext.compile
> (JspCompilationContext
> java:563)
>         org.apache.jasper.servlet.JspServletWrapper.service
> (JspServletWrapper
> java:293)
>         org.apache.jasper.servlet.JspServlet.serviceJspFile(
> JspServlet.java:314)
>         org.apache.jasper.servlet.JspServlet.service(JspServlet.java:264)
>         javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
>
> Bye the way I tried with new examples but the I tried with some of the
> ones
> that were already
> tested and functioning and it didnot work either. One other thing my
> .class
> files are in
> C:\Archivos de programa\Apache Software Foundation\Tomcat
> 5.5\common\classes
> Anyway when they used to work they were in the same place but maybe I have
> done something wrong that
> is making the server work wrong or al least not the way I want it to work.
> Any Ideas will be wellcome thanks for your attention
> Claudio Veas
>
 
 
Add FUN to your email - CLICK HERE!
package patrones;

import java.sql.*;

public class patron{
	private String nombre;
	private String descripcion;
	
	public void setNombre(String n){
		nombre=n;
		}
	public void  setDescripcion(String d){
		descripcion=d;
		}
	public String getNombre(){return nombre;}		
	public String getDescripcion(){return descripcion;}
	
    public void doinsert(){
		
Connection conn=null;
Statement st=null;
try{
Class.forName("com.mysql.jdbc.Driver");
conn=DriverManager.getConnection("jdbc:mysql://localhost:3306/patrones","jonas","jonas");
st=conn.createStatement();
st.executeUpdate("insert into patrones (nombre,descripcion) values ('"+nombre+ "','" + descripcion +"');");
}
catch(Exception E){
System.out.println("algo");
}
}
	
	}

Attachment: next.jsp
Description: unknown/unknown

Attachment: newuserform.jsp
Description: unknown/unknown

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to