How to run java program in jsp page?



How to run java program in jsp page?..

Answer / Suresh Singh Rawat

To run a Java program within a JSP page, you can use JSP Scriptlets (<% ... %>), but it's generally not recommended due to maintainability and security concerns. A better approach is to create a Servlet or a standalone Java class and call it from the JSP page.

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More JSP Interview Questions

What are jsp and servlets?

1 Answers  


Why is _jspservice() method starting with an '_' while other life cycle methods do not?

1 Answers  


What is a page directive?

1 Answers  


How to implement a thread-safe jsp page?

3 Answers  


What is the most needed for STRUTS ?

2 Answers   Trigent,


How many tags are provided by jstl?

1 Answers  


Can an interface be implemented in the jsp file?

1 Answers  


How can my application get to know when a httpsession is removed?

1 Answers  


What is difference between java and jsp?

1 Answers  


How to find the hidden answers present in an online exam?

3 Answers  


What is meant by session management?

1 Answers  


What is client side technology?

1 Answers  


Categories