File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Web Component Certification (SCWCD/OCPJWCD) and the fly likes usebean and scope Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Certification » Web Component Certification (SCWCD/OCPJWCD)
Bookmark "usebean and scope" Watch "usebean and scope" New topic
Author

usebean and scope

Rodrigo W Bonatto
Ranch Hand

Joined: Aug 20, 2004
Posts: 62
Hi,

I'm having problems with the following tag:

<jsp:useBean id="model" class="beanPackage.BeerExpert" scope="application">
<jsp:setProperty name="model" property="name" value="new value" />
</jsp:useBean>

when I try to get the property value of model bean using EL as follow:

Name: [${applicationScope["model"].name}]

I have the follow result:

Name: []

What am I doing wrong?

Thanks in advanced.

Rodrigo


SCJA, SCJP, SCJD, SCWCD, SCBCD5, SCDJWS, SCEA5
Nitish Bahadur
Ranch Hand

Joined: Aug 25, 2003
Posts: 118
Assuming you are using a Web Container that implements JSP 2.0 spec such as Tomcat, try putting this on top of your page:

<%@ page isELIgnored="false" %>

What do you see now?
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: usebean and scope