Struts property tag question
-
-
Number of slices to send:Optional 'thank-you' note:
-
-
I have the following check but this would throw me an exception:
What is wrong with the above code? In my if I have to check for the String questionId and if they are equal, print the long value in s:property.
SCJP 1.4, SCWCD 1.4 - Hints for you, Certified Scrum Master
Did a rm -R / to find out that I lost my entire Linux installation!
-
-
Number of slices to send:Optional 'thank-you' note:
-
-
Why would the above sample code not get into the if and print the value?
SCJP 1.4, SCWCD 1.4 - Hints for you, Certified Scrum Master
Did a rm -R / to find out that I lost my entire Linux installation!
-
-
Number of slices to send:Optional 'thank-you' note:
-
-
To test your code : It evaluates the expression and prints the true or false.
ocjp 6 — Feeding a person with food is a great thing in this world. Feeding the same person by transferring the knowledge is far more better thing. The reason is the amount of satisfaction which we get through food is of only one minute or two. But the satisfaction which we can get through the knowledge is of life long.
-
-
Number of slices to send:Optional 'thank-you' note:
-
-
SCJP 1.4, SCWCD 1.4 - Hints for you, Certified Scrum Master
Did a rm -R / to find out that I lost my entire Linux installation!
-
-
Number of slices to send:Optional 'thank-you' note:
-
-
SCJP 1.4, SCWCD 1.4 - Hints for you, Certified Scrum Master
Did a rm -R / to find out that I lost my entire Linux installation!
-
-
Number of slices to send:Optional 'thank-you' note:
-
-
I haven't tested it. I hope this help you. I will update my answer once i tested it with proper quotes.
ocjp 6 — Feeding a person with food is a great thing in this world. Feeding the same person by transferring the knowledge is far more better thing. The reason is the amount of satisfaction which we get through food is of only one minute or two. But the satisfaction which we can get through the knowledge is of life long.
-
-
Number of slices to send:Optional 'thank-you' note:
-
-
The above tag evaluates to false and I'm confused as to how this could happen.
The following is what I get printed for ques1 and ques2:
SCJP 1.4, SCWCD 1.4 - Hints for you, Certified Scrum Master
Did a rm -R / to find out that I lost my entire Linux installation!
-
-
Number of slices to send:Optional 'thank-you' note:
-
-
SCJP 1.4, SCWCD 1.4 - Hints for you, Certified Scrum Master
Did a rm -R / to find out that I lost my entire Linux installation!
-
-
Number of slices to send:Optional 'thank-you' note:
-
-
I was updated my answer with proper quotes. I had used set for demonstration purpose don't use it. Evaluate the expression directly don't set it SET and compare.
ocjp 6 — Feeding a person with food is a great thing in this world. Feeding the same person by transferring the knowledge is far more better thing. The reason is the amount of satisfaction which we get through food is of only one minute or two. But the satisfaction which we can get through the knowledge is of life long.
| Something about .... going for a swim. With this tiny ad ... The new gardening playing cards kickstarter is now live! https://www.kickstarter.com/projects/paulwheaton/garden-cards |










