Announcement Announcement Module
Collapse
No announcement yet.
how to access scoped variables in jsp? Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • #16
    Hi Paul,
    I tried but i have an error. this is my flow:

    <var name="attribute" class="it.cilab.uniba.recommender.model.Attribute"/>

    <on-start>
    <evaluate expression="attributeService.listAll()" result="attribute" />
    </on-start>

    <view-state id="insertAttribute" view="insertAttribute" model="attribute">
    <binder>
    <binding property="idattribute" required="true" />
    </binder>
    <transition on="confirm" to="insertfse" />
    </view-state>

    <view-state id="insertfse" view="insertfuzzysetelement">
    </view-state>
    and this is my jsp:

    <form:form modelAttribute="attribute">
    <table border="0" width="auto">
    <c:forEach var="attribute" items="${attribute}">
    <tr><td>
    <form:radiobutton id="idattribute" path="idattribute" value="${attribute.idAttribute}"/>
    </td>
    <td>${attribute.name}</td>
    </tr>
    </c:forEach>
    </table>
    <input type="submit" name="_eventId_confirm" value = "inserisci" />
    </form:form>
    but i have this error:
    ERROR: org.springframework.web.servlet.tags.form.RadioBut tonTag - java.lang.NullPointerException
    12-mar-2011 2.15.13 org.apache.catalina.core.ApplicationDispatcher invoke
    GRAVE: Servlet.service() for servlet jsp threw exception
    java.lang.NullPointerException
    ERROR: org.springframework.web.servlet.tags.form.RadioBut tonTag -
    java.lang.NullPointerException
    12-mar-2011 2.15.13 org.apache.catalina.core.ApplicationDispatcher invoke
    GRAVE: Servlet.service() for servlet jsp threw exception
    java.lang.NullPointerException
    ERROR: org.apache.tiles.jsp.context.JspTilesRequestContex t - JSPException while including path '/WEB-INF/jsp/insert/insertAttribute.jsp'.
    javax.servlet.jsp.JspException: ServletException while including page.
    Caused by: org.apache.jasper.JasperException: An exception occurred processing JSP page /WEB-INF/jsp/insert/insertAttribute.jsp at line 16

    13: <table border="0" width="auto">
    14: <c:forEach var="attribute" items="${attribute}">
    15: <tr><td>
    16: <form:radiobutton id="idattribute" path="idattribute" value="${attribute.idAttribute}"/>
    17: </td>
    18: <td>${attribute.name}</td>
    19: </tr>
    attached is the error log.
    where i wrong? how i can fix this error?

    please help me

    thank you

    Comment

    Working...
    X