| 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?
|
 |
 |
|
|
subject: usebean and scope
|
|
|