How to connect jsp and java file?



How to connect jsp and java file?..

Answer / Nitin Pratap Singh

You can connect a JSP (JavaServer Pages) page with a Java class by using JavaBeans, utility classes, or custom tag libraries. One common approach is to create a JavaBean, which encapsulates data and behavior, and then use it within the JSP page to provide dynamic functionality.

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More JSP Interview Questions

Can we use methods in JSP? If so where the methods are stored in servlet class file?

6 Answers   Bodhtree, Cognizant, Persistent, TCS,


What is jstl?

1 Answers  


What is jsp and why it is used?

1 Answers  


What are the different scope values for the jsp objects?

1 Answers  


How do I set password expire time period?

1 Answers  


What language is jsp?

1 Answers  


write a program in javasacript to shake the window

1 Answers  


Why jsp is better over static html also explain lifecycle of a jsp?

1 Answers  


List down the major differences between the jsp custom tags and java beans.

1 Answers  


Can I stop jsp execution while in the midst of processing a request?

1 Answers  


What is the need of jsp?

1 Answers  


What is the use of session management?

1 Answers  


Categories