riohk kurn

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

Recent posts by riohk kurn

As what I learnt from books, client uses primary key for getting instance of entity bean. However, if I want to create some entity beans for read only purposes. That is, I will not has the process of bean instantiation from client side directly. What should that object be existed in my system. As they are persistent, they will not be value object. Would you give me some suggestions?
Hi, eventually, I finished this exam. And I would like to thank those who have provided me suggestions in this forum. And manning book is really cool, actually, you can pass this exam by this material only. And this exam is not so difficult as expected.
15 years ago
Hi,
As what I read mock exam:
public class body extends TagSupport {
public int doStartTag() throws JspException{
return EVAL_BODY_INCLUDE;
}
public int doAfterBody() throws JspException {
try { pageContext.getOut().print("how are you?"); }catch(IOException e) {}
return SKIP_BODY;
}
}
what will be printed out by the following part of a jsp page?
<prefix:sufix>
<i>Hello</i>
</prefix:sufix>
1) The tag handler won't compile.
2) The jsp page will print Hello how are you?
3) The jsp page will print how are you? Hello
4) The jsp page will print Hello
The answer is 4
you can't print from doAfterBdoy in a TagSupport handlers, is it true? Please help
Hello, would anybody tell me how often the fill in the blank question appear? As I don't know whether I need to memorize all class names as well as the xml elements.
Oh! I asked a stupid question. They are in different situations. One for jsp syntax, one for xml syntax. So, they can not be compared, and they are both correct in suitable situation, aren't they?
Can we forward/include servlet in following methods in JSP?
<@!include file=xxx> No
<jsp:include page=xxx> Yes
pageContext.include() Yes
dispatcher.include Yes
<jsp:forward page=xxx> Yes
pageContext.forward() Yes
dispatcher.forward() Yes
respond.redirect() Yes
Hi, we all know that those variables in page scope are sharable in both including and included files using static inclusion.
1) However, how about <jsp:forward> action, I think it is not the case.
Owing to the process cycle, we need to use setattribute to pass some variables in <jsp:include> action.
2) if I use pageContext.setAttribute(XXX, page), am I fooling myself. and get a wrong result?
3) Are there any scopes in <jsp:getProperty>?
4) If I take this action <jsp:useBean id="xxx" class="xxx">, and then <jsp:forward page="new.jsp">, can javabean "xxx"'s properties be accessed in new.jsp. Since I only set this bean in page scope.
Thx
I am just reading manning book, and I find it confusing in following question:
1. <jsp:include page="<%=testurl%>" />
2. <jsp:include page="%=testurl%" />
Since they both appear in the pervious section of the book and they are claimed as correct. However, in the quiz of the book, it said 1 is incorrect. But which one is correct? Thx!
Where can I find more mock exam other than those suggested by Javaranch.com?
Hi! good result, I also plain to take it in next week, but why we need to study Spec? Is it useful?
15 years ago
Hello, I have finished some mock exams in the web so far, but I am so lazy that I do not want to read Servlet and JSP Spec, is it OK for us to get high score without doing this? You know, it is really a punishment for a programmer to memorize API. Thx!
Yes, I think there should have some rules. For example,
<exception-type>ExceptionHandler</exception-type>
...
<exception-type>SubExceptionHandler</exception-type>
So, if an object of SubExceptionHandler is invoked, will the order of the above list affect the result?
Are there any containers create more than one instance depending to performance (but not singleThreadServlet)?
Can we use setStatus() plus <error-code> to replace sendError()?
We all know that the order of exception in try-catch is not arbitary. How about the error-type inside <error-page>?