arunseege paramashivappa

Ranch Hand
+ Follow
since Nov 02, 2010
arunseege likes ...
Oracle Spring Java
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
7
Given in last 30 days
0
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by arunseege paramashivappa

Thank you all.It was helpful
7 years ago
hello javaranch,is there anyway we can say sendredirect()
7 years ago
Thank you.

Actually i will use XSLT at presentation tier.
7 years ago
Hell javaranch,i am stuch with one issue.This issue is regarding response from the servlet

I have written a code to download .csv file with records from DB.

To download records i am uploading a .CSV file containing telephone number.

After downloading the .CSV file page is not getting refreshed.

Below is the code snippet i am using,where i am setting response content type as test/csv.

ServletOutputStream op = resp.getOutputStream();
// Set content type of output
resp.setContentType("text/csv");
resp.setHeader("Content-Disposition", "attachment; filename=\"test\"");
op.flush();
op.close();

Please help me to resolve this issue so that page will get refreshed after csv file download or after response.

Thanks-Arun
7 years ago
Hi Paul,i went through some documentations and also in Ranch,it is said that JDK will come bundled with parsers like Saxon,Xalan,Crimson.So using the API's which JAVA has provided like JAXP,SAX,DOM ,,we need to plug in the parsers (xalan,saxon,crimson) to parse the xml and to start processing the data.

so we dont need to add extra jar files since jdk is bundled with the parsers?

one more question, how to find,which parser jdk is bundled with?
8 years ago
i know programming using jaxp,sax dom in java.I want to know what is general among those.since we already have JAXP,JDOM why we need xalam,saxon,dom4j.what are those exactly.are they implementing different set of classes and interfaces.Or like servlet API,JDBC API there is a standard API which every vendor will implement which rescue developer from learning different set of classes during migration.
8 years ago
Hi all,can someone please help me understand xml processing in java better.

like JDBC API or Servlet API,,do we have a standard API for parsing and processing XML files.

Thanks-Arun
8 years ago
hi all,i 'am stuck with integrating and using DWR in my web application.

i googled and followed every instruction to configure DWR.

Adding jar files,

making an entry in web.xml and creating new dwr.xml and making an entry there and calling method from the configured fascade fron the .jsp file like below

CaptureBreadFascade.addBread(breadNameName,{async: false,callback: function(s) { alert("fascade invoked");return true;}});
But when i tried to invoke , it is not invoking method.

i found in the server log

INFO: Starting: DwrServlet v3.0.0-RC2-final-312 on Apache Tomcat/6.0.16 / JDK 1.6.0_23 from Sun Microsystems Inc. at /fishing


Please help me to resolve this.

Thanks-Arun
8 years ago
Thank you Jesper .It worked .
8 years ago
exceprion which i am getting is

java.text.ParseException: Unparseable date: "2006-05-04T18:13:51.0Z"
8 years ago
Hi all, can anyone suggest me to resolve the problem i am stuck with.Below is the code snippet which is g
iving me parseException .

value coming from xml is <CreatedTS>2006-05-04T18:13:51.0Z</CreatedTS

SimpleDateFormat dateFormat = new SimpleDateFormat("yyyy-MM-dd'T'hh:mm:ss.SSSZ");
java.util.Date parsedDate = dateFormat.parse(e.getChild("CreatedTS",doc.getRootElement().getNamespace()).getValue());
java.sql.Timestamp timestamp = new java.sql.Timestamp(parsedDate.getTime());
dataSyncBean.setCreatedTs(timestamp);

Thanks-Arun>
8 years ago


like APIs for DOM,SAX and STAX ,APIs for XPath, XSLT, XML validation are also implemented by Parser vendors i,e parsers like Saxon,Xalan ?


i came with the understanding that Parser API (SAX,DOM,STAX) are like JDBC api.

like if we user jdbc api in our application code we can migrate to any databases just by loading driver for the perticular database.


Please correct me if m wrong.

i want to start working on xml,:

i want to parse xml using sax api and dom api.

which parser is implementing both the api's.

one more question:

is jdk bundled with implementation for both sax api and dom api ?



Thanks-Arun


On JAXP i came up with below understanding

JAXP is an XML framework by SUN that allows programmers to plug-in any W3C compliant XML parser using Java's system property files. It is not a parser by itself, but provides a level of abstraction by facilitating dynamic parser selection.

JDOM is another XML framework that integrates standard Java collection classes with any W3C compliant DOM parser allowing programmers to manipulate DOM objects as Java Collections. Very much like JAXP, JDOM sits between the application and the parser. Note that JDOM by itself is not an XML parser

Xerces is Apache's collection of software libraries for parsing, validating, serializing and manipulating XML. The library implements a number of standard APIs for XML parsing, including DOM, SAX and SAX2.


dom4j is an easy to use, open source library for working with XML, XPath and XSLT on the Java platform using the Java Collections Framework and with full support for DOM, SAX and JAXP.


these are above lines which are putting me in confusion on JAXP.

On DOM and SAX ,from the above i understood that they are standard APIs.

Hello everyone,

I'am little confused in understanding parsers.

is SAX and DOM are specifications and vendors will provide implementaions for it,(like a specification given by sun on "servlets" and vendors(weblogic,jboss etc) will provide implementaion.)

please help me on this..

Thanks-Arun