subathra sangameswaran

Greenhorn
+ Follow
since Nov 19, 2005
Merit badge: grant badges
For More
Cows and Likes
Cows
Total received
In last 30 days
0
Forums and Threads

Recent posts by subathra sangameswaran

Hi Guys,
I used an external apache parser using the following system properties and the problem is solved.
-Djavax.xml.parsers.DocumentBuilderFactory=org.apache.xerces.jaxp.DocumentBuilderFactoryImpl
-Djavax.xml.transform.TransformerFactory=org.apache.xalan.processor.TransformerFactoryImpl\

Apart from that i did
DocuementBuilderFactory.setNamespaceAware(true)

Thanks and have a nice weekend!
Hi Paul,
Thank you. You are correct. After the hint you gave yesterday,i am trying to get the doctype declaration in the result of the first transformation, so that the second transformation is successful. I tried adding both in my first xsl and in the second xsl <xsl:output doctype-system="/tmp/TestSuite.dtd"/>. I tried transformer.setOutputProperty("doctype-system","/tmp/TestSuite.dtd"). But i cannot get the doctype declaration in the result of the first transformation. When i use org.apache.xalan.xslt.Process, i get the Doctype declaration in the resultant transformation. But not using jaxp transformer. What can be done? Where do I err? Thanks again! Regards, Subha.
Hi Guys,
Thanks Paul for your reply.
The problem is that i am not the owner of the XML file.
The xml files are created by the customers of our application.
What about the XML files that are existing and running since inception.
I cannot change all this data.
The attribute is declared in the DTD. I am actually doing two transformations.The first time i am not getting any errors. The transformed Document object, i am transforming again, and this time the problem arises.
I do not totally understand why the problem does not arise the first time time and but only the second time.
The xsl looks alike, the DocumentBuilderFactory,DocumentBuilder,Transformer etc. object creation code are identical.
Have a nice day!
Regards
Subha.
Hi Guys,
I am migrating a java application from java1.4 to java 1.5.0. The XML parser in Java is creating problems.
I am doing a transformation using the jaxp Transformer. From the DOMResult object, i am transferring the results using the importNode, appendNode methods.
In my XML i am using an attribute xml:space="preserve" in an element. I am getting NAMESPACE_ERR,because of this attribute. The lookupNamespaceURI method with prefix xml, brings null. My XML gets truncated after this xml:space="preserve" attribute.
How can I solve this issue?
If there is a problem with the java5 internal parser, is there a workaround?
Else how can I make java use an external parser?
Thanks in advance for any probable solution or comments?
Have a nice day!
Regards,
Subha.
Hi All,
I got 70 questions although I got marks as if I got only 69 questions. Did you guys also faced 70 questions?
Hi Bhavna,
I think the real exam questions are more straight forward. But topics that we think that are easier to answer(like DD and patterns), they twist the question making us think for a while.
In a 30 question bundle, I could certainly answer 25 of them correct.
Have a nice day!
Regards,
Subha.
Hi,
I cannot exactly say, how long i actually required because i was waiting for the HF SCJP 5 book(prerequisite exam). I was generally reading for over a period of 3 months, as I got the HFSJ book long before in November last year.
But I certainly feel 3hours study for 4 continuous weeks is sufficient.
I had 1 year experience in servlet technology(although not jsp).

I used mostly mock questions from http://www.jdiscuss.com/. However i do not have a list. i did a general google search and used a few sites with questions.

I meant that some question were ambiguous themselves. If I give weightage to the first part of the question, one answer is right and if i give weightage to the second part of the question, another answer is correct.
We have to think the same way as the exam creator to settle on the deciding factor. Anyhow it is just my feeling.
But otherwise the exam is set with a very friendly attitude(mostly the time factor).

Thanks and regards,
Subha.
Hi All,
Thanks to the excellent HFSJ book and all your support, I cleared the exam scoring 94%.
I read the book once and revised it again.
I tried answering some mock SCWCD questions in the internet.
I browsed the specifications.
I experimented the concepts with examples.

As opposed to the SCJP 5 exam, we get plenty of time for this exam.
I managed to answer all the questions in 70 minutes.
But they crazily make ambiguous questions, trying to confuse between two equally probable answers. I filled in the exam comments fields asking them what they actually meant by the question?

Have a nice day
Best regards,
Subha.
Hi,
The API says clearly that jspInit() and jspDestroy() may be overridden in a JSP Page using the declaration element.
May be the mock exam is just trying desparately to complicate things with the access modifiers.
Hi all,
Following is my test jsp. When I use useBean without a scope, i set an attribute at page scope right.
Can I access the same using EL as in line 5?
Can I access the same using scripting as shown in last line?
I have the tld appropriately done for func and my simple tag(bodycontent tagdependent). But call to function is printed as template text and the simple tag bodycontent did not print at all.

My output of the jsp is only this
56789 ${xyz.telephone} ${func.MyFunc()} within doTag:hi!

Where do I err?
Thanks and have a nice day
Subha

<jsp:useBean id="xyz" class="com.MyModel" >
<jsp:setProperty name="xyz" property="telephone" value="56789" />
</jsp:useBean>
<jsp:getProperty name="xyz" property="telephone"/>
${xyz.telephone}
<%@ taglib prefix="func" uri="http://subha/home" %>
<%@ taglib prefix="myst" uri="http://subha/home" %>
${func.MyFunc()}
<myst:MyST srt="hi!">
<% pageContext.getAttribute("xyz").getTelephone(); %>
</myst:MyST>
<% ((com.MyModel)pageContext.getAttribute("xyz")).getTelephone(); %>