jaya-shree

Greenhorn
+ Follow
since Mar 30, 2001
Merit badge: grant badges
For More
Cows and Likes
Cows
Total received
0
In last 30 days
0
Total given
0
Likes
Total received
0
Received in last 30 days
0
Total given
0
Given in last 30 days
0
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by jaya-shree

Hello...
i am using a data structure called hashtable to store data for further reference. One hashtable stores the xml document and the other uses the xsl document. every xml document can use more than one xsl document to process the xml file.
when a second request for the same xml file goes to the server, i check from the hashtable to see if the xml file is already there. I also want to check if the request is to process the xml file with the same xsl file.Please let me know how to do it..
if somebody could send me any piece of code tht u have written, i would be grateful.
Thanks!
Jayashree
22 years ago
Hello...
i am using a data structure called hashtable to store data for further reference. One hashtable stores the xml document and the other uses the xsl document. every xml document can use more than one xsl document to process the xml file.
when a second request for the same xml file goes to the server, i check from the hashtable to see if the xml file is already there. I also want to check if the request is to process the xml file with the same xsl file.Please let me know how to do it..
if somebody could send me any piece of code tht u have written, i would be grateful.
Thanks!
Jayashree
I am working on XML,DTD,XSLT and parsing for the first time.I am doing a study on the use of saxon as the parser to parse an xml document. I have familiarity in Xerces and i know tht there is a method called createDocument() which returns an entire XML document in treeformat.
I would like to know if something similar exists to get the entire document using saxon as the parser so tht i can write a recursive function to register node handlers with each of the nodes and then call the node handlers to do things as required.
Thanks!
Hi Sanjay,
It depends upon what technologies u have been working on.I would in any case suggest tht multiple certifications would do good, if u were to get certified in one,get hold of a job and then go in for another certification while at work bcos it happens to be work ex + certifications.certifications would definitely improve ur career prospectus.
try mailing ur resume to wicliff@hotmail.com,jayesh_microcell@hotmail.com
Best of luck!!!

Originally posted by Sanjay Balu:
Hello Everone,
I would like to know wether getting certified in three technologies Sun Java, Sun Solaris, IBM XMl, will help me in my Job Search, i have two years of experience, have been jobless for past three months and so have decided to persue certifications, is it worthwile, please help me.
Sanjay Balu


22 years ago
This was the error i got on running the servlet
Error: 500
Location: /jayashree/servlet/DocumentSAXParser
Internal Servlet Error:
java.lang.IllegalAccessException: DocumentSAXParser
at java.lang.Class.newInstance0(Native Method)
at java.lang.Class.newInstance(Class.java:237)
at org.apache.tomcat.core.ServletWrapper.loadServlet(ServletWrapper.java:268)
at org.apache.tomcat.core.ServletWrapper.init(ServletWrapper.java:289)
at org.apache.tomcat.core.Handler.service(Handler.java:254)
at org.apache.tomcat.core.ServletWrapper.service(ServletWrapper.java:372)
at org.apache.tomcat.core.ContextManager.internalService(ContextManager.java:797)
at org.apache.tomcat.core.ContextManager.service(ContextManager.java:743)
at org.apache.tomcat.service.http.HttpConnectionHandler.processConnection(HttpConnectionHandler.java:210)
at org.apache.tomcat.service.TcpWorkerThread.runIt(PoolTcpEndpoint.java:416)
at org.apache.tomcat.util.ThreadPool$ControlRunnable.run(ThreadPool.java:498)
at java.lang.Thread.run(Thread.java:484)
I have an XML file and i am using the SAX implementation of the xerces parser to parse the file. I have successfully created the custom object model of the xml file.
i have then created a servlet the code of which is given below. i am calling this servlet thru an html form. However, it gives an IllegalAccessException.
Pl let me know what could be the reason.
<thecode>
/*
* Author: Jayashree
* Created: 10/01/2001 12:51:33
* Modified: 10/01/2001 12:51:33
*/
import java.io.*;
import javax.servlet.*;
import javax.servlet.http.*;
import org.xml.sax.*;
import org.xml.sax.helpers.*;
import org.apache.xerces.parsers.SAXParser;

class DocumentSAXParser extends HttpServlet
{
PrintWriter out = null;
public void init(ServletConfig cfg) throws ServletException
{
super.init(cfg);
}
public void doPost(HttpServletRequest req,HttpServletResponse res) throws IOException,ServletException
{
out = res.getWriter();
try
{
//InputStreamReader isr = new InputStreamReader(new URL("http://microcell:8080/jayashree/servlets/greeting1.xml")).openStream();
//InputSource is = new InputSource( isr );
//File filename = new File(req.getParameter("text"));
DocSAXHandler handler = new DocSAXHandler();
//DefaultHandler handler = new DefaultHandler();
//SAXParser parser = new SAXParser();
//String parserClassName = "com.sun.xml.parser.Parser";
org.xml.sax.XMLReader parser = new org.apache.xerces.parsers.SAXParser();
org.xml.sax.InputSource input = new InputSource(new FileReader("text1"));
// Full location of the file required
parser.setContentHandler( handler );
parser.parse(input);
//parser.setContentHandler(handler);
//parser.setErrorHandler(handler);
//parser.parse(filename);
}
catch(Exception e)
{
out.println(e.getMessage());
}
}
}
class DocSAXHandler extends DefaultHandler
{
private Document doc = new Document();
private Greeting g = null;
private Message m = null;
private String currentElement = null;
public Document getDocument()
{
return(doc);
}
public void startElement (String name, AttributeList atts)
{
String sname = name;
if(sname.equals("greeting"))
{
currentElement = "greeting";
}
else if(sname.equals("message"))
{
currentElement = "message";
}
else if(sname.equals("msgg"))
{
currentElement = "msgg";
}
else if(sname.equals("sendername"))
{
currentElement = "sendername";
}
else if(sname.equals("text"))
{
currentElement = "text";
}
for (int i = 0; i < atts.getLength(); i++)
{
String aname = atts.getName(i);
String type = atts.getType(i);
String value = atts.getValue(i);
}
}
public void endElement(String name)
{
if(name.equals("greeting"))
{
doc.addGreeting(g);
}
else if(name.equals("message"))
{
doc.addMessage(m);
}
}
public void characters( char ch[], int start, int length )
{
String value = new String( ch,start,length);
if(!value.trim().equals(""))
{
if( currentElement.equals("msgg") )
{
m.setMsgg( value );
}
else if( currentElement.equals("sendername") )
{
m.setSenderName( value );
}
else if( currentElement.equals("txt") )
{
m.setText( value );
}
}
}
}
</endof code>
Thanks!!!

Originally posted by shailesh sonavadekar:
what is process guys ? Why you need Process ? where it is useful ?
waiting for reply.


Hi,
In the most generic term, a process is a sequence of steps followed in order to perform a task.The result of a effective process is achieving the desired objective for which the process has been carried out.
In the software sector, the entire SLDC is a process by itself. There are the steps of planning, requirement analysis,design,coding and development,testing and implementation and maintenance carried out essentially in the listed order to finally acheive the goal of developing the solution for the client.
The software sector also offers solutions to critical areas of customer satisfaction like CRM,knowledge management,supply chain management.
Eg: To acheive customer satisfaction and ensure that the top customers receives the major response of all your available services, a hierarchy of steps are followed to understand the customer requirements,analyse and develop a solution to aid the customer to meet his deliverables.This hierarchy of steps followed in this process leads to what is called as a process.There could be subprocesses in each step of the above process which gets the goal of the process closer to the developer of the solution.

I am working on a JSP Page which is required to insert record into two tables simultaneously.This page allows the user to add a grp and grant access rights to applications for that particular grp code.
This page also has checkboxes for each application that i am listing on the page. How do i write an insert query which allows me to insert the names of those applications into the table which are checked and also the group code.There are two tables and both the tables are linked using the group code.
23 years ago