swapna rao

Ranch Hand
+ Follow
since Feb 12, 2008
Merit badge: grant badges
For More
Cows and Likes
Cows
Total received
In last 30 days
0
Forums and Threads

Recent posts by swapna rao

Hi,
I went to one of the famous book stores of Ameerpet,Hyderbad called Rajalakshmi book shop to buy the required books of EJB(Manning 3.0,Headfirst).
I was very much surprised when i saw the books. The guys over there are selling the books by making a xerox of original book. I have noticed it because the paper quality of the books is very cheap and any one can be easily fooled as there are only minor difference in the original copy and the xerox copy. These days we are very much aware that it is possible to a take a xerox of any thing in such a way that it matches the original cent percent.
I just thought of sharing my experience. Please pay attention to these kind of issues and it is our duty not to encourage these stupid book sellers.When we are spending so much on the books , the profit should reach the right hands (authors) instead of the people who are ready to do anything for their business.I am not aware of any forum to complain about this problem,so just posted here. Please ignore this message, if this is not the right forum.
Hi,
Recently i have cleared SCWCD and would like to prepare for SCBCD. Can anyone suggest me the books for SCBCD.
Padma,
Any content within quotes will be considered as String and the same rule applies to listIdx. If you use listIdx without quotes , the variable value will be evaluated.
flushing the buffer is same as committing the response where as clearing the buffer means the buffer content will be ignored.
-
-
-
-
<jsp:include page="other.jsp" flush="true">
-
-
Here the flush attribute determines the order in which the output should be displayed.In this example, what ever output is written by you before <jsp:include > action is shown to the end user as this action is a include action.
If you use <jsp:forward> in place of <jsp:include> the content prior to the standard action is ignored and the forwarded page output will be shown.But before using the forward action if you explicitly flush the buffer by using flush() you will get an IllegalStatusException.
Hope this clears your doubt.
16 years ago
JSP
Hi ranchers,
I have finally cleared SCWCD 1.4 with 94%. So it is time for party now.
Exam level was not that much tough. Most of the questions were very direct and you can answer them very easily. Given time limit (3 hrs) is more than enough.

Here is my preparation story.
Read Head first book twice.
Read the specifications and i must say going this specs is really tough. Most of the time i used to feel drowsy to read those long long sentences in the spec and used to get confused. But referring to those spec is very useful.So people who are preparing for SCWCD ,don't miss the specs.
Dynamic attributes tutorial, design pattern notes provided by this great site.Thanks marc for helping me to store 100 in design patterns.

I have not taken enthuware and whizlabs tests.
Just referred the following links and some other free tests on the net.

http://www.examulator.com/moodle/course/view.php?id=5&topic=all
http://www.javacertificationexams.com/scwcd-mock-exams.php
http://www.javaranch.com/carl/scwcd/scwcd_mock_logo.jsp

Spent lot of time in this great site by referring to all threads posted by you ppl. I must say this is really a wonderful site and thanks to all the authors of HFSJ for making the preparations so easy for these certifications.

wish you good luck for the ppl who are preparing for the test.
javascript: x()
rolling
16 years ago
any update on this thread would be great.
you meant to say that the example which i gave is not correct as it doesn't follow the schema.But i found this sequence in one of the study notes of Java ranch site .This notes is uploaded by ashok.please anyone explain me.
From the servlet specification, i came to know that the order of top elements doesn't matter in web.xml i.e. we can have <servlet>,<servlet-mapping>,<security-constraint> in any order.
What about the inner tags of these elements ? does the sequence matters for inner tags?
Can we write like below:
<servlet>
<security-role-ref>
</role-name>
</role-link>
</security-role-ref>
<init-parm>
<parm-name>
<parm-value>
</init-parm>
<servlet-name>
<servlet-class>
</servlet>

Is this correct? If so,what is sequence rule for evaluataing web.xml.
I read some where that even Tag files will be converted to JSP .I think this translation happens when you make a first request to tag file i.e. by using it in JSP page.
try by placing your class file in some package and modify the web.xml accordingly.
Even i would like to know the answer for this question.i think this is implemnted in Javaranch site as this site cookie is stored in my system till i delete it explicitly.Even after closing the browser it will be available. How can we set the expiration date for cookie.
given statement is true.You can verify servlet specification for more info.

If the servlet is part of a web application that has been marked as distributable, the container may maintain a pool of servlet instances in each VM that the application is distributed across.



This statement applies only when you use SingleThreadmodel in your application. Otherwise container creates only one instance per servlet and JVM.
I'm reading servlet specification and got a doubt about the forward and request parameters. It is explained in page 65-66 of servlet specification.
When ever we use include or forward of RequestDispatcher , it sets few attributes in the request.

For example inlcude () sets following is the list of attributes:

javax.servlet.include.request_uri
javax.servlet.include.context_path
javax.servlet.include.servlet_path
javax.servlet.include.path_info
javax.servlet.include.query_string

These attributes are accessible from the included servlet via the getAttribute method on the request object and their values must be equal to the request URI,context path, servlet path, path info, and query string of the included servlet,respectively. If the request is subsequently included, these attributes are replaced
for that include.

For forward () :

javax.servlet.forward.request_uri
javax.servlet.forward.context_path
javax.servlet.forward.servlet_path
javax.servlet.forward.path_info
javax.servlet.forward.query_string

The values of these attributes must be equal to the return values of the
HttpServletRequest methods getRequestURI, getContextPath, getServletPath,
getPathInfo, getQueryString respectively, invoked on the request object passed to the first servlet object in the call chain that received the request from the client.

This means that always attributes related to forward() method returns the original request values where as the attributes related to include returns the values based on the included file(servlet/JSP).

Why is this difference present? I didn't understand it . Please anyone explain me.