problems acessing propertys of a entity class, in jsp

View: New views
1 Messages — Rating Filter:   Alert me  

problems acessing propertys of a entity class, in jsp

by Edou Suilen :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

i cannot access all the property of a entity class,







entity class has these propertys:



@Entity

@org.hibernate.annotations.Entity

@Table(name = "cam")

public class Cam implements Serializable {



    private static final long serialVersionUID = 1L;

    @Id

    @GeneratedValue(strategy = GenerationType.AUTO)

    private int id;

    private String maxresolution, modelo;

    @Column(name="description", length=1000)

    private String description;

    @Column(name="effectivepixel")

    private String effectivepixel;

    private String announced, marca, lowerresolution,imageratio,sensorsize,isorating, minshuttersp, maxshuttersp,indepthrevlink, camimglink;







in jsp page:



<c:forEach var="as" items="${requestScope.sd}">

        <tr>

                                <th class="nobg"></th>

                                <th class="title">${as.modelo}</th>

                        <tr>

                                <th class="spec">Announced:</th>

                                <td>${as.announced}</td>

                        </tr>

                        <tr>

                                <th class="specalt">MaxResolution:</th>

                                <td class="alt">${as.maxresolution}</td>

                        </tr>

                        <tr>

                                <th class="spec">LowerResolution:</th>

                                <td>${as.lowerresolution}</td>

                        </tr>

                             <tr>

                                <th class="spec">maxshuttersp</th>

                                <td>${as.maxshuttersp}</td>

                        </tr>

                        <tr>

                                <th class="specalt">Image:</th>

                                <td class="alt">

                                        <img src="

                                        ${as.camimglink}

                                        " />

                                </td>

            </tr>

       <tr>

    </c:forEach>



it all works without the as.maxshuttersp, when i add that one it gives the following error.





message

descriptionThe server encountered an internal error () that prevented it from fulfilling this request.

exception

org.apache.jasper.JasperException: javax.el.PropertyNotFoundException: The class 'Entitys.Cam' does not have the property 'maxshuttersp'.

root cause

javax.el.PropertyNotFoundException: The class 'Entitys.Cam' does not have the property 'maxshuttersp'.





why can i access as.marca , as.announced etc, but not as. maxshuttersp, anyone can see the problem in here?



i pass a collection in my servlet like this:



        String Search = request.getParameter("Search").toString();

        List<Cam> camsearch = localDBBean.search(Search);

        request.setAttribute("sd", camsearch);



doest it have anything to do by the way i declare the propertys in the entity class?

i hope seomeone can help me out cuz i want to proced with my aplication, thks in advance.