Hi friends

I have the following problem... desire to show the result of a SQL in a JSP page, the result to give in a COLLECTION, but when I call my JSP get the following error:

org.apache.jasper.JasperException: No collection found
at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:254)
at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:295)
at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:241) .....



my JSP is:

<html:form action="/listadoFormatos.do" name="listadoFormatosForm" type="co.edu.uco.forms.ListadoFormatosForm">
<logic:iterate id="miFila" name="listadoFormatosForm" property="listaFormatos">
<tr>
<td><bean:write name="miFila" property="descripcion"/></td>
<td><bean:write name="miFila" property="formato"/></td>
<td><bean:write name="miFila" property="paginaWeb"/></td>
</tr>
</logic:iterate>
-------------------------------------------------------------------------------------------------------------------------------------
my FORM is:


public class ListadoFormatosForm extends ActionForm{

//-------------------- Instance Variables
private String action = "Create";
public Collection listaFormatos = null;

//--------------------- Properties

public String getAction() {
return (this.action);
}

public void setAction(String action) {
this.action = action;
}

public Collection getListaFormatos(){
return (this.listaFormatos);
}

public void setListaFormatos(Collection collection){
System.out.println("paso FORM");
this.listaFormatos = collection;
}

public void reset(ActionMapping mapping, HttpServletRequest request) {
this.action = "Create";
this.listaFormatos = null;
}
}

-------------------------------------------------------------------------------------------------------------------------------------

my ACTION is:

public class ListadoFormatosAction extends Action{
public ActionForward execute(ActionMapping mapping,
ActionForm form,
javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response) throws java.lang.Exception{

Collection listaFormatosCollection = new ArrayList();
ListadoFormatosForm listadoFormatosForm = null;
..........

listadoFormatosForm.setListaFormatos(listaFormatosCollection);

}
-------------------------------------------------------------------------------------------------------------------------------------

and my STRUT-CONFIG is:

<form-beans>
<form-bean name="listadoFormatosForm" type="co.edu.uco.forms.ListadoFormatosForm"/>
</form-beans>


</action-mappings>
<action name="listadoFormatosForm" path="/listadoFormatos" scope="request"
type="co.edu.uco.action.ListadoFormatosAction">
<forward name="bien" path="/jsp/login.jsp" redirect="false" />
<forward name="mal" path="/jsp/error.jsp" redirect="false" />
</action>
</action-mappings>
-------------------------------------------------------------------------------------------------------------------------------------


Thanks in advance

Milson

PS: excuse me, my english is very bad

_________________________________________________________________
Charla con tus amigos en línea mediante MSN Messenger: http://messenger.latam.msn.com/



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



Reply via email to