JavaScript and JSP Web Development
Covers JavaScript fundamentals, DOM manipulation, event handling, and JSP server-side development techniques
Questions
Validations can be performed by
- Map.xml only
- page handler only
- both map and page handler
- None of the above
Page Handlers for the page are defined in your
- map.xml
- web.xml
- ps.xml
- tag libraries
MetaDataAlias means
- Additional information for MetaDataReader
- Specifies complete class name of MetaDataReader class used to process the MetaData
- Field Name to use from metadata xml file
- .Should be at “2.0” unless you have specific reason for a different version
Custom tags are defined in
- tag libraries
- JSP
- Servlet
- Web.xml
How do u build a composite JSP?
- using <@include>
- using <jsp:include>
- using <@composite>
- using <jsp:composite>
Metadata Alias means
- Field Name to use from metadata xml file
- Additional information for MetaDataReader
- Specifies complete class name of MetaDataReader class used to process the MetaData
- Should be at “2.0” unless you have specific reason for a different version
What is iBatis ?
- A SQL Mapper
- A J2ee Framework
- A JDBC Framework
- An ORM Tool
Java script case sensitive
- True
- False
Java script does not provide error handling through try-catch block
- True
- False
What are the ways to assign event handlers in java script (for example, to show a message box while closing the window) ?
- window.onunload=function() { alert('closing'); }
- window.onunload+=onClose; function onClose() { alert('closing'); }
- window.onunload=onClose; function onClose() { alert('closing'); }
- All the above
How will you make a function to execute after 4 seconds ?
- setTimeout('functionname()',4)
- setTimeout('functionname()',4000)
- setTimeout('functionname()',400)
- None
How will you get the html object in java script using its ID ?
- var obj=document.findControl('controlId');
- var obj=document.getObjectById('controlId');
- var obj=document.getElementById('controlId');
- var obj=document.getObject('controlId');
From the current browser window, how to change the URL of the browser window which opened this current window ?
- window.parent.location='newpage.html'
- window.top.location='newpage.html'
- window.opener.location='newpage.html'
- Cannot be done
How to check if a value is a number?
- if (isNumeric(numberVar)) {}
- if (!isNaN(numberVar)) {}
- if (isNumber(numberVar)) {}
- if (type(numberVar)=='Number') {}