jeffrey z. lee

Ranch Hand
+ Follow
since Mar 21, 2002
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 jeffrey z. lee

the jboss I am using is bundled with tomcat. it can start normally, but and showes following message when JSP is accessed to:
############################
No Java compiler was found to compile the generated source for the JSP.
This can usually be solved by copying manually $JAVA_HOME/lib/tools.jar from the JDK to the common/lib directory of the Tomcat server, followed by a Tomcat restart. If using an alternate Java compiler, please check its installation and access path.
##############################

my problem is that the bundled tomcat has no the common/lib directory to put tools.jar. how to solve this problem?
thanks
16 years ago
since the EJBObject, EJBHome, EntityBean and SessionBean are interface, why do we not implement all the methods within the interface when we code them?
Hi,
there is a method getContext(java.lang.String uripath) in ServletContext, and getServletContext() in ServletConfig.what is their difference ?
Hi, please clear them.
can the container create pool and servlet instance? how?
thanks
Given that file1.jsp has the following custom tag:
<m:test times="5"/>
And the actual class file has the following setter method for variable 'times':
public void setTimes(int t){
this.t=t;}
Identify true statements:
A Code works fine
B Parameter t should be String int the method : setTimes(String t)
C The body of the method should be: this.t=Integer.parseInt(t)
D The name of the variable should be 'times'

is ans. C true? why?
object hts is created with <%HttpSession hts=pageContext.getSession();%>, is this object (hts) identical with the implicit object(session)?
Congrates!!!
please tell us which test you decide to take next time and why you choose that
this question is in http://www.withmilk.com/
Which of the following implicit JSP objects have page scope?
A request
B response
C config
D pageconfig
I can not understand why response is a correct answer
I don't know how to use <%@ include file="...." %> in actual program, would seniors like to give simple a example? thanks a lot!
Given:
<jsp:useBean id="temp" lass="java.lang.String" /> <% temp="temp";out.println(temp); %>
What is the output?
A temp
B empty
C ServletException
D null
I don't know why answer 1 is correct.
when the object with the implementation of HttpSessionBindingListener is being bound to a session,the valueBound method of the object is called .why is valueBound method called when the object is accessed ?
please help me, thanks
does question 3 is true mean that RequestDispatcher can not dispatch request to the servlet in other VM?
What will be the result of this jsp line if the user takes a look at the page source code?
<!-- Today is <%= new java.util.Date() %>.Hava a nice day -->
Which statements are true about scope in jsp pages?
1) Objects with page scope are stored in the implicit object PageConttext
2) If a page forwards to another page, objects created with request scope in the source page will be visible in request of the forwarded page
3) Objects with application scope can be created in pages that are not session-aware(with page attribute session=”false”
4) The implicit page object has pageContext scope