Welcome to the Java Programming Forums


The professional, friendly Java community. 21,500 members and growing!


The Java Programming Forums are a community of Java programmers from all around the World. Our members have a wide range of skills and they all have one thing in common: A passion to learn and code Java. We invite beginner Java programmers right through to Java professionals to post here and share your knowledge. Become a part of the community, help others, expand your knowledge of Java and enjoy talking with like minded people. Registration is quick and best of all free. We look forward to meeting you.


>> REGISTER NOW TO START POSTING


Members have full access to the forums. Advertisements are removed for registered users.

Results 1 to 4 of 4

Thread: Accessing java routines from jsp pages

  1. #1
    Junior Member
    Join Date
    Oct 2013
    Location
    Madrid - Spain
    Posts
    3
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Accessing java routines from jsp pages

    Hello there. I'm trying to do a simple training jsp project. The goal is creating some java routines in a package that I have named "abreojos.ensamblador.net" and accessing it from jsp. But anything maybe wrong because Apache tells me that "SetBDConn cannot be resolved to a type".

    My develop environment is:
    java version "1.7.0_03"
    Java(TM) SE Runtime Environment (build 1.7.0_03-b05)
    Java HotSpot(TM) 64-Bit Server VM (build 22.1-b02, mixed mode)

    Apache Tomcat/7.0.25

    I attach the entire project. Any help? Thank you.
    Attached Files Attached Files


  2. #2
    Member
    Join Date
    Nov 2013
    Location
    Bangalore, India
    Posts
    70
    My Mood
    Cool
    Thanks
    0
    Thanked 6 Times in 6 Posts

    Default Re: Accessing java routines from jsp pages

    Have you declared the list of java programs you want to access in your jsp using page directive in your jsp like <@page import="<your fully qualified class name>" />

  3. #3
    Junior Member
    Join Date
    Oct 2013
    Location
    Madrid - Spain
    Posts
    3
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Re: Accessing java routines from jsp pages

    Thank you for answering, dineshj83, I had given up hope that someone would respond.

    Finally, I got into the code and I managed to connect using javabeans, when I complete my project, I'll upload it to my server if anyone is interested. As I have not much time, I'm a little slow, but I think the important thing is done. Greetings.

    PS: The Java community seems not to be very participatory, have inherited the oracle spirit against sun one?

  4. #4
    Junior Member
    Join Date
    Oct 2013
    Location
    Madrid - Spain
    Posts
    3
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Re: Accessing java routines from jsp pages

    Good day. I've just finished my learning project on jsp/java/javabeans/xml/PostgreSQL and I have uploaded it to my page:


    If anyone interested, you can downloaded it freely. Much more of what you have helped me, eh?

    Some of the characteristics are these:

    •Separación de la capa de presentación jsp del acceso a base de datos en java.
    •Para usar los class de java usamos java beans, cuyas rutinas devuelven datos de tipo integer, matrices de Strings, etc.
    •Base de datos PostgreSQL.
    •Creo un fichero xml donde podemos poner un número indeterminado de órdenes a la base de datos y los tipos pueden ser (no sólo): selects, updates, inserts.
    •El fichero xml es leído por una rutina java que he desarrollado yo mismo, a la que accedemos en jsp mediante java beans. Para ello la rutina está asociada a un nombre, que es el que buscamos. Puesto que este fichero es externo a jsp/java, podría modificarlo cualquiera sin conocimientos de jsp/java, y sin necesidad de reiniciar el servicio Tomcat.
    •Login de usuarios con un tiempo de espera de inactividad de 3 minutos.
    •Personas, mpleados, clientes y roles de usuario de la aplicación.
    •Podemos dar de alta nuevos registros en toda la gestión del videoclub, así como modificar registros, pero no eliminar (de momento esta última característica no está añadida).
    •Para simplificar el proceso de relleno de los formularios para dar de alta/modificar registros, se han creado botones de lista que nos ofrecen los datos necesarios.
    •Si un usuario no tiene rol para acceder a una página, la aplicación se lo notificará con un alert en javascript y no le permitirá el acceso.
    •Si no hay usuario logado y solicitamos el ingreso en alguna página, el sistema redirecciona a la página de login y, una vez logado correctamente, lo devuelve a la página solicitada.
    •javascript para chequear e informar al usuario de la aplicación de errores cometidos en la gestión.
    •css para darle a la aplicación un aspecto cuidado y bonito con métodos estándar.

Similar Threads

  1. Java Server Pages help needed
    By 101apps in forum JavaServer Pages: JSP & JSTL
    Replies: 1
    Last Post: October 18th, 2013, 02:45 PM
  2. loading jsp pages in different browsers
    By sridevi karampudi in forum JavaServer Pages: JSP & JSTL
    Replies: 3
    Last Post: February 6th, 2013, 12:44 AM
  3. Unable to view jsp pages through same login page
    By Rajiv in forum Web Frameworks
    Replies: 1
    Last Post: August 17th, 2011, 11:43 AM
  4. why a unknown symbol is visible on a jsp page which include another html pages
    By se.anilp in forum JavaServer Pages: JSP & JSTL
    Replies: 4
    Last Post: July 21st, 2011, 10:12 AM
  5. Increasing performance of my graphics routines
    By willberg in forum AWT / Java Swing
    Replies: 6
    Last Post: November 16th, 2009, 01:41 PM