Reputation: 422
I'm having a bit of a problem tracing where this error comes from, in my jsp I have a form set like this:
<jsp:useBean id="usuario" type="com.cide.cajaVirtual.EContinua.model.Estudiantes" scope="request">
</jsp:useBean>
<jsp:useBean id="compras" type="com.cide.cajaVirtual.EContinua.model.EstudiantesCompras" scope="request">
</jsp:useBean>
<% Calendar now = CalendarFactoryUtil.getCalendar(); %>
<portlet:actionURL name="registrarCompra" var="registrarCompraURL">
<aui:form name="fmCompra" action="<%=registrarCompraURL.toString() %>" method="post">
Then in my portlet class I have:
public class CajaVirtualPortlet extends MVCPortlet {
/*
* El portlet RegistroUsuariosComprasPortlet permite a los estudiantes llenar la forma
* de registro y hacer una compra de la oferta de Educación Continua
*
*/
public void addCompra(ActionRequest request, ActionResponse response) throws Exception {
ThemeDisplay themeDisplay =
(ThemeDisplay) request.getAttribute(WebKeys.THEME_DISPLAY);
}
public void registrarCompra(ActionRequest request, ActionResponse response) throws Exception {
}
But I keep getting the error on Eclipse that says "registrarCompraURL cannot be resolved"
I ask this because honestly I don't have an idea of what I'm doing wrong, as I said I lost trace of what I was doing while typing in Eclipse. Please someone help!
Upvotes: 0
Views: 65
Reputation: 4210
I suspect portlet action url tag is not closed thats why you are facing this issue.
Try <portlet:actionURL name="registrarCompra" var="registrarCompraURL"/>
Also make sure you have taglib declared for it like.
<%@ taglib uri="http://java.sun.com/portlet_2_0" prefix="portlet" %>
Upvotes: 1