File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
A friendly place for programming greenhorns!
Big Moose Saloon
Register / Login
Joined: Dec 24, 2007
Aug 14, 2008 03:34:00
abstract class Person
class Employee extends Person
Employee p = new Employee)_;
<jsp:useBean id ="person" type="Employee" >
<jsp: setProperty name ="person" property ="name" value="fred"/>
<jsp:getProperty name="person" property ="name"/>
how this will work since the set attribute in request scope and here in jsp the default scope we specified is page... explain me
Joined: Nov 06, 2000
Aug 14, 2008 05:17:00
It should not work. what did you get when you tested it?
Bosun (SCJP, SCWCD)
So much trouble in the world -- Bob Marley
I agree. Here's the link:
subject: jsp usebean
doubt on jsp:useBean tag
unable to access requested scoped attribute in page scoped JSP
Doubt in use bean
<jsp:useBean> K&B Standard Action Question on page 358.
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2013