Hi, Please, help us help you ! What error do you get ? Simply saying "method don't work" is useless. I can't say anything without detailed information. The needed info is the following - is the instance name defined ? (if not, you should get an error when the jsp serlvet is created or at least at compilation) - is it initialized ? (if not, you would get a NullPointerException) - is it intialised to the right class ? You can check this by : - reding the error messages - making tests in you JSP - looking at the generated Java code BTW, why do you need to use instancename.getProperty() instead of <jsp:getProperty ... /> ? If you have a good reason to do so, you should probably write a custom tag for this purpose. Pierre-Yves -----Message d'origine----- De : A mailing list for discussion about Sun Microsystem's Java Servlet API Technology. [mailto:[EMAIL PROTECTED]]De la part de Ajay Ejantkar Envoy� : lundi 10 septembre 2001 19:21 � : [EMAIL PROTECTED] Objet : retirieving data from bean I hava a jsp page with a form. The data of the form is saved in a bean that I set up using the jsp:useBean tag. When the scope is set to request scope the data in the bean can be accessed using the jsp:getProperty tag, or the instancename.getProperty(). If I change the scope of the bean to session the jsp:getProperty and instancename.getProperty() method don't work. If anyone can help me with this I would really appreciate it. Thanks a lot. ___________________________________________________________________________ To unsubscribe, send email to [EMAIL PROTECTED] and include in the body of the message "signoff SERVLET-INTEREST". Archives: http://archives.java.sun.com/archives/servlet-interest.html Resources: http://java.sun.com/products/servlet/external-resources.html LISTSERV Help: http://www.lsoft.com/manuals/user/user.html ___________________________________________________________________________ To unsubscribe, send email to [EMAIL PROTECTED] and include in the body of the message "signoff SERVLET-INTEREST". Archives: http://archives.java.sun.com/archives/servlet-interest.html Resources: http://java.sun.com/products/servlet/external-resources.html LISTSERV Help: http://www.lsoft.com/manuals/user/user.html
