hi

is your getFilm_id returning a integer, if so it must be giving a error due
reason that the parameters can only be of string format they will have to be
changed to int in the bean.

try converting it to a string by using java.lang.Integer.toString(
getFilm_id() )

Hope this helps

regards
Amit
> -----Original Message-----
> From: Ian Graham [SMTP:[EMAIL PROTECTED]]
> Sent: Wednesday, November 24, 1999 4:25 PM
> To:   [EMAIL PROTECTED]
> Subject:      JRun and setProperty
>
> He everyone,
>
> I have just got Jrun up and running. I have JSPs calling beans etc but I
> am having problems with the setProperty routine.
>
> They were all working fine when I was using JSWDK1.0.1. I have definately
> go the routine in the Bean.
>
> I am using the following in the JSP:
>
> <jsp:setProperty name="cinemaFilmBean" property="film_Id" value="<%=
> cinemaBean.getFilm_id() %>" />
>
> I have the setFilm_Id(int x) in the cinemaFilmBean???
>
> What could possibly be going wrong??
> It keeps producing the following error:
>
> javax.servlet.ServletException:
> Found 1 semantic error compiling
> "D:/JRun/jsm-default/services/jse/servlets/jsp/scripts/films/filmBooking.j
> ava":
>
>     47. if (cinemaSessionBean.getCinema_id() != 0) {
> JSPRuntime.setBeanProperty(filmCinemaBean, "filmCinemaBean", "cinema_Id",
> cinemaSessionBean.getCinema_id() );
>
> <-------------------------------------------------------------------------
> ---------------------------------->
> *** Error: No match was found for method
> "setBeanProperty(films.beans.FilmCinemaBean, java.lang.String,
> java.lang.String, int)"
>
>
> Thank you,
> Ian

===========================================================================
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
FAQs on JSP can be found at:
 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.html

Reply via email to