myfaces-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "urswagner@bluemail.ch" <urswag...@bluemail.ch>
Subject Access to managed bean in JSP
Date Tue, 23 Jan 2007 19:19:40 GMT

I would like to access the bean instance image in the jsp file

  	<managed-bean>
    	<managed-bean-name>image</managed-bean-name>
    	<managed-bean-class>org.troedel.bean.ImageBean</managed-bean-
class>
    	<managed-bean-scope>request</managed-bean-scope>
  	</managed-bean>

The jsp file generates the exception

<%@ page import="org.troedel.bean.ImageBean;" %>

<%
	String filename = request.getParameter("filename");
	image.setFilename(filename);
	image.paintImage();

%>

avax.servlet.ServletException: Unable to compile class for JSP

An error occurred at line: 3 in the jsp file: /imagefile.jsp
Generated servlet error:
image cannot be resolved

An error occurred at line: 3 in the jsp file: /imagefile.jsp
Generated servlet error:
image cannot be resolved


	javax.faces.webapp.FacesServlet.service(FacesServlet.java:152)

Mime
View raw message