2023 2024 Student Forum > Management Forum > Main Forum

 
  #2  
22nd September 2012, 02:23 PM
Super Moderator
 
Join Date: May 2012
Re: IGNOU MCA 5th Sem Solved Assignment

Here I am attaching a file, from where you can download the Gandhi National Open University MCA 5th sem solved assignment, some of the assignment outlines are as follows:

Q1:
Create a Telephone directory using JSP and store all the information within a database, so that later could be retrieved as per the requirement. Make your own assumptions.

We have to create a telephone directory using JSP and JDBC. Here we need either two JSP or one HTML and JSP where one page is for presentation another is for processing i.e. update in the desired database. Here I developed two sample JSP page, one for presentation and another for processing.

For the detailed assignment, here is attachment:
Attached Files
File Type: zip IGNOU MCA 5th sem assignment.zip (16.8 KB, 393 views)
  #3  
1st October 2012, 02:21 PM
Unregistered
Guest
 
Re: IGNOU MCA 5th Sem Solved Assignment

I have 5th sem july 2012 solved assignments... contact on my id its.my.id.lucky.com
  #4  
5th August 2013, 12:32 PM
Unregistered
Guest
 
Re: IGNOU MCA 5th Sem Solved Assignment

please provide 5th sem ignou sovled assignment for the year 2013-14
  #5  
14th July 2014, 03:27 PM
Unregistered
Guest
 
Re: IGNOU MCA 5th Sem Solved Assignment

Kindly provide the solutions of assignments 5th sem 2014-15.
  #6  
1st September 2015, 02:52 PM
Junior Member
 
Join Date: Sep 2015
Ignou Solved 5th sem assignment for july 2015

Hey i m looking for ignou 5th sem assignment for july 2015.... help me pplz/....thanks in advance
  #7  
23rd September 2019, 10:37 AM
Unregistered
Guest
 
Re: IGNOU MCA 5th Sem Solved Assignment

Hi buddy here I am looking for IGNOU MCA 5th Sem Solved Assignment , so if you have then would you plz do share with me as I am doing preparation of its Assignment??
  #8  
23rd September 2019, 10:39 AM
Super Moderator
 
Join Date: Aug 2012
Re: IGNOU MCA 5th Sem Solved Assignment

As you are asking for IGNOU MCA 5th Sem Solved Assignment , so on your demand I am giving bellow same:
Q.1.Write a Message Driven Bean(MDB) for a new agency that has to capture the data from various news sources. The newly written MDB should accept the XML format for the news. The XML data needs to be parsed and stored in the database. The news format is as follows:


<news-id> </news-id>

<source> </source>

<data> </data>

<type_ of _ news> </type_ of_ news>

<priority> </priority>

<news_ Content.> </news _ Content..>



Answer:-



import java.util.Date;

import java.util.DateFormat;

import java.util.SimpleDateFormat;

import javax.jms.*;

import org.w3c.dom.Document;

import java.sql.*;



private class News{

private int id;

public int priority;

public date;

public String sources=,type_of_news,news_content;

public News(int id){

this.id=id;

}

public int getID(){

return id;

}

}



Public class NewsMDB implements MessageDrivenBean,MessageListener {



private NewsLocal news;

private Document dom;



public void setMessageDrivenContext(MessageDrivenContext mdc) {

try {

InitialContext ictx = new InitialContext();

} catch ( Exception ex ) {

throw new EJBException(Unable to get News Agency bean, ex);

}

}

public void ejbCreate() { }

public void ejbRemove() { }

public void onMessage(Message msg) {

XMLMessage xml = (XMLMessage)msg;

try {

dom=xml.getDocument();

saveInDB(parseDocument());

} catch ( Exception ex ) {

throw new EJBException(ex);

}

}

private void saveInDB(News ns){

try{

Class.forName();//Class required for DataBase

DriverManager.getConnection(,,); //Database file path & Userid/password

PreparedStatement st;

st=con.createPreparedStatement(Insert into news values(?,?,?,?,?,?));

st.setInt(1,ns.getID());

st.setString(2,ns.sources);

st.setDate(3,ns.date);

st.setString(4,ns.type_of_news);

st.setInt(5,ns.priority);

st.setString(6,ns.news_content);

st.execute();

st.close();

st=null;

con.close();

con=null;

}catch(SQLException se){

throw new EJBException(Unable to Save News Agency bean, ex);

}

}

private News parseDocument(){

Element docEle;

News news;

//get the root element

docEle = dom.getDocumentElement();

//get a nodelist of elements

int id=getIntValue(docEle,news_id);

news=new News(id);

news.sources=getIntValue(docEle,sources);

news.date=getDateValue(docEle,date);

news.type_of_news=getStringValue(docEle,type_of_ne ws);

news.priority=getIntValue(docEle,priority);

news.news_content=getStringValue(docEle,news_conte nt);

return news;

}



private String getTextValue(Element ele, String tagName) {

String textVal = null;

NodeList nl = ele.getElementsByTagName(tagName);

if(nl != null && nl.getLength() > 0) {

Element el = (Element)nl.item(0);

textVal = el.getFirstChild().getNodeValue();

}

return textVal;

}

private int getIntValue(Element ele, String tagName) {

return Integer.parseInt(getTextValue(ele,tagName));

}

private Date getDateValue(Element ele, String tagName) {

String startDateString = getTextValue(ele,tagName);

DateFormat df = new SimpleDateFormat(MM/dd/yyyy);

Date newDateString;

try {

startDate = df.parse(startDateString);

newDateString = df.format(startDate);

} catch (Exception e) {

throw new EJBException(e);

}

return newDateString;

}

}

IGNOU MCA 5th Sem Solved Assignment
http://passkardo.com/ignou-assignment/4


Tags
assignment

Quick Reply
Your Username: Click here to log in

Message:
Options




All times are GMT +5. The time now is 09:07 AM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, vBulletin Solutions Inc.
SEO by vBSEO 3.6.0 PL2

1 2 3 4