Nikhilesh Fonseca

Ranch Hand
+ Follow
since Aug 23, 2004
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
(keep public parts private until JForum day)
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt
Moderation Tools

Recent posts by Nikhilesh Fonseca

Just for that last minute preparation incase you dont already have it

Classic Tags
+ Declaring minimum one occurrence of the same element
* Declaring zero or more occurrences of the same element
? Declaring zero or one occurrences of the same element

DTD for the security element:
<!ELEMENT security-constraint (display-name?, web-resource-collection+, auth-constraint?, user-data-constraint?)>
<!ELEMENT web-resource-collection (web-resource-name, description?, url-pattern*, http-method*)>
<!ELEMENT web-resource-name (#PCDATA)>
<!ELEMENT url-pattern (#PCDATA)>
<!ELEMENT http-method (#PCDATA)>
<!ELEMENT user-data-constraint (description?, transport-guarantee)>
<!ELEMENT transport-guarantee (#PCDATA)>

<!ELEMENT login-config (auth-method?, realm-name?, form-login-config?)>
<!ELEMENT auth-method (#PCDATA)>
<!ELEMENT realm-name (#PCDATA)>
<!ELEMENT form-login-config (form-login-page, form-error-page)>
<!ELEMENT form-login-page (#PCDATA)>
<!ELEMENT form-error-page (#PCDATA)>

DTD for tags
<!ELEMENT taglib (tlib-version, jsp-version, short-name, uri?,display- name?, small-icon?, large-icon?,description?,validator?, listener*, tag+)>

<!ELEMENT tag (name, tag-class, tei-class?, body-content?, display- name?,small-icon?, large-icon?, description?, variable*, attribute*, example?)>
<!ELEMENT attribute (name, required? , rtexprvalue?,type?,description?>
*.do this is known as the extension mapping rule as in any request with a .do extension would go to the mapped servlet.
But this rule would come into play only when the other Path mapping rules would fail.
I was under the impression that Session Migration is generally done when a server fails over and requests have to be transferred to a new server.
Is it also done just to handle excess traffic like transferring older sessions to a new server and just handling newer sessions.I thot the newer sessions would be transferred as in the first request itself would go to the other server in the cluster ??
Am I missing something here or is there a specification for this behavior..?
But you can overide the same in a Servlet rt ??..Only you will have to figure out how to call goGet /doPost or someother Method..
Congrats and Best of luck as you move on to better things...
Which of the following statements correctly declares an element that allows the output result of a specified resource to be inserted in a JSP page?

1. <jsp:include file="disclaimer.html" />

2. <jsp:forward page="disclaimer.html" flush="true" />

3. <jsp:include page="disclaimer.html" flush="true" />

4. <%@ include file="disclaimer.html" %>

5. <jsp:forward page="disclaimer.html" />

Answers 3 and 5 are correct.

And I marked 3 and 4 ...
What am I missing here ..
If you have a form submit which goes to an action class you can directly use request.setAttribute(Arraylist,"name"); ...I thnk
The request object is implicit to the jsp page ..
If you have a URL then I thnk only a session/application scope will help .
11 years ago
Hey can you send me a copy too
Your one cool dude man
Thanks a lot
Hey can you send me a copy too
Your one cool dude man
Thanks a lot
An int can always be assigned to a float ....
float f = -343 will always compile.
you can guess the rest.
Thats a great book to go through !! and great to start with too.
Solve the questions after each section..Give those mock tests... but only after you feel completely prepared . but this is all standard advive.The KB is for SCjp 1.4 i dunno abt the 1.5
Visit this site often and try to solve the queries posted here.
Also go through the FAQ ..
I think 3 to 4 months should be sufficient to study for this test if you are new to Java, but that depends on how much time you have per day..

Cheers ...
You can put that application scope variable
on init method of oyur controller servlet.That is the sevlet ewhich load on start up as 1.
12 years ago
Have u mapped your servlets to their names in the Web.xml file
there is the class name and the servlet name as well as the url which you can map to call the particular servlet.
The web.xml file will be in the Web-Inf folder.Check it out.
You can give the path where you call the form.
Read up on the web.xml file and you'll have your answer.
What ever form action you give will be mapped to the servlet.
12 years ago
You will need to get the ServletInputstream and then acess the data fromthe stream, convert it into the format u need ..u cud use a DataStream etc and then pull the data from there.
ReadInt(),readBoolean() something like that..Idont remember exactly
I'll try and find the code i used.
send me ur email addr and i'll mail it to you
12 years ago