Question
How can i declare methods within my jsp page?

Answers

You can declare methods for use within your JSP page as declarations. The methods can then be invoked within any other methods you declare, or within JSP scriptlets and expressions.
Do note that you do not have direct access to any of the JSP implicit objects like request, response, session and so forth from within JSP methods. However, you should be able to pass any of the implicit JSP variables as parameters to the methods you declare.
For example:
Another Example:
file1.jsp:
file2.jsp
<%test(out);% >   Your Comment




More Software Questions..
What is the inputsplit in map reduce software?

What is software configuration management?

What Is Java Api For Xml-based Rpc (jax-rpc)?

How can you implement fine-grained auditing?

What is IBM’s simple explanation for Big Data’s four critical features?

What is static synchronized method in JDBC API? Give an example?

What does the NULLIF function do?

What happens if a start method is not invoked and the run method is directly invoked?

Should we override finalize method

what is the difference between mysql_fetch_array and mysql_fetch_object?

How will XML affect my document links?

Why to use Style Sheets?

What are Filters in MVC?

Can you explain Application layer in OSI model?

How to define new testplan attributes?

What are the minimum system requirements to run Photoshop? Is it possible to run Photoshop over linux?

Which oracle package is used to manage the oracle lock management services?

What is Latch Up? Explain Latch Up with cross section of a CMOS Inverter. How do you avoid Latch Up?

What is marker interface?

What types of partitioning are there for BW?



Search
Can you Answer!!
  • Q Explain the configuration details of blaze ds?
  • Q State your short term and long term goals.
  • Q How is the length of an ethernet ii frame calculated?
  • Q The air expeditionary force (AEF) doctrine is vital to understanding how best to employ air and space power along with understanding the proper way to do all of these except (A)Deploy (B)Sustain (C)Present (D)Organize
  • Q What is a common thing in Radio Wave, X.Ray and Visible Light?
  • Q What is the Italian word, meaning 'head', for the clamp-like gadget used on guitars and other fretted stringed instruments to change key and tuning?
  • Q The Electronic city of India is
  • Q Bangladesh currency
  • Q What is the difference in between C++ and Java ? can you explain in detail?
  • Q Difference between an implicit and an explicit cursor?
  • Q First Indian to score an ODI double century is___.