Hemant Kamat

+ Follow
since Nov 22, 2001
Cows and Likes
Total received
In last 30 days
Total given
Total received
Received in last 30 days
Total given
Given in last 30 days
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by Hemant Kamat

How do you establish a primary key - foreign key relationship in two different XML files?
-- e.g In one XML file (Person.xml) I have a Persons tag. This tag can have any number of Person elements which have one attribute id. I need the value of this id attribute to be present in the other xml file (Directory.xml)
<Person ID=1>
<Person ID=3>

Now since Person with ID=2 is not present in person.xml, I should not be able to use this number in PersonList. I want to put a restriction. I know xsd:key and xsd:keyref works but i think - it works if both the elements are in one xml file. I want to put the data in 2 separate xml files and establish primary key- foreign key relationship. How do i do that?
Any help will be greatly appreciated.
Thanks a lot in Advance
My problem is this:
I have an element called <course> to describe a course. The problem is that the course can have a footnote ascribed to it in some cases only. How do I capture this in my schema?
What I have thought is this:
Have an optional attribute called footnote in <course> to determine if there is a footnote. If this is the case check for the <footnote> element in <course>
e.g <course footnote='yes'>
<!-- Then this is required -->
<symbol> </symbol>
<content> </content>
if <course>
<!-- then footnote element is optional -->
How do I implement this using a schema?
Any help will be appreciated.
I was going through the Servlet 2.3 specification, when I ran across the DTD. Is it necessary to know all of the elements as described or only the important ones. I mean I am familiar with the commonly used ones and some more, but each one of them sounds a bit on the "too-much" side.
What % of the exam are these questions composed of (knowledge of DTD), I mean.
Any help will be appreciated.
Thanks Peter,
Both of you. That clarified my problem.
I have a small problem with respect to the URL pattern behaviour in Tomcat (4.0) or even lower version.
e.g web.xml
I have changed the URL pattern from /snoop to /*.jsp for the Snoop Servlet in the web.xml file (examples- default context).
Now when I enter http://localhost:8080/examples/abc.jsp
where abc.jsp may or may not be a valid resource, shouldn't the servlet container divert the request to the Snoop Servlet??
It dosen't in my case. Is there any other additional settings, because Professional JSP uses many such examples and I just can't seem to simulate them.
Only if I enter http://localhost:8080/examples/*.jsp does the SnoopServlet get invoked.
Can anyone explain this to me?
Isn't *.jsp supposed to invloke Snoop servlet for any jsp resource requested for the examples context?