-
-
-
How to maintain values inside form field while uploading image using jsp?
The problem I am facing is that whenever I fill details in the form and then click on upload link then request go to upload.jsp and when after uploading the form the request comes back to registration page(1st page) then the values from all fields disappear
-
Java Server Pages specification includes (Multiple choice)
Skill/Topic: Programming ConstructsA) Script language declarations, scriplets and expressions. B) JSP standard actions. C) JSP standard directivesD) A portable tag extension mechanism.
-
Which codeline must be set before any of the lines that use the PrintWriter
Skill/Topic: Programming ConstructsA) setContentWriter() B) setWriter()C) setPrintType()D) setContentType()
-
State true or false -- We can implement an interface in JSP
Skill/Topic: Programming ConstructsA) TrueB) False
-
URL encoding is the method of replacing all the spaces and other extra characters into their corresponding _______ Characters
Skill/Topic: FundamentalsA) Hex B) Binary C) Octal D) Decimal
-
What tools can be used to generate the multiple views in jsp
Skill/Topic: FundamentalsA) xalan-J B) Saxon C) Jdk1.5 D) None of the above
-
-
Exception Handling in JSP
How will you handle the exception without sending to error page? How will you set a message detail to the exception object?
-
Transfer data in JSP
How to transfer data over multiple pages?
-
-
How does a servlet communicate with a JSP page?
The following code snippet shows how a servlet instantiates a bean and initializes it with FORM data posted by a browser. The bean is then placed into the request, and the call is then forwarded to the JSP page, Bean1.jsp, by means of a request dispatcher for downstream processing.public void doPost (HttpServletRequest request, HttpServletResponse response){try {govi.FormBean f = new govi.FormBean();String...
-
-
-
Pass Control from one JSP page to another
Write Sample Code to pass control from one JSP page to another?
What JSP lifecycle methods can I override?
You cannot override the _jspService() method within a JSP page. You can however, override the jspInit() and jspDestroy() methods within a JSP page. jspInit() can be useful for allocating resources like database connections, network connections, and so forth for the JSP page. It is good programming practice to free any allocated resources within jspDestroy().The jspInit() and jspDestroy() methods are...
Ans