Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

2 new questions

 
Greenhorn
Posts: 11
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Report post to moderator
<%@ page isErrorPage="false" %>
<%@ page errorPage="error1.jsp" %>
<HEAD>
<%@ page import="myclasses.*" %>
<jsp:useBean id="theo" scope="page" class="TT" />
<% try {
theo.computeTitle("hello");
} catch(Exception e) {
throw e;
} %>
<% String title=theo.getTitle(); %>
<TITLE><%= title %></TITLE>
</HEAD>
What is the output to the browser from the code above if the method "computeTitle()" in class TT throws a java.lang.NullPointerException?
A blank screen is sent to the browser.
No title will be shown.
The title will be java.lang.NullPointerException.
Only the output of error1.jsp.
The Title will be "null" plus the contents of error1.jsp
The memory footprint of a JSP page can be measured by serializing the generated JSP Servlet to disk and seeing how large that file is. Which one of the following statements about the above approach is TRUE?
This approach is too slow to perform on a live system.
The measurement is not accurate.
JSP pages do not have access to the Server's hard drive.
Serialization will not take into account objects referenced by the JSP page in all cases.
JSP pages cannot serialize JSP Servlets.
 
Rancher
Posts: 13459
Android Eclipse IDE Ubuntu
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Report post to moderator
This is a duplicate post of the thread here and will be closed.
Anyone who wants to help should see the other thread.
Dave
[ October 29, 2003: Message edited by: David O'Meara ]
 
Your buns are mine! But you can have this tiny ad:
a bit of art, as a gift, the permaculture playing cards
https://gardener-gift.com
    Bookmark Topic Watch Topic
  • New Topic