Nitin Gogia

Greenhorn
+ Follow
since Jan 17, 2003
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 Nitin Gogia

I want to take ibm-uml certification. Can anyone tell me from where to start with, study material to be referenced and how much time does it require to prepare.
Daisy: Yes u need to know DOM and SAX API's i.e. from what interface/class they belong to or what API's can be used from the given interface/class.
Today morning i cleared the exam with 72%. My most of the prepartion was web based as follows:-
DTD's - Skonnard, XML in Nutshell
Schema - Roger Costello PPT (Very good) and some reference from W3C Primer.
XSL - Roger Costello PPT, Skonnard
http://www.dpawson.co.uk/xsl/sect2/nono.html#d1362e34
FO - http://cafeconleche.org/books/bible2/chapters/ch18.html
DOM & SAX - Skonnard. Mug up the UML diagrams given in Skonnard, as u need to know API's; W3C primer for DOM (It is also good).
XPath, XLinks, XBase - Skonnard
SOAP, WSDL, UDDI - W3C schools.
XLinks - http://www.ibiblio.org/xml/slides/xmlsig0899/
Mock Exams - JavaRanch gives a good amt. of links + XML@Whizlabs
I would say no mock exams come near to the real exams. The one provided by IBM is good. I scored 73% in that same to what i scored today. Whizlabs very good for scenario based questions and many other things (gives good explanation also) but still i fell it lacked somewhere when compared with real exam.
There is XML data document which is very large. The application is to extract the very few of its information from document. The memory & speed may be a constraint. Which is the most likely method to be implemented ?
a) Extract the information using SAX API, event based methods.
b) To extract the information using DOM API.
c) To extract the necessary information and process using XSLT.
d) To use schema based approach.
This question is given in DOM/SAX mock exam from Javaranch website. It says correct answer should be b. But according to me it should be a as it is clearly given speed and memory may be constraint and only a few of information from document is to be extracted.
Please clarify
Can anyone clarify the difference between root element and root node.
Root Element is the root element of document like <HTML> in case of an HTML document. Then what is root node ?
Which of the following DTD Code is valid ?
a)<!ELEMENT test (#CDATA)>
b)<!ELEMENT test (#PCDATA)>
c)<!ELEMENT test (#ANY)>
d)<!ELEMENT test (this,that)*>
<!ELEMENT this(#PCDATA)>
<!ELEMENT that(#PCDATA)>
This question is from Mock exam (DTD) by Sanjay Mishra referred in Javaranch site. The answer says b is valid but according to me it should be b,d.
Can someone please clarify whether d shud be right option or not ?
Regards
Hi,
What is the correct function for finding out total elements in the collection ?
count() or
last()
Karthik:
I did not get you when u say "NMTOKEN comply to all" except Name1 char restriction. Does it mean that NMTOKEN has to be in XML name syntax except that the 1st character can be a number, dot, hyphen etc.
If attribute type declared as NMTOKEN or ID what values can both of them accept. In other words what is the difference between NMTOKEN and ID.
'12345-09' is a valid NMTOKEN but not valid ID. Because ID has to be XML name. Isn't this true with NMTOKEN ?
They are a part of same web application. Also i mentioned that it works sometimes but most of the times it gives session is null. Therefore difficult to trace.
21 years ago
JSP
Hi,
In a application; i have a JSP page which contains a link which points to servlet which serves the image.
Now the problem is when a servlet is called session is null. I am not able to figure out why i am getting the session as null. I am using encodeURL to encode the link (in order to append session id). Also this problem is not consistent. Sometimes it works and other times i get session as null.
Please help.
Regards,
Nitin
21 years ago
JSP
Hi,
In a application; i have a JSP page which contains a link which points to servlet which serves the image.
Now the problem is when a servlet is called i get HTTP 401 - Unauthorized error and session is also null. I am not able to figure out why i am getting the session as null. I am using encodeURL to encode the link. Also this problem is not consistent. Sometimes it works and sometimes i get session as null and HTTP 401 error.
Please help.
Regards,
Nitin
21 years ago
JSP
Mark,
I know it is creating the problem. But how do i fix it. I have a page with static contents and at the end of the page i have to display an image (binary data). Image is served via servlet.
21 years ago
JSP
I am doing response.isCommitted check before calling <jsp:include...>
Here is what i am trying to achieve :-
I have a jsp page the contents of which are static (character data). Now at the end of the page i need to call servlet to include dynamic contents (binary data). And in the servlet i set the buffer size and after that trying to get Output Stream where actually the code fails and i get an exception as described above. (NOTE :- The servlet has been tested and it works fine. No problem with servlet).
I tried to decompile ServletResponseWrapperInclude.class from jasper_runtime.jar file to trace the error. The method in that class file is throwing IllegalStateException when i call getServletOutputStream in my servlet. I am confused where actually the error is.
If i call jsp:forward i get the dynamic contents to be displayed but static data in buffer erases out which is the right behaviour.
jsp:include not working.
21 years ago
JSP
Hi,
I m trying to include (<jsp:include> output of servlet in my JSP page. I get following exception:-
java.lang.IllegalStateException
at org.apache.jasper.runtime.ServletResponseWrapperInclude.getOutputStream(ServletResponseWrapperInclude.java:109)
at endoworks.framework.FileA.loadData(FileA.java:1138)
where line 1138 in FileA is
ServletOutputStream sos = response.getOutputStream
Please let me know where m i going wrong.
Nitin
21 years ago
JSP