QA

Q&A

Q1:

In JSP chaining, what will happen if all the JSPs write to the output stream of the response using out.println()?

A1:

In such a scenario, the output generated by all the JSPs will be collected together and sent to the browser. This is similar to the servlet chaining and filter chaining that you studied on Day 4, where each of the servlets or filters in the chain receive both the request and response objects.

Q2:

Can I add any of my own tags in JSP?

A2:

Addition of custom tags is now supported in the JSP 1.2 specification. This is done using custom tag libraries. You will be studying JSP tag libraries on Day 6.

You cannot add custom tags within the JSP apart from this method. Any such tags will be considered as HTML code and ignored by the JSP engine's parser.



Sams Teach Yourself BEA WebLogic Server 7. 0 in 21 Days
Sams Teach Yourself BEA WebLogic Server 7.0 in 21 Days
ISBN: 0672324334
EAN: 2147483647
Year: 2002
Pages: 339

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net