Tiffiny Yang

Ranch Hand
+ Follow
since Mar 29, 2006
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 Tiffiny Yang

I download the 'Eclipse IDE for Java EE Developers' (Europa).
There is no 'J2EE' project under File -- New menu.

Am I downloading the wrong version?
Shall I download 'Eclipse IDE for Java Developers' instead?

Thanks
interesting ,,,

then how to set the header and display the header "aaa" ?
Renu :

Are you saying that when uri is not given uri in the tld, and there is no <taglib> in web.xml, then it must be specify full file location in jsp file like this :
<%@ taglib uri =�/WEB-INF/tlds/mytags.tld� prefix=�my� %>

Besides: I do not see the implication of the saying that there is no given url in the tld, it's only clearly stated that no <taglib> in web.xml.

Thanks
In the tag library definiation, the value of attribute is dynamic , defined as <rtexprvalue>true</rtexprvalue>

<myPrefix oSqrt num="XXXX" /> Can the XXXX part accept custom tag?


Is following valid?
<myPrefix oSqrt num="<myPrefix oSqrt num="16" />" />

thanks.
Assuming that the Servlet Container has just called the destroy() method of a servlet instance, which of the following statements are correct?
Select 2 correct options
a service() method of this instance has been called at least once.

b init() method of this instance has been called at least once.

c Servlet container can bring this instance back into action by calling
it's init().

d There are no container threads running over this instance's service
method.

e All threads created by this servlet are done.

I think the answer is b, e.

What do you think?

Thanks.
What are the benefits of using Transfer object pattern?
Select 2 correct options

a The type of the actual data source can be specified at deployment time.

b The data clients are independent of the data source vendor API.

c It increases the performace of data accessing routines.

d It allows the clients to access the data source through EJBs

e It allows resource locking in an efficient way.

The answer is a , b

Is it correct?

Thanks
Mock QUESTION :
If a servlet is designed to execute in single-threaded mode as part of a distributed Web application, which is true?
A. The servlet container must only instantiate one instance of the servlet within each Java Virtual Machine.
B. The servlet definition in the Web application deployment descriptor must include the element.
C. The servlet container may instantiate multiple instances of that servlet in each Java Virtual Machine within the container.
D. The servlet container manages the thread-safety of the session object within each of the Java Virtual Machines in the distributed application.

The answer is C.
Can anybody explain why? and Is the single-Thread related questions on the exam ?

Thanks in advance
some of 'reserved word' will not break page if used , but some of them can break the app if used.

I am wonding what's the point of the 'reserved word' if someone use them by mistake if no error is thrown?

Thanks
<%@taglib uri="abc" prefix="myTag" %>

The prefix should not use any reversed words:
java, javax, jsp, jspx,sun, sunw, servlet

But, I tried use one of these (java), my program still works, how come?

Thanks in advance.

Tiffiny
On page 487 of HFSJ book , there is question:
Assuming the appropriate taglib directive, which are valid examples of custom tag usage?

The one of the correct answers is <c ut value="x" />.

I don't why. Isn't that <c ut... is standard JSTL?

Any body knows?

Thanks
Tiffiny
Way to go! Ping!!!

Did you do whizlab?

Tiffiny
Is that works?

Mine does not.

I remeber one a mock question I did was asking tagdependent is defined body-content, then what's happening when you have scriptlet and EL express inside the body part.

the anser is Scripting won�t get translated ( no display in the browser)
EL will be treated as plain text. I've tried it. it works as explained.
Thanks Satou !!!

I've tried using forward() method to invoke the secured servlet. You're right about it.

Thanks again.