Search This Blog

Friday, September 25, 2009

part-1 JSP assignment CDAC

cdac course original technical assignments,questions,qualifying paper questions,objective question module test for dac,dabc,desd,dssd,acts pune,bangalore,noida,hyderabad

Jsp assignment with question objective and solution

JSP Assignment

1) Write a simple JSP to display a message “Welcome to DABC” using scriptlets, expressions.
2) Write a simple JSP using scriptlets to display the count of requests to that page.
3) Write a simple JSP using declaration and expression to display the count of requests to that page.
4) Write a JSP program to override the jspInit method in your program to obtain the initialization parameters in DD and display those parameters to the user.
5) Write a simple Bean Class Person with properties name and age. Use the standard actions to set and get the property of the bean class using the standard actions.
6) Repeat the above problem to set the property by taking input from the user without using “value” attribute of setProperty standard action, using param tag and without using param tag.
7) Create 2 Bean Classes and make one bean, the property of other. Write a JSP program to retrieve and display the property of a property.
8) Create a Text-field to take username as input and store it at application scope in a List object attribute. Everytime the name is submitted by user, display all the previously stored names using [] operator of the EL.
9) Write a JSP program with EL function invocation to display some message to the user.(using TLD and POJO)
10) Write a JSP program with EL function invocation to pass empno as argument to the function and get back the complete record for that employee and display it to the user. (Using TLD and POJO).
11) Write an application to create separate header and footer JSP fragments and include it in other 2 JSP pages using directive.
12) Modify the above program to customize the message in the header for the different pages using standard action.
13) Write a HTML form to take input from the user in the form of name of the page to be displayed, say, A.jsp or B.jsp, in the form of radio button, with action to A.jsp. If the user sends in the request for A.jsp then display the page otherwise forward the request to B.jsp using standard action.
14) Demonstrate the use of , , , , , tags
15) Develop an Airlines Reservation System based on MVC architecture, using Servlets, JSP, JSTL, JDBC.

Part2 EJB Assignment

EJb tutorial go here click me

List of Assignments for cdac acts dabc,dac,dssd,desd presentation and question in cdac exam and in cdac .
CDAC is the best teachers are good i wish never had done btech only cdac:).

1. Create an EJB Component for displaying a message
2. Implement an Income Tax Calculator as a Stateless Session Bean.
3. Create a BMICalculatorBean using Stateless Session Beans with max capacity=10 and initial capacity=3 of beans in the pool.
4. Implement an Income Tax Calculator as a Stateful Session Bean
5. Repeat above exercise(assignment4) with the following parameters for beans in the cache
a. idle timeout (seconds) = 60 secs
b. max beans in cache = 3
c. session timeout (seconds) = use default value
d. cache type = NRU
6. Implement an AccountBean using Stateless Session Bean. Provide the account number and the pin number. Show the details of the account like bank balance, last transaction date, etc on verifying the user.
(Hint: take the support of Security Middleware service)
7. Write a simple application that writes to a message queue to test the message driven bean.
8. Develop an Entity Bean having the following details:
a. Create a table AirLine
1. HGF Create a table called "AirLine" as follows. Use MySQL as your backend database.
Table Name : AirLine
Columns : flightNumber( varchar(10) )
carrier ( varchar(10) )
type ( varchar(10) )
capacity (int)
availability (int)
departureCity ( varchar(10) )
arrivalCity ( varchar(10) )


PrimaryKey (flightNumber)
2. Populate table with some data
b. Implement the CMP Entity Bean for embodying the above business data.
c. Implement the finder methods for the following tasks.
1. find all airlines which fly between two given cities (departureCity and arrivalCity)
2. find all airlines by their type (type)
3. find all airlines matching the given string (carrier)

9. Develop a Message Driven Bean having the following information.
a. Develop a swing based JMS Producer to send images as messages to the JMS Topic which can be subscribed by various JMS consumers to retrieve and display. Implement a File Chooser dialog in your application to browse and choose images from local system.
b. Develop a swing based JMS Consumer to retrieve the image from above topic and display.
c. Define and configure a JMS Topic in WebLogic and test the above producer and consumer
10. Use the above designed EJB (Assignment 2 and assignment 4) in your JSP.
11. Create a web enterprise application with the following details:
This HTML page has two data fields so the user can enter a social security number and a multiplier. When the user clicks the Submit button, BonusServlet retrieves the end user data, looks up the session bean, and passes the user data to the session bean. The session bean calculates a bonus and returns the bonus value to the servlet. The servlet then returns another HTML page with the bonus value for the end user to view.

PART1-Some EJB presentation

here you will find all about EJB basics ,EJB tutorial all in this presentation ppt or power point slides which you can also download.

cdac technical questions, original presentation material for dac,dabc,desd,dssd and acts bangalore,hyderabad,pune

This presentation consist of
1)Distributed computing
2)location transparency
3)Distributed Applications.
4)Client-Server Programming or Client-Server Architecture
5)CLIENT-SERVER MODEL
6)RPC (Remote Procedure Calls)
7)RMI (Remote Method Invocation)
8)DCOM(Distributed Component Object Model)
9)what is CORBA(Common Object Resource Broker Architecture)?
10)what is EJB , DCOM , RMI?
11)what is Business Interface / Remote Interface/ Service Interface/ Business Agreement Document ?
12)what is naming registry in rmi ?
13)advantages of usng ejb
14)weblogic application server and weblogic portal 10.3 provides easy functionality.
15)Includes security feature JAAS
16)location Transparency,Automatic Redeployment,Remote Method Calls,Pooling,Caching/ Buffering
17)Bean Developer,Tool Provider,J2EE / Application,Server,Provider ,Application ,Assembler,Deployer,Project Admin / System Admin.
18)DIFFERENCE BETWEEN WEB SERVER AND APPLICATION SERVER
19)SOME POPULAR APPLICATION SERVERS
S.NO Application Server Name Vendor Name
1. Weblogic BEA
2. WebSphere IBM
3. Jboss Apache
4. SunOne Sun Microsystems
5. PAS (Pramathi Application Server) Pramathi
6. O10gAS(Oracle 10g Application Server) Oracle Corp.

7. JRun Adobe

20)ASYNCHRONOUS COMMUNICATION USING MESSAGE DRIVEN BEAN

21)POINT-TO-POINT (PTP) MODEL
22)WHY EJB-QL
23)EJB QUERY LANGUAGE
24)CALLBACK METHODS (CMP AND BMP ENTITY BEANS)
25)LIFE CYCLE OF BMP ENTITY BEAN
26)LIFE CYCLE OF CMP ENTITY BEAN
27)HOME INTERFACE OF SESSION BEANS AND ENTITY BEANS
28)INTERACTION AMONG CLIENT, BEAN INSTANCE, CONTAINER FOR ENTITY BEAN (CLIENT CREATE() CALL)
29)CMP VS. BMP
30)BENEFITS OF WEBLOGIC.EJBC TOOL
31)SECURITY MIDDLEWARE SERVICE
32)DIRECTORY SERVICE

ppt aka presentation here
download

Friday, September 11, 2009

PART-6 RMI remote method invocation

PART-6 remote invocation method

RMI enables the programmer to create distributed Java applications, in which you can invoke methods on Java objects which resides on other Java virtual machines, possibly on different hosts.
A Java program can make a call on a remote object once it obtains a reference to the remote object, by looking up the remote object in the naming service provided by RMI.
RMI uses object serialization to marshal and unmarshal parameters.
this presentation includes
Stub
lives on client
Initializing a call to the remote object
Marshalling arguments to a marshal stream
Unmarshaling the return value from a marshal stream
Skeleton
lives on server
receives requests from stub
talks to true remote object
delivers response to stub
RMI
download

PART-5 JAVA IO Programming

PART-5 this presentation will be on I/O programming.
include
1)Streams input stream output stream
2)Byte stream
3)fileinputstream
4)fileoutputstream
5)bytearrayinputstream
6)byteoutputstream
7)reader
8)inputstream
9)writer
10)output stream
11)filereader
12)buffered reader
13)Serialization
14)ObjectInputStream
IO Presentation
download

PART-4 AWT abstract window toolkit

This presentation wil be on AWT(Abstract Window Toolkit) and i bet you again it is much better than any tutorial on awt.

lets give you some introduction

AWT classes form 3 categories:

Graphics
colors, fonts, images, polygons, …
GUI components: buttons, Check box, Scroll bar, …
Container class contains components.
Menus.
Layout Managers
Gives rule for graphical layout of components in a container
Ex: components in grid layout

AWT prsentation

download

It includes:-
1)components consist of container which has panel and other objects of components are canvas,button,checkbox,choice,label,list,scrollbar,window,dialog
2)Window
Top level window without borders,Titlebar,setVisible() makes window visible
a)pack() resizes window to fit components in it
b)dispose() frees resources when window is not needed (Releases all of the native screen resources used by this Window, its subcomponents, and all of its owned children. That is, the resources for these Components will be destroyed, any memory they consume will be returned to the OS )

3) in this presentation you will also know about borderlayout,gridlayout,flowlayout,gridbaglayout

4)ActionListener ,AdjustmentListener ,ComponentListener, ContainerListener,FocusListener ,ItemListener ,KeyListener ,MouseListener ,MouseMotionListener
,TextListener ,WindowListener.

5)MouseEvent - generated by mouse activity
PaintEvent - generated when a component is painted
TextEvent - generated when a text component is modified
WindowEvent - generated by window activity like minimizing or maximizing.

PART-3 collection framework,list,set,map

PART-3 this presentation is going to be on collection framework and you just need to read it better than any tutorial on collection.
difference between arraylist,vector and linklist

It includes:
1)Core Collection Interfaces
2)Collection, Set, List, Map
3)Object Ordering
4)Comparable, Comparator
5)More Core Collection interfaces
6)SortedSet, SortedMap
7)Implementations
8)Algorithms

here is the presentation alias ppt
download

some of the key points about collections-


List- The List interface extends the Collection interface to maintain of elements that need not be unique ArrayList
Map-A basic interface that defines operations for maintaining mappings of keys to values
SortedMap-Extends the Map interface for maps that maintain their mappings keys in sorted order.

Sunday, September 6, 2009

PART-2 core java classes and package

PART-2 this presentation ppt consist of classes and package
classes and package presentation
download

It includes
1)how create package in java?
2)public private default modifiers
3)access control rules java
4)polymormishm overiridng interface
5)inner abstract class example code

PART-1 core java cdac material beginners assignment presentation

PART-1
HI java enthusiast ,cdac students,core java basic study material..
All here just step by step and you can be the champion
download presentation in core java and try working

core java introduction presentation ppt
java introduction presentation
download

this presentation consist of
1)java robust nature
2)java platform independent
3)what is jvm
4)difference between c++ and java
5)object priented language comparison
6)escape sequence description,data type
7)difference between instance class and local variable
8)naming convention
9)reserved words
10)java new operator
11)finalize,static,this difference
12)jdk tools and j2sdk