Interview Questions Answers.ORG
Interviewer And Interviewee Guide
Interviews
Quizzes
Home
Quizzes
Interviews Java Programming Language Interviews:Advanced JavaCore JavaEclipseFull Stack Developer (Java)HibernateIBM WebSphereInternationalization LocalizationJ2EEJ2MEJ2SEJavaJava ANTJava AppletJava BeansJava ClassesJava EJB ProgrammingJava Game DeveloperJava GUI FrameworkJava JNDIJava JNIJava JSP ProgrammingJava Message Service (JMS)Java Multi-ThreadingJava Networking - Sockets and RMIJava PatternsJava SecurityJava Server FacesJava Servlet ProgrammingJava Software EngineerJava Swing ProgrammingJava TechnicalJava ThreadsJava Transaction APIJava Web ServicesJavaMailJBossJDBCJMSJSFPortal and PortletRMISpring FrameworkSr.Java Web DeveloperStrutsSunOneSwing AWTSWT JFace
Copyright © 2018. All Rights Reserved
Java Technical Interview Question:
How to use beans in JSP?
Submitted by: AdministratorJava Beans are reusable components. They are used to separate Business Logic from Presentation Logic. Internally a bean is just an instance of a class. JSP’s provide three basic tags for working with Beans.
* <jsp : useBean id="bean name" class="bean class" scope= "page | request | session | application " />
bean name = the name that refers to the bean.
Bean class = name of the java class that defines the bean.
* <jsp:setProperty name = “id” property = “someProperty” value = “someValue” /
id = the name of the bean as specified in the useBean tag.
property = name of the property to be passed to the bean.
value = value of that particular property .
* <jsp:getProperty name = “id” property = “someProperty” />
Submitted by: Administrator
* <jsp : useBean id="bean name" class="bean class" scope= "page | request | session | application " />
bean name = the name that refers to the bean.
Bean class = name of the java class that defines the bean.
* <jsp:setProperty name = “id” property = “someProperty” value = “someValue” /
id = the name of the bean as specified in the useBean tag.
property = name of the property to be passed to the bean.
value = value of that particular property .
* <jsp:getProperty name = “id” property = “someProperty” />
Submitted by: Administrator
Copyright 2007-2025 by Interview Questions Answers .ORG All Rights Reserved.
https://InterviewQuestionsAnswers.ORG.
https://InterviewQuestionsAnswers.ORG.