How can I put objects from other packages in JSP?

0

I need to use an object introduced in a JSP, the problem is that when I try to use it, it tells me that the variable " Championship can not be resolved to a type ". I guess I should do some kind of import, but I do not know exactly how. Can someone help me?

This is the hierarchy:

<%
            Hashtable<String,Campeonato> mensaje = (Hashtable<String,Campeonato>) request.getSession().getAttribute("Resultado"); 

            if(mensaje == null) out.println("No se ha podido recuperar el mensaje de la sesion.");

            else{

                for(int i = 0; i < mensaje.size(); i++){
                    %>

                        <option value=<%mensaje.get(Integer.toString(i+1)).getIdCampeonato();%>><%mensaje.get(Integer.toString(i)).getNombreC();%></option>

                    <%
                }
            }

        %>

I need to put the object " Championship " in the .jsp " Seleccion_Campeonatos "

Thank you very much everyone in advance.

    
asked by Alfonso Rodríguez 29.09.2017 в 09:41
source

1 answer

0

I have solved my own question so you just have to import with a " page import " before the tag "'html" like this:

<%@ page import="Algoritmos.*"%>

At first I did not take this import. but after saving the change the error has disappeared.

    
answered by 29.09.2017 в 10:06