Cracking the Java Coding Interview pdfdrive com


is an important security feature for the end-user. Without it, applets would


Download 1.48 Mb.
Pdf ko'rish
bet38/182
Sana02.05.2023
Hajmi1.48 Mb.
#1423275
1   ...   34   35   36   37   38   39   40   41   ...   182
Bog'liq
Cracking the Java Coding Interview ( PDFDrive )

is an important security feature for the end-user. Without it, applets would
be free to modify the contents of a user’s hard-drive, or to read its contents
and send this information back over a network.


Digitally signed applets can request permission to access the local file
system, but the easiest way around the problem is to read and write to
remote files located on a network drive. For example, in conjunction with a
CGI script or servlet, you could send HTTP requests to store and retrieve
data.
How can I call a Java method from Javascript?
Direct Web Remoting is an open source Java library which allows for easy
integration of AJAX into your web site. It allows you to call Java methods
directly from Javascript.
How do I find whether a parameter exists in the request object?
boolean hasFoo = !(request.getParameter(”foo”) == null ||
request.getParameter(”foo”).equals(”"));
or
boolean hasParameter =
request.getParameterMap().contains(theParameter); //(which works in
Servlet 2.3+)
What is the difference between RequestDispatcher and sendRedirect?
RequestDispatcher: server-side redirect with request and response objects.
sendRedirect : Client-side redirect with new request and response objects.
What is the difference between directive include and jsp include?
<%@ include>: Used to include static resources during translation time.
JSP include: Used to include dynamic content or static content during
runtime.
What is the difference in using request.getRequestDispatcher() and
context.getRequestDispatcher()?
request.getRequestDispatcher(path): In order to create it we need to give

Download 1.48 Mb.

Do'stlaringiz bilan baham:
1   ...   34   35   36   37   38   39   40   41   ...   182




Ma'lumotlar bazasi mualliflik huquqi bilan himoyalangan ©fayllar.org 2024
ma'muriyatiga murojaat qiling