Simran Dass

Ranch Hand
+ Follow
since Jan 09, 2010
Merit badge: grant badges
For More
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 Simran Dass

Thanks Eshwin .My problem is web fragments.


Am I supposed to post this question in the SCWCD forum. I
am not able to make progress.


Hi All,

I am new to this forum and need help with Servlet 3.0

I am facing a problem with web fragments .I cannot understand the ouput (am using Tomcat 7.0.23) . I
have read the web fragment part in servlet 3.0 spec "8.2.2 Ordering of web.xml and web-fragment.xml" but I think
I missed out on something.

My application contains 1 servlet , 2 filters ,web.xml and a web-fragment.xml.Following is the structure :--

There are two directories servlets and filters in WEB-INF/classes folder.
i) servlets directory contains a servlet - and its class file .
ii) filters directory contains a filter - and its class file .

There is a jar file called frag2.jar in WEB-INF/lib folder. It contains--

i) A filter and its class file in the webfragment2 folder in WEB-INF\lib\frag2.jar.
ii) A web-fragment.xml in the WEB-INF\lib\frag2.jar\META-INF directory .

The code :-

web-fragment.xml in the META-INF folder in WEB-INF\lib\frag2.jar.
---------------------------------------------------------------------------- and its class file in WEB-INF/classes/servlets folder
---------------- and its class file in WEB-INF/classes/filters folder
-------------- and its class file in the webfragment2 folder in WEB-INF\lib\frag2.jar.

Output that I am getting in Tomcat 7.0.23 is :-

Before chain.doFilter in wf1Filter
Before chain.doFilter in wf2Filter
in testservlet2
After chain.doFilter in wf2Filter
After chain.doFilter in wf1Filter

What I cannot understand is why is the wf1Filter firing first ? The web.xml has an <absolute-ordering> element which says that the
web-fragment with <name>A</name> should be executed first .So should not the wf2Filter be invoked first and then wf1Filter?
wf1Filter uses an annotation and should be processed after wf2Filter. Is not the precedence like this --> web.xml , web-fragment.xml and then
the anotations. Please help.

Please reply.


Thanks a lot Joe.
I will go through the link provided by you.Thanks once again.

Akhilesh I want technical knowledge but when there are so many frameworks around a newbie is
bound to get confused. I asked whatever my problem was , maybe you found it a stupid thing to

Hi All,

I could not understand to which forum I should post this question , other ones are for specific frameworks .

I have experience in J2EE but have never used any framework. I have to learn a framework so that I can apply for a job.
There are so many frameworks . First I thought I should go for Struts but then read that its not all that popular now.
I have completed SCJP and SCWCD exams , my main purpose is to have knowledge of at least one frameworks so that
in the interview I can say that I that I have worked in J2EE and have knowledge of this framework. In the interviews when I
say that I have not worked in any framework I am asked if atleast I have knowledge of some framework. Should I go for
Struts , Spring , JSF , Hibernate etc. There are so many which one to chose from ? Please give your valuable suggestions.


I am looking for a book on automation testing for java WEB applications. Have to use Selenium and integrate it
with a Java IDE - Eclipse IDE.

Which version of Selenium should I use in a live project ? Selenium 2.0 was released in July 2011.
Should I go for Selenium 1.0 or Selenium 2.0 . Is selenium 2 being used in industry and I should go for it.I
spoke to a few friends and could get information only on QTP not on Selenium

The selenium website ( says :-

"Selenium WebDriver is the successor of Selenium Remote Control which has been officially deprecated. The Selenium Server (used by both WebDriver and Remote Control) now also includes built-in grid capabilities."

But most of the examples that I am getting are on Selenium RC or IDE. So am having problem in starting with it.

12 years ago

Thanks a lot.


I went through the list . You have recommended

- Exploratory Software Testing by James A. Whittaker .
- Implementing Automated Software Testing: How to Save Time and Lower Costs While Raising Quality
by Elfriede Dustin, Thom Garrett, Bernie Gauf

I will buy these books .If I am not wrong I should go for "Next Generation Java Testing: TestNG and Advanced Concepts
by Cedric Beust, Hani Suleiman " if I want to use TestNG. Once again thankyou Jeanne. Could you please suggest a book
specifically for Java projects and a book for Selenium.

I am a member of the SCJP and SCWCD forums and so I know how valuable the information given on this site is. I rely
a lot on Javaranch . As I am new to the testing field sometimes I might ask stupid questions(which I might not find stupid) , please do not mind .


12 years ago

Hi All ,

I am new to this forum.

I have done programming in Java. I have done manual testing as a programmer is required to do but have not delved
much into testing.Now I am required to perform automation testing for java projects using Selenium. As I am
new to this please suggest a book on automation testing. I searched on Net but there are so many books I
do not know which one to take. Please also suggest a book for Selenium.

Thanks in Advance

12 years ago

Suppose I have a jsp page A.jsp in which I am doing something in jspInit() by overriding it. I use scriptting <%! %>
to override jspInit() as shown below :-


My question is how can I override jspInit() in a jsp page without using scripting i.e. without using <%! %>.



Wow . Congrats !!

Do you mean you studied the Head First for SCWCD 5.
From where did you study the new Servlet(3.0) and JSP. I want to learn JEE6 but am
finding the specs difficult.
13 years ago

I just read the last few posts in this thread. Should have read the whole thing.
Sorry for the trouble. Now have read it.

Frits can you suggest some books for JEE 6 .

I am confused . Is the "Java Platform, Enterprise Edition 6 JavaServer Pages and Servlet Developer Certified Expert Exam (CX-310-085) " the exam for JEE 6 for servlets and JSP.
Is it the Oracle Certified exam for servlets and JSP for 1.6 as was the SCWCD 5 exam
for J2EE 1.4

If yes what are the books that we should read for this
exam . Is there any Head First for JEE 6 (Servlet 3.0 etc ) or Head First book for this exam.
Can someone tell me when this exam came out . When I checked in the beginning of March
I understood that its still not available.

Great discussion

Here are we assuming that there is a class called TransferObject.