What are JSP scripting elements?

Answer Posted / vikas

Between <% and %> tags,any valid Java code is called a
Scriptlet. This code can access any variable or bean declared.

For example,to print a variable.
<% String username = "visualbuilder" ;
out.println ( username ) ; %>

Is This Answer Correct ?    8 Yes 7 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Explain how you understand the action tag and jsp action elements.

543


Java Server Page I can use a function in two ways: Either I declare or I declare <%@ page import = "mypack.mysubpack.MyClass" %> In each case I can call a function later by coding MyClass.myFunction(); So what is the difference between the two variantes? Why are Beans invented if we don't need them because we have the import statement ? please guide me its an humble request to you reader if u know n i'll be thankful to you...........

1688


Is the session object always created on the jsp page, is it possible to disable its creation?

510


How can I override the jspdestroy() method within a jsp page?

503


What are jsp declarations?

537






What are the benefits of pagecontext implicit object?

769


Why are jsp pages the preferred api for creating a web-based client program?

542


What is the difference between a jspwriter and a servlet printwriter?

515


Can a jsp page process html form data?

574


What is a jsp directive?

467


Can constructor be used instead of init(), to initialize servlet?

507


Explain handling of runtime exceptions.

645


Which directive is used in jsp custom tag?

523


Explain the advantages in jsp?

527


How do I use sendredirect?

512